public static class RedirectRule.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
RedirectRule |
build() |
RedirectRule.Builder |
conditions(List<RuleCondition> conditions) |
RedirectRule.Builder |
copy(RedirectRule model) |
RedirectRule.Builder |
redirectUri(RedirectUri redirectUri) |
RedirectRule.Builder |
responseCode(Integer responseCode)
The HTTP status code to return when the incoming request is redirected.
|
public RedirectRule.Builder responseCode(Integer responseCode)
The HTTP status code to return when the incoming request is redirected.
The status line returned with the code is mapped from the standard HTTP specification. Valid response codes for redirection are:
301 * 302 * 303 * 307 * 308
The default value is 302
(Found).
Example: 301
responseCode
- the value to setpublic RedirectRule.Builder conditions(List<RuleCondition> conditions)
public RedirectRule.Builder redirectUri(RedirectUri redirectUri)
public RedirectRule build()
public RedirectRule.Builder copy(RedirectRule model)
Copyright © 2016–2024. All rights reserved.