opendap.servlet
Class ReqState

java.lang.Object
  extended by opendap.servlet.ReqState

public class ReqState
extends java.lang.Object

User requests get cached here so that downstream code can access the details of the request information.

Author:
Nathan Potter

Constructor Summary
ReqState(javax.servlet.http.HttpServletRequest myRequest, javax.servlet.http.HttpServletResponse response, javax.servlet.ServletConfig sc, java.lang.String serverClassName)
           
 
Method Summary
 boolean getAcceptsCompressed()
          ************************************************************************* Evaluates the (private) request object to determine if the client that sent the request accepts compressed return documents.
 java.lang.String getConstraintExpression()
           
 java.lang.String getDASCache()
          This method will attempt to get the DAS cache directory name from the servlet's InitParameters.
 java.lang.String getDataSet()
           
 java.lang.String getDDSCache()
          This method will attempt to get the DDS cache directory name from the servlet's InitParameters.
 java.lang.String getDDXCache()
          This method will attempt to get the DDX cache directory name from the servlet's InitParameters.
 java.lang.String getDodsBlobURL_OLDANDBUSTED()
           
 java.lang.String getINFOCache()
          This method will attempt to get the INFO cache directory name from the servlet's InitParameters.
 java.lang.String getInitParameter(java.lang.String name)
           
 java.util.Enumeration getInitParameterNames()
          ***********************************************************************
 javax.servlet.http.HttpServletRequest getRequest()
           
 java.lang.String getRequestSuffix()
           
 javax.servlet.http.HttpServletResponse getResponse()
           
 java.lang.String getSchemaLocation()
          This method will attempt to get the Schema Location name from the servlet's InitParameters.
 java.lang.String getServerClassName()
           
 java.lang.Object getUserObject()
           
protected  void processDodsURL()
          ************************************************************************* Processes an incoming HttpServletRequest.
 void setDefaultDASCache(java.lang.String cachedir)
          Sets the default DAS Cache directory name to the string cachedir.
 void setDefaultDDSCache(java.lang.String cachedir)
          Sets the default DDS Cache directory name to the string cachedir.
 void setDefaultDDXCache(java.lang.String cachedir)
          Sets the default DDX Cache directory name to the string cachedir.
 void setDefaultINFOCache(java.lang.String cachedir)
          Sets the default INFO Cache directory name to the string cachedir.
 void setDefaultSchemaLocation(java.lang.String location)
          Sets the default Schema Location to the string location.
 void setUserObject(java.lang.Object userObj)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ReqState

public ReqState(javax.servlet.http.HttpServletRequest myRequest,
                javax.servlet.http.HttpServletResponse response,
                javax.servlet.ServletConfig sc,
                java.lang.String serverClassName)
         throws BadURLException
Throws:
BadURLException
Method Detail

getDataSet

public java.lang.String getDataSet()

getServerClassName

public java.lang.String getServerClassName()

getRequestSuffix

public java.lang.String getRequestSuffix()

getConstraintExpression

public java.lang.String getConstraintExpression()

getRequest

public javax.servlet.http.HttpServletRequest getRequest()

getResponse

public javax.servlet.http.HttpServletResponse getResponse()

getDDXCache

public java.lang.String getDDXCache()
This method will attempt to get the DDX cache directory name from the servlet's InitParameters. Failing this it will return the default DDX cache directory name.

Returns:
The name of the DDX cache directory.

setDefaultDDXCache

public void setDefaultDDXCache(java.lang.String cachedir)
Sets the default DDX Cache directory name to the string cachedir. Note that if the servlet configuration conatins an Init Parameter DDXCache the default value will be ingnored.

Parameters:
cachedir -

getDDSCache

public java.lang.String getDDSCache()
This method will attempt to get the DDS cache directory name from the servlet's InitParameters. Failing this it will return the default DDS cache directory name.

Returns:
The name of the DDS cache directory.

setDefaultDDSCache

public void setDefaultDDSCache(java.lang.String cachedir)
Sets the default DDS Cache directory name to the string cachedir. Note that if the servlet configuration conatins an Init Parameter DDSCache the default value will be ingnored.

Parameters:
cachedir -

getDASCache

public java.lang.String getDASCache()
This method will attempt to get the DAS cache directory name from the servlet's InitParameters. Failing this it will return the default DAS cache directory name.

Returns:
The name of the DAS cache directory.

setDefaultDASCache

public void setDefaultDASCache(java.lang.String cachedir)
Sets the default DAS Cache directory name to the string cachedir. Note that if the servlet configuration conatins an Init Parameter DASCache the default value will be ingnored.

Parameters:
cachedir -

getINFOCache

public java.lang.String getINFOCache()
This method will attempt to get the INFO cache directory name from the servlet's InitParameters. Failing this it will return the default INFO cache directory name.

Returns:
The name of the INFO cache directory.

setDefaultINFOCache

public void setDefaultINFOCache(java.lang.String cachedir)
Sets the default INFO Cache directory name to the string cachedir. Note that if the servlet configuration conatins an Init Parameter INFOcache the default value will be ingnored.

Parameters:
cachedir -

getSchemaLocation

public java.lang.String getSchemaLocation()
This method will attempt to get the Schema Location name from the servlet's InitParameters. Failing this it will return the default Schema Location.

Returns:
The Schema Location.

setDefaultSchemaLocation

public void setDefaultSchemaLocation(java.lang.String location)
Sets the default Schema Location to the string location. Note that if the servlet configuration conatins an Init Parameter SchemaLocation the default value will be ingnored.

Parameters:
location -

processDodsURL

protected void processDodsURL()
************************************************************************* Processes an incoming HttpServletRequest. Uses the content of the HttpServletRequestto create a ReqState object in that caches the values for:

See Also:
ReqState

getAcceptsCompressed

public boolean getAcceptsCompressed()
************************************************************************* Evaluates the (private) request object to determine if the client that sent the request accepts compressed return documents.

Returns:
True is the client accpets a compressed return document. False otherwise.

getInitParameterNames

public java.util.Enumeration getInitParameterNames()
***********************************************************************


getInitParameter

public java.lang.String getInitParameter(java.lang.String name)

getDodsBlobURL_OLDANDBUSTED

public java.lang.String getDodsBlobURL_OLDANDBUSTED()

getUserObject

public java.lang.Object getUserObject()

setUserObject

public void setUserObject(java.lang.Object userObj)

toString

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