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(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) Dispatches a mock request to the servlet container. |
void | dispatchToPath(HttpServerExchange exchange, ServletPathMatch pathInfo, javax.servlet.DispatcherType dispatcherType) Dispatches a servlet request to the specified servlet path, changing the current path |
void | dispatchToServlet(HttpServerExchange exchange, ServletChain servletchain, javax.servlet.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, javax.servlet.DispatcherType dispatcherType) throws Exception
ServletDispatcher
dispatchToPath
in interface ServletDispatcher
Exception
ServletRequestContext
public void dispatchToServlet(HttpServerExchange exchange, ServletChain servletchain, javax.servlet.DispatcherType dispatcherType) throws Exception
ServletDispatcher
dispatchToServlet
in interface ServletDispatcher
Exception
public void dispatchMockRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException
ServletDispatcher
dispatchMockRequest
in interface ServletDispatcher
request
- The requestresponse
- The responsejavax.servlet.ServletException
public HttpHandler getNext()
Copyright © 2017 JBoss by Red Hat. All rights reserved.