Package de.xima.fc.common.error_page
Class ErrorPageByStatusCode
- java.lang.Object
-
- de.xima.fc.common.error_page.ErrorPageByStatusCode
-
- All Implemented Interfaces:
Serializable
public final class ErrorPageByStatusCode extends Object implements 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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ErrorPageByStatusCode()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getStatusCode()
Gets the HTTP status code to which the error page applies.String
getUrl()
Gets the URL of the error page.void
setStatusCode(String statusCode)
Sets the HTTP status code to which the error page applies.void
setUrl(String url)
Sets the URL of the error page.
-
-
-
Method Detail
-
getStatusCode
public String 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
public void setStatusCode(String statusCode)
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
public String getUrl()
Gets the URL of the error page.- Returns:
- The URL of the error page.
-
setUrl
public void setUrl(String url)
Sets the URL of the error page.- Parameters:
url
- The URL of the error page.
-
-