Class ErrorPageByStatusCode
java.lang.Object
de.xima.fc.common.error_page.ErrorPageByStatusCode
- All Implemented Interfaces:
Serializable
Model for the error page mapping, i.e. status code 404 to the URL https://example.com/404.
- Since:
- 8.3.6
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the HTTP status code to which the error page applies.getUrl()Gets the URL of the error page.voidsetStatusCode(String statusCode) Sets the HTTP status code to which the error page applies.voidSets the URL of the error page.
-
Constructor Details
-
ErrorPageByStatusCode
public ErrorPageByStatusCode()
-
-
Method Details
-
getStatusCode
Gets the HTTP status code to which the error page applies. Use 4xx or 40x to refer to a range of status codes.- Returns:
- The HTTP status code.
-
setStatusCode
Sets the HTTP status code to which the error page applies. Use 4xx or 40x to refer to a range of status codes.- Parameters:
statusCode- The HTTP status code.
-
getUrl
-
setUrl
Sets the URL of the error page.- Parameters:
url- The URL of the error page.
-