Class ErrorPagesConfig
java.lang.Object
de.xima.fc.common.error_page.ErrorPagesConfig
- All Implemented Interfaces:
Serializable
Model for the error pages that should be shown when the app encounters an error.
- Since:
- 8.3.6
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddNew()getAll()Gets a list of all error pages mapped to a specific status code.Gets the general error page URL used when no more specific error page for a status code was configured.static ErrorPagesConfigLoads the error page mappings from the application properties and returns a new model with that data.voidremoveAtIndex(int index) Removes the error page mapping at the specified index.voidSaves the error page mappings to the application properties.voidsetGeneralErrorPageUrl(String generalErrorPageUrl) Sets the general error page URL used when no more specific error page for a status code was configured.
-
Constructor Details
-
ErrorPagesConfig
public ErrorPagesConfig()
-
-
Method Details
-
addNew
public void addNew() -
getAll
Gets a list of all error pages mapped to a specific status code.- Returns:
- A list of all error pages.
-
getGeneralErrorPageUrl
Gets the general error page URL used when no more specific error page for a status code was configured.- Returns:
- The general error page URL.
-
setGeneralErrorPageUrl
Sets the general error page URL used when no more specific error page for a status code was configured.- Parameters:
generalErrorPageUrl- The general error page URL.
-
removeAtIndex
public void removeAtIndex(int index) Removes the error page mapping at the specified index.- Parameters:
index- The index of the error page mapping to remove.
-
saveToProperties
public void saveToProperties()Saves the error page mappings to the application properties. -
loadFromProperties
Loads the error page mappings from the application properties and returns a new model with that data.- Returns:
- A new model with the error page mappings.
-