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
HttpHandlerhandleRequest in interface HttpHandlerexchange - the HTTP request/response exchangeExceptionpublic void dispatchToPath(HttpServerExchange exchange, ServletPathMatch pathInfo, DispatcherType dispatcherType) throws Exception
ServletDispatcherdispatchToPath in interface ServletDispatcherExceptionServletRequestContextpublic void dispatchToServlet(HttpServerExchange exchange, ServletChain servletchain, DispatcherType dispatcherType) throws Exception
ServletDispatcherdispatchToServlet in interface ServletDispatcherExceptionpublic void dispatchMockRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException
ServletDispatcherdispatchMockRequest in interface ServletDispatcherrequest - The requestresponse - The responseServletExceptionpublic HttpHandler getNext()
Copyright © 2017 JBoss by Red Hat. All rights reserved.