Class AbstractHandler.ErrorDispatchHandler

All Implemented Interfaces:
Handler, Container, Destroyable, Dumpable, Dumpable.DumpableContainer, LifeCycle
Enclosing class:
AbstractHandler

@Deprecated public abstract static class AbstractHandler.ErrorDispatchHandler extends AbstractHandler
Deprecated.
This class is no longer required as ERROR dispatch is only done if there is an error page target.
An extension of AbstractHandler that handles DispatcherType.ERROR dispatches.

DispatcherType.ERROR dispatches are handled by calling the AbstractHandler.doError(String, Request, HttpServletRequest, HttpServletResponse) method. All other dispatches are passed to the abstract doNonErrorHandle(String, Request, HttpServletRequest, HttpServletResponse) method, which should be implemented with specific handler behavior

  • Constructor Details

    • ErrorDispatchHandler

      public ErrorDispatchHandler()
      Deprecated.
  • Method Details

    • handle

      public final void handle(String target, Request baseRequest, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) throws IOException, jakarta.servlet.ServletException
      Deprecated.
      Description copied from interface: Handler
      Handle a request.
      Specified by:
      handle in interface Handler
      Specified by:
      handle in class AbstractHandler
      Parameters:
      target - The target of the request - either a URI or a name.
      baseRequest - The original unwrapped request object.
      request - The request either as the Request object or a wrapper of that request.
      response - The response as the Response object or a wrapper of that request.
      Throws:
      IOException - if unable to handle the request or response processing
      jakarta.servlet.ServletException - if unable to handle the request or response due to underlying servlet issue
    • doNonErrorHandle

      @Deprecated protected abstract void doNonErrorHandle(String target, Request baseRequest, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) throws IOException, jakarta.servlet.ServletException
      Deprecated.
      Called by handle(String, Request, HttpServletRequest, HttpServletResponse) for all non-DispatcherType.ERROR dispatches.
      Parameters:
      target - The target of the request - either a URI or a name.
      baseRequest - The original unwrapped request object.
      request - The request either as the Request object or a wrapper of that request.
      response - The response as the Response object or a wrapper of that request.
      Throws:
      IOException - if unable to handle the request or response processing
      jakarta.servlet.ServletException - if unable to handle the request or response due to underlying servlet issue