com.caucho.server.dispatch
Class Invocation

java.lang.Object
  extended by com.caucho.server.dispatch.ServletInvocation
      extended by com.caucho.server.dispatch.Invocation
All Implemented Interfaces:
Dependency
Direct Known Subclasses:
SubInvocation, VersionInvocation

public class Invocation
extends ServletInvocation
implements Dependency

A repository for request information gleaned from the uri.


Constructor Summary
Invocation()
           
 
Method Summary
 void copyFrom(Invocation invocation)
          Copies from the invocation.
 boolean equals(java.lang.Object o)
          Checks for equality
 Dependency getDependency()
          Returns the dependency list.
 java.lang.String getHost()
          Returns the raw host from the protocol.
 java.lang.String getHostName()
          Returns canonical host name.
 int getPort()
          Returns canonical port
 java.lang.String getRawURI()
          Returns the raw URI from the protocol before any normalization.
 Invocation getRequestInvocation(HttpServletRequestImpl request)
          Returns the versioned invocation based on this request.
 java.lang.String getSessionId()
          Returns a URL-based session id.
 java.lang.String getURI()
          Returns the URI after normalization, e.g.
 int getURLLength()
          Returns the raw URI length.
 WebApp getWebApp()
          Returns the mapped webApp.
 int hashCode()
          Returns the invocation's hash code.
 boolean isModified()
          Returns true if the invocation has been modified.
 boolean isSecure()
          Returns the secure flag
 boolean logModified(java.util.logging.Logger log)
          Log the reason for modification.
 void setDependency(Dependency dependency)
          Sets the dependency.
 void setHost(java.lang.String host)
          Sets the protocol's host.
 void setHostName(java.lang.String hostName)
          Sets the protocol's host.
 void setPort(int port)
          Sets the canonical port
 void setRawURI(java.lang.String uri)
          Sets the raw URI from the protocol before any normalization.
 void setSecure(boolean isSecure)
          Sets the secure flag
 void setSessionId(java.lang.String sessionId)
          Sets the URL-based session id.
 void setURI(java.lang.String uri)
          Sets the URI after normalization.
 void setWebApp(WebApp app)
          Sets the mapped webApp.
 java.lang.String toString()
           
 
Methods inherited from class com.caucho.server.dispatch.ServletInvocation
clearAsyncSupported, copyFrom, getClassLoader, getContextPath, getContextRequest, getContextURI, getFilterChain, getMultipartConfig, getPathInfo, getQueryString, getRequestCount, getSecurityRoleMap, getServletName, getServletPath, isAsyncSupported, service, setClassLoader, setContextPath, setContextURI, setFilterChain, setMultipartConfig, setPathInfo, setQueryString, setSecurityRoleMap, setServletName, setServletPath
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Invocation

public Invocation()
Method Detail

isSecure

public final boolean isSecure()
Returns the secure flag


setSecure

public final void setSecure(boolean isSecure)
Sets the secure flag


getHost

public final java.lang.String getHost()
Returns the raw host from the protocol. This may be different from the canonical host name.


setHost

public final void setHost(java.lang.String host)
Sets the protocol's host.


getHostName

public final java.lang.String getHostName()
Returns canonical host name.


setHostName

public final void setHostName(java.lang.String hostName)
Sets the protocol's host.


getPort

public final int getPort()
Returns canonical port


setPort

public final void setPort(int port)
Sets the canonical port


getRawURI

public final java.lang.String getRawURI()
Returns the raw URI from the protocol before any normalization. The raw URI includes the query string. (?)


setRawURI

public final void setRawURI(java.lang.String uri)
Sets the raw URI from the protocol before any normalization. The raw URI includes the query string. (?)


getURLLength

public int getURLLength()
Returns the raw URI length.


getURI

public final java.lang.String getURI()
Returns the URI after normalization, e.g. character escaping, URL session, and query string.


setURI

public final void setURI(java.lang.String uri)
Sets the URI after normalization.


getSessionId

public final java.lang.String getSessionId()
Returns a URL-based session id.


setSessionId

public final void setSessionId(java.lang.String sessionId)
Sets the URL-based session id.


getWebApp

public final WebApp getWebApp()
Returns the mapped webApp.


setWebApp

public void setWebApp(WebApp app)
Sets the mapped webApp.


setDependency

public void setDependency(Dependency dependency)
Sets the dependency.


getDependency

public Dependency getDependency()
Returns the dependency list.


isModified

public boolean isModified()
Returns true if the invocation has been modified. Generally only true if the webApp has been modified.

Specified by:
isModified in interface Dependency

logModified

public boolean logModified(java.util.logging.Logger log)
Log the reason for modification.

Specified by:
logModified in interface Dependency

getRequestInvocation

public Invocation getRequestInvocation(HttpServletRequestImpl request)
Returns the versioned invocation based on this request.

Parameters:
request - the servlet request

copyFrom

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


hashCode

public int hashCode()
Returns the invocation's hash code.

Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object o)
Checks for equality

Overrides:
equals in class java.lang.Object

toString

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