Class DefaultErrorPageGenerator
java.lang.Object
org.glassfish.grizzly.http.server.DefaultErrorPageGenerator
- All Implemented Interfaces:
ErrorPageGenerator
Default Grizzly
ErrorPageGenerator.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
DefaultErrorPageGenerator
public DefaultErrorPageGenerator()
-
-
Method Details
-
generate
public String generate(Request request, int status, String reasonPhrase, String description, Throwable exception) Returns the HTML representation of the error page corresponding to the given HTTP response status.- Specified by:
generatein interfaceErrorPageGenerator- Parameters:
request-Requeststatus- response statusreasonPhrase- response reason phrasedescription- extra description. Might be nullexception-Throwable, that caused the error. Might be null- Returns:
-