public final class DispatchUtils extends Object
Utility class to manage the dispatching parsing of the path. The methods fill the exchange, request and response with the needed data for the dispatch.
Modifier and Type | Method and Description |
---|---|
static ServletPathMatch |
dispatchAsync(String path,
HttpServletRequestImpl requestImpl,
HttpServletResponseImpl responseImpl,
ServletContextImpl servletContext)
Perform an async dispatch to a path assigning everything needed to the
request, response and exchange.
|
static ServletPathMatch |
dispatchError(String path,
String servletName,
Throwable exception,
String message,
HttpServletRequestImpl requestImpl,
HttpServletResponseImpl responseImpl,
ServletContextImpl servletContext)
Perform a error dispatch to a path assigning everything needed to the
request, response and exchange.
|
static ServletPathMatch |
dispatchForward(String path,
HttpServletRequestImpl requestImpl,
HttpServletResponseImpl responseImpl,
ServletContextImpl servletContext)
Perform a forward dispatch to a path assigning everything needed to the
request, response and exchange.
|
static ServletPathMatch |
dispatchInclude(String path,
HttpServletRequestImpl requestImpl,
HttpServletResponseImpl responseImpl,
ServletContextImpl servletContext)
Perform an include dispatch to a path assigning everything needed to the
request, response and exchange.
|
public static ServletPathMatch dispatchForward(String path, HttpServletRequestImpl requestImpl, HttpServletResponseImpl responseImpl, ServletContextImpl servletContext) throws ParameterLimitException
path
- The path to forward scoped to the ServletContextrequestImpl
- The requestresponseImpl
- The responseservletContext
- The servlet contextParameterLimitException
- parameter limit exceededpublic static ServletPathMatch dispatchInclude(String path, HttpServletRequestImpl requestImpl, HttpServletResponseImpl responseImpl, ServletContextImpl servletContext) throws ParameterLimitException
path
- The path to include scoped to the ServletContextrequestImpl
- The requestresponseImpl
- The responseservletContext
- The servlet contextParameterLimitException
- parameter limit exceededpublic static ServletPathMatch dispatchError(String path, String servletName, Throwable exception, String message, HttpServletRequestImpl requestImpl, HttpServletResponseImpl responseImpl, ServletContextImpl servletContext) throws ParameterLimitException
path
- The path to forward scoped to the ServletContextservletName
- The servlet nameexception
- The exception for the errormessage
- The error messagerequestImpl
- The requestresponseImpl
- The responseservletContext
- The servlet contextParameterLimitException
- parameter limit exceededpublic static ServletPathMatch dispatchAsync(String path, HttpServletRequestImpl requestImpl, HttpServletResponseImpl responseImpl, ServletContextImpl servletContext) throws ParameterLimitException
path
- The path to include scoped to the ServletContextrequestImpl
- The requestresponseImpl
- The responseservletContext
- The servlet contextParameterLimitException
- parameter limit exceededCopyright © 2024 JBoss by Red Hat. All rights reserved.