Class DefaultErrorPageGenerator
- java.lang.Object
-
- org.glassfish.grizzly.http.server.DefaultErrorPageGenerator
-
- All Implemented Interfaces:
ErrorPageGenerator
public class DefaultErrorPageGenerator extends java.lang.Object implements ErrorPageGenerator
Default GrizzlyErrorPageGenerator.
-
-
Constructor Summary
Constructors Constructor Description DefaultErrorPageGenerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Stringgenerate(Request request, int status, java.lang.String reasonPhrase, java.lang.String description, java.lang.Throwable exception)Returns the HTML representation of the error page corresponding to the given HTTP response status.
-
-
-
Method Detail
-
generate
public java.lang.String generate(Request request, int status, java.lang.String reasonPhrase, java.lang.String description, java.lang.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:
-
-