Top Methods
io.undertow.servlet.api

public Interface ServletDispatcher

Known Direct Implementers
io.undertow.servlet.handlers.ServletInitialHandler
Imports
io.undertow.server.HttpServerExchange, io.undertow.servlet.handlers.ServletChain, .ServletPathMatch, jakarta.servlet.DispatcherType, .ServletException, jakarta.servlet.http.HttpServletRequest, .HttpServletResponse

Author
Stuart Douglas

Method Summary

Modifier and TypeMethod and Description
public void
dispatchMockRequest(final HttpServletRequest
The request
request
,
final HttpServletResponse
The response
response
)

Dispatches a mock request to the servlet container.

public void
dispatchToPath(final HttpServerExchange exchange, final ServletPathMatch pathMatch, final DispatcherType dispatcherType)

Dispatches a servlet request to the specified servlet path, changing the current path

public void
dispatchToServlet(final HttpServerExchange exchange, final ServletChain servletChain, final DispatcherType dispatcherType)

Dispatches a servlet request to the specified servlet, without changing the current path

Method Detail

dispatchMockRequestback to summary
public void dispatchMockRequest(final HttpServletRequest request, final HttpServletResponse response) throws ServletException

Dispatches a mock request to the servlet container.

Parameters
request:HttpServletRequest

The request

response:HttpServletResponse

The response

dispatchToPathback to summary
public void dispatchToPath(final HttpServerExchange exchange, final ServletPathMatch pathMatch, final DispatcherType dispatcherType) throws Exception

Dispatches a servlet request to the specified servlet path, changing the current path

See Also
io.undertow.servlet.handlers.ServletRequestContext
dispatchToServletback to summary
public void dispatchToServlet(final HttpServerExchange exchange, final ServletChain servletChain, final DispatcherType dispatcherType) throws Exception

Dispatches a servlet request to the specified servlet, without changing the current path