public class ErrorPageRule extends AbstractModel
| Constructor and Description | 
|---|
| ErrorPageRule() | 
| ErrorPageRule(ErrorPageRule source)NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
       and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy. | 
| Modifier and Type | Method and Description | 
|---|---|
| Long | getRedirectCode()Get Redirect status code settings
Supports 301 or 302. | 
| String | getRedirectUrl()Get Redirect URL
Requires a full redirect path, such as https://www.test.com/error.html. | 
| Long | getStatusCode()Get Status code
Supports 400, 403, 404, 500. | 
| void | setRedirectCode(Long RedirectCode)Set Redirect status code settings
Supports 301 or 302. | 
| void | setRedirectUrl(String RedirectUrl)Set Redirect URL
Requires a full redirect path, such as https://www.test.com/error.html. | 
| void | setStatusCode(Long StatusCode)Set Status code
Supports 400, 403, 404, 500. | 
| void | toMap(HashMap<String,String> map,
     String prefix)Internal implementation, normal users should not use it. | 
any, fromJsonString, getBinaryParams, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonStringpublic ErrorPageRule()
public ErrorPageRule(ErrorPageRule source)
public Long getStatusCode()
public void setStatusCode(Long StatusCode)
StatusCode - Status code
Supports 400, 403, 404, 500.public Long getRedirectCode()
public void setRedirectCode(Long RedirectCode)
RedirectCode - Redirect status code settings
Supports 301 or 302.public String getRedirectUrl()
public void setRedirectUrl(String RedirectUrl)
RedirectUrl - Redirect URL
Requires a full redirect path, such as https://www.test.com/error.html.Copyright © 2022. All rights reserved.