Class ServletInitialHandler

  • All Implemented Interfaces:
    io.undertow.server.HttpHandler, ServletDispatcher

    public class ServletInitialHandler
    extends Object
    implements io.undertow.server.HttpHandler, ServletDispatcher
    This must be the initial handler in the blocking servlet chain. This sets up the request and response objects, and attaches them the to exchange.
    Author:
    Stuart Douglas
    • Method Detail

      • handleRequest

        public void handleRequest​(io.undertow.server.HttpServerExchange exchange)
                           throws Exception
        Specified by:
        handleRequest in interface io.undertow.server.HttpHandler
        Throws:
        Exception
      • dispatchToServlet

        public void dispatchToServlet​(io.undertow.server.HttpServerExchange exchange,
                                      ServletChain servletchain,
                                      jakarta.servlet.DispatcherType dispatcherType)
                               throws Exception
        Description copied from interface: ServletDispatcher
        Dispatches a servlet request to the specified servlet, without changing the current path
        Specified by:
        dispatchToServlet in interface ServletDispatcher
        Throws:
        Exception
      • dispatchMockRequest

        public void dispatchMockRequest​(jakarta.servlet.http.HttpServletRequest request,
                                        jakarta.servlet.http.HttpServletResponse response)
                                 throws jakarta.servlet.ServletException
        Description copied from interface: ServletDispatcher
        Dispatches a mock request to the servlet container.
        Specified by:
        dispatchMockRequest in interface ServletDispatcher
        Parameters:
        request - The request
        response - The response
        Throws:
        jakarta.servlet.ServletException
      • getNext

        public io.undertow.server.HttpHandler getNext()