public class ServletInitialHandler extends Object implements io.undertow.server.HttpHandler, ServletDispatcher
Constructor and Description |
---|
ServletInitialHandler(ServletPathMatches paths,
io.undertow.server.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(io.undertow.server.HttpServerExchange exchange,
ServletPathMatch pathInfo,
javax.servlet.DispatcherType dispatcherType)
Dispatches a servlet request to the specified servlet path, changing the current path
|
void |
dispatchToServlet(io.undertow.server.HttpServerExchange exchange,
ServletChain servletchain,
javax.servlet.DispatcherType dispatcherType)
Dispatches a servlet request to the specified servlet, without changing the current path
|
io.undertow.server.HttpHandler |
getNext() |
void |
handleRequest(io.undertow.server.HttpServerExchange exchange) |
public ServletInitialHandler(ServletPathMatches paths, io.undertow.server.HttpHandler next, Deployment deployment, ServletContextImpl servletContext)
public void handleRequest(io.undertow.server.HttpServerExchange exchange) throws Exception
handleRequest
in interface io.undertow.server.HttpHandler
Exception
public void dispatchToPath(io.undertow.server.HttpServerExchange exchange, ServletPathMatch pathInfo, javax.servlet.DispatcherType dispatcherType) throws Exception
ServletDispatcher
dispatchToPath
in interface ServletDispatcher
Exception
ServletRequestContext
public void dispatchToServlet(io.undertow.server.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 io.undertow.server.HttpHandler getNext()
Copyright © 2017. All rights reserved.