public class ServletInitialHandler extends Object implements HttpHandler, ServletDispatcher
Constructor and Description |
---|
ServletInitialHandler(ServletPathMatches paths,
HttpHandler next,
Deployment deployment,
ServletContextImpl servletContext) |
Modifier and Type | Method and Description |
---|---|
void |
dispatchMockRequest(HttpServletRequest request,
HttpServletResponse response)
Dispatches a mock request to the servlet container.
|
void |
dispatchToPath(HttpServerExchange exchange,
ServletPathMatch pathInfo,
DispatcherType dispatcherType)
Dispatches a servlet request to the specified servlet path, changing the current path
|
void |
dispatchToServlet(HttpServerExchange exchange,
ServletChain servletchain,
DispatcherType dispatcherType)
Dispatches a servlet request to the specified servlet, without changing the current path
|
HttpHandler |
getNext() |
void |
handleRequest(HttpServerExchange exchange)
Handle the request.
|
public ServletInitialHandler(ServletPathMatches paths, HttpHandler next, Deployment deployment, ServletContextImpl servletContext)
public void handleRequest(HttpServerExchange exchange) throws Exception
HttpHandler
handleRequest
in interface HttpHandler
exchange
- the HTTP request/response exchangeException
public void dispatchToPath(HttpServerExchange exchange, ServletPathMatch pathInfo, DispatcherType dispatcherType) throws Exception
ServletDispatcher
dispatchToPath
in interface ServletDispatcher
Exception
ServletRequestContext
public void dispatchToServlet(HttpServerExchange exchange, ServletChain servletchain, DispatcherType dispatcherType) throws Exception
ServletDispatcher
dispatchToServlet
in interface ServletDispatcher
Exception
public void dispatchMockRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException
ServletDispatcher
dispatchMockRequest
in interface ServletDispatcher
request
- The requestresponse
- The responseServletException
public HttpHandler getNext()
Copyright © 2021 JBoss by Red Hat. All rights reserved.