Package com.saperion.ngc.util
Class ErrorPageProvider
java.lang.Object
com.saperion.ngc.util.ErrorPageProvider
This provider generates the HTML markup to use in error pages.
- Author:
- sts
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classUse this class to configure the error page you want to get. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetErrorPageMarkup(jakarta.servlet.http.HttpServletRequest request, String title, String description, String image, ErrorPageProvider.ErrorPageConfig config) Generates the HTML markup by the given parameters.
-
Method Details
-
getErrorPageMarkup
public static String getErrorPageMarkup(jakarta.servlet.http.HttpServletRequest request, String title, String description, String image, ErrorPageProvider.ErrorPageConfig config) Generates the HTML markup by the given parameters.- Parameters:
request- The http request.title- The title of the error page.description- The description of the error page.image- The background-image of the error page.config- The configuration of the error page.- Returns:
- the HTML markup.
-