Class ErrorPageErrorHandler

    • Field Detail

      • GLOBAL_ERROR_PAGE

        public static final java.lang.String GLOBAL_ERROR_PAGE
        See Also:
        Constant Field Values
      • _servletContext

        protected javax.servlet.ServletContext _servletContext
    • Constructor Detail

      • ErrorPageErrorHandler

        public ErrorPageErrorHandler()
    • Method Detail

      • getErrorPages

        public java.util.Map<java.lang.String,​java.lang.String> getErrorPages()
      • setErrorPages

        public void setErrorPages​(java.util.Map<java.lang.String,​java.lang.String> errorPages)
        Parameters:
        errorPages - a map of Exception class names or error codes as a string to URI string
      • addErrorPage

        public void addErrorPage​(java.lang.Class<? extends java.lang.Throwable> exception,
                                 java.lang.String uri)
        Adds ErrorPage mapping for an exception class. This method is called as a result of an exception-type element in a web.xml file or may be called directly
        Parameters:
        exception - The exception
        uri - The URI of the error page.
      • addErrorPage

        public void addErrorPage​(java.lang.String exceptionClassName,
                                 java.lang.String uri)
        Adds ErrorPage mapping for an exception class. This method is called as a result of an exception-type element in a web.xml file or may be called directly
        Parameters:
        exceptionClassName - The exception
        uri - The URI of the error page.
      • addErrorPage

        public void addErrorPage​(int code,
                                 java.lang.String uri)
        Adds ErrorPage mapping for a status code. This method is called as a result of an error-code element in a web.xml file or may be called directly.
        Parameters:
        code - The HTTP status code to match
        uri - The URI of the error page.
      • addErrorPage

        public void addErrorPage​(int from,
                                 int to,
                                 java.lang.String uri)
        Adds ErrorPage mapping for a status code range. This method is not available from web.xml and must be called directly.
        Parameters:
        from - The lowest matching status code
        to - The highest matching status code
        uri - The URI of the error page.
      • doStart

        protected void doStart()
                        throws java.lang.Exception
        Description copied from class: ContainerLifeCycle
        Starts the managed lifecycle beans in the order they were added.
        Overrides:
        doStart in class AbstractHandler
        Throws:
        java.lang.Exception