public class ServletInvocation
extends java.lang.Object
Constructor and Description |
---|
ServletInvocation()
Creates a new invocation
|
Modifier and Type | Method and Description |
---|---|
void |
clearAsyncSupported()
Mark the invocation chain as not supporting async.
|
void |
copyFrom(ServletInvocation invocation)
Copies from the invocation.
|
java.lang.ClassLoader |
getClassLoader()
Gets the class loader.
|
java.lang.String |
getContextPath()
Returns the mapped context-path.
|
static ServletRequest |
getContextRequest()
Returns the thread request.
|
java.lang.String |
getContextURI()
Returns the URI tail, i.e.
|
FilterChain |
getFilterChain()
Gets the filter chain
|
MultipartConfigElement |
getMultipartConfig() |
java.lang.String |
getPathInfo()
Returns the mapped path info.
|
java.lang.String |
getQueryString()
Returns the query string.
|
long |
getRequestCount()
Returns the number of requests.
|
java.util.HashMap<java.lang.String,java.lang.String> |
getSecurityRoleMap()
Gets the security role map.
|
java.lang.String |
getServletName()
Gets the servlet name
|
java.lang.String |
getServletPath()
Returns the mapped servlet path.
|
boolean |
isAsyncSupported()
True if the invocation chain supports async (comet) requets.
|
void |
service(ServletRequest request,
ServletResponse response)
Service a request.
|
void |
setClassLoader(java.lang.ClassLoader loader)
Sets the class loader.
|
void |
setContextPath(java.lang.String path)
Sets the context-path.
|
void |
setContextURI(java.lang.String contextURI) |
void |
setFilterChain(FilterChain chain)
Sets the filter chain
|
void |
setMultipartConfig(MultipartConfigElement multipartConfig) |
void |
setPathInfo(java.lang.String pathInfo)
Sets the mapped path info
|
void |
setQueryString(java.lang.String queryString)
Returns the query string.
|
void |
setSecurityRoleMap(java.util.HashMap<java.lang.String,java.lang.String> roleMap)
Sets the security role map.
|
void |
setServletName(java.lang.String servletName)
Sets the servlet name
|
void |
setServletPath(java.lang.String servletPath)
Sets the mapped servlet path.
|
java.lang.String |
toString() |
public final java.lang.String getContextPath()
public void setContextPath(java.lang.String path)
public void setContextURI(java.lang.String contextURI)
public final java.lang.String getContextURI()
public final java.lang.String getServletPath()
public void setServletPath(java.lang.String servletPath)
public final java.lang.String getPathInfo()
public void setPathInfo(java.lang.String pathInfo)
public final java.lang.String getQueryString()
public final void setQueryString(java.lang.String queryString)
public void setClassLoader(java.lang.ClassLoader loader)
public java.lang.ClassLoader getClassLoader()
public void setServletName(java.lang.String servletName)
public java.lang.String getServletName()
public void setFilterChain(FilterChain chain)
public FilterChain getFilterChain()
public java.util.HashMap<java.lang.String,java.lang.String> getSecurityRoleMap()
public void setSecurityRoleMap(java.util.HashMap<java.lang.String,java.lang.String> roleMap)
public long getRequestCount()
public boolean isAsyncSupported()
public void clearAsyncSupported()
public MultipartConfigElement getMultipartConfig()
public void setMultipartConfig(MultipartConfigElement multipartConfig)
public static ServletRequest getContextRequest()
public void service(ServletRequest request, ServletResponse response) throws java.io.IOException, ServletException
request
- the servlet requestresponse
- the servlet responsejava.io.IOException
ServletException
public void copyFrom(ServletInvocation invocation)
public java.lang.String toString()
toString
in class java.lang.Object