com.caucho.server.dispatch
Class ServletInvocation

java.lang.Object
  extended by com.caucho.server.dispatch.ServletInvocation
Direct Known Subclasses:
Invocation

public class ServletInvocation
extends java.lang.Object

A repository for request information gleaned from the uri.


Constructor Summary
ServletInvocation()
          Creates a new invocation
 
Method Summary
 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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ServletInvocation

public ServletInvocation()
Creates a new invocation

Method Detail

getContextPath

public final java.lang.String getContextPath()
Returns the mapped context-path.


setContextPath

public void setContextPath(java.lang.String path)
Sets the context-path.


setContextURI

public void setContextURI(java.lang.String contextURI)

getContextURI

public final java.lang.String getContextURI()
Returns the URI tail, i.e. everything after the context path.


getServletPath

public final java.lang.String getServletPath()
Returns the mapped servlet path.


setServletPath

public void setServletPath(java.lang.String servletPath)
Sets the mapped servlet path.


getPathInfo

public final java.lang.String getPathInfo()
Returns the mapped path info.


setPathInfo

public void setPathInfo(java.lang.String pathInfo)
Sets the mapped path info


getQueryString

public final java.lang.String getQueryString()
Returns the query string. Characters remain unescaped.


setQueryString

public final void setQueryString(java.lang.String queryString)
Returns the query string. Characters remain unescaped.


setClassLoader

public void setClassLoader(java.lang.ClassLoader loader)
Sets the class loader.


getClassLoader

public java.lang.ClassLoader getClassLoader()
Gets the class loader.


setServletName

public void setServletName(java.lang.String servletName)
Sets the servlet name


getServletName

public java.lang.String getServletName()
Gets the servlet name


setFilterChain

public void setFilterChain(FilterChain chain)
Sets the filter chain


getFilterChain

public FilterChain getFilterChain()
Gets the filter chain


getSecurityRoleMap

public java.util.HashMap<java.lang.String,java.lang.String> getSecurityRoleMap()
Gets the security role map.


setSecurityRoleMap

public void setSecurityRoleMap(java.util.HashMap<java.lang.String,java.lang.String> roleMap)
Sets the security role map.


getRequestCount

public long getRequestCount()
Returns the number of requests.


isAsyncSupported

public boolean isAsyncSupported()
True if the invocation chain supports async (comet) requets.


clearAsyncSupported

public void clearAsyncSupported()
Mark the invocation chain as not supporting async.


getMultipartConfig

public MultipartConfigElement getMultipartConfig()

setMultipartConfig

public void setMultipartConfig(MultipartConfigElement multipartConfig)

getContextRequest

public static ServletRequest getContextRequest()
Returns the thread request.


service

public void service(ServletRequest request,
                    ServletResponse response)
             throws java.io.IOException,
                    ServletException
Service a request.

Parameters:
request - the servlet request
response - the servlet response
Throws:
java.io.IOException
ServletException

copyFrom

public void copyFrom(ServletInvocation invocation)
Copies from the invocation.


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object