Class DefaultErrorPageGenerator

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DefaultErrorPageGenerator

        public DefaultErrorPageGenerator()
    • 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:
        generate in interface ErrorPageGenerator
        Parameters:
        request - Request
        status - response status
        reasonPhrase - response reason phrase
        description - extra description. Might be null
        exception - Throwable, that caused the error. Might be null
        Returns: