org.iges.anagram
Class ClientRequest

java.lang.Object
  |
  +--org.iges.anagram.ClientRequest

public class ClientRequest
extends java.lang.Object

Contains all information associated with a particular server request


Field Summary
protected  java.lang.String ce
           
protected  java.lang.String dataPath
           
protected  Handle handle
           
protected  HttpServletRequest httpRequest
           
protected  HttpServletResponse httpResponse
           
protected  Privilege privileges
           
protected  Service service
           
protected  java.lang.String serviceName
           
protected  java.lang.String summary
           
 
Constructor Summary
ClientRequest(HttpServletRequest httpRequest, HttpServletResponse httpResponse, Privilege privileges, Service service, java.lang.String serviceName, java.lang.String dataPath, Handle handle)
          Creates a new client request with the specified settings
 
Method Summary
protected  void buildSummary()
          Used in writing log messages
 java.lang.String getCE()
          Returns the constraint expression associated with this request
 java.lang.String getDataPath()
          Returns the catalog data path associated with this request
 java.lang.String getFullURL()
          Returns the complete URL of this request including query string
 Handle getHandle()
          Returns the catalog entry associated with this request, if any
 HttpServletRequest getHttpRequest()
          Returns the servlet request object associated with this request
 HttpServletResponse getHttpResponse()
          Returns the servlet response object associated with this request
 Privilege getPrivilege()
          Returns the privilege set associated with this request
 Service getService()
          Returns the service associated with this request, if any
 java.lang.String getServiceName()
          Returns the name of the service associated with this request
 java.lang.String getURL()
          Returns the URL of this request, minus the query string
 void setHandle(Handle handle)
          Sets the catalog entry associated with this request
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

httpRequest

protected HttpServletRequest httpRequest

httpResponse

protected HttpServletResponse httpResponse

handle

protected Handle handle

service

protected Service service

dataPath

protected java.lang.String dataPath

serviceName

protected java.lang.String serviceName

ce

protected java.lang.String ce

summary

protected java.lang.String summary

privileges

protected Privilege privileges
Constructor Detail

ClientRequest

public ClientRequest(HttpServletRequest httpRequest,
                     HttpServletResponse httpResponse,
                     Privilege privileges,
                     Service service,
                     java.lang.String serviceName,
                     java.lang.String dataPath,
                     Handle handle)
Creates a new client request with the specified settings

Method Detail

getHttpRequest

public HttpServletRequest getHttpRequest()
Returns the servlet request object associated with this request


getHttpResponse

public HttpServletResponse getHttpResponse()
Returns the servlet response object associated with this request


getFullURL

public java.lang.String getFullURL()
Returns the complete URL of this request including query string


getURL

public java.lang.String getURL()
Returns the URL of this request, minus the query string


getDataPath

public java.lang.String getDataPath()
Returns the catalog data path associated with this request


getHandle

public Handle getHandle()
Returns the catalog entry associated with this request, if any


setHandle

public void setHandle(Handle handle)
Sets the catalog entry associated with this request


getServiceName

public java.lang.String getServiceName()
Returns the name of the service associated with this request


getService

public Service getService()
Returns the service associated with this request, if any


getCE

public java.lang.String getCE()
Returns the constraint expression associated with this request


getPrivilege

public Privilege getPrivilege()
Returns the privilege set associated with this request


toString

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

buildSummary

protected void buildSummary()
Used in writing log messages