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) |
public ServletInitialHandler(ServletPathMatches paths, HttpHandler next, Deployment deployment, ServletContextImpl servletContext)
public void handleRequest(HttpServerExchange exchange) throws Exception
handleRequest in interface HttpHandlerExceptionpublic void dispatchToPath(HttpServerExchange exchange, ServletPathMatch pathInfo, javax.servlet.DispatcherType dispatcherType) throws Exception
ServletDispatcherdispatchToPath in interface ServletDispatcherExceptionServletRequestContextpublic void dispatchToServlet(HttpServerExchange exchange, ServletChain servletchain, javax.servlet.DispatcherType dispatcherType) throws Exception
ServletDispatcherdispatchToServlet in interface ServletDispatcherExceptionpublic void dispatchMockRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException
ServletDispatcherdispatchMockRequest in interface ServletDispatcherrequest - The requestresponse - The responsejavax.servlet.ServletExceptionpublic HttpHandler getNext()
Copyright © 2022 JBoss by Red Hat. All rights reserved.