Package com.saperion.ngc.util
Class ErrorPageProvider
- java.lang.Object
-
- com.saperion.ngc.util.ErrorPageProvider
-
public final class ErrorPageProvider extends java.lang.Object
This provider generates the HTML markup to use in error pages.- Author:
- sts
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ErrorPageProvider.ErrorPageConfig
Use this class to configure the error page you want to get.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String
getErrorPageMarkup(javax.servlet.http.HttpServletRequest request, java.lang.String title, java.lang.String description, java.lang.String image, ErrorPageProvider.ErrorPageConfig config)
Generates the HTML markup by the given parameters.
-
-
-
Method Detail
-
getErrorPageMarkup
public static java.lang.String getErrorPageMarkup(javax.servlet.http.HttpServletRequest request, java.lang.String title, java.lang.String description, java.lang.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.
-
-