opendap.servlet
Class ReqState

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

public class ReqState
extends 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, String serverClassName, String decodedurl, String decodedquery)
           
 
Method Summary
 boolean getAcceptsCompressed()
          ************************************************************************* Evaluates the (private) request object to determine if the client that sent the request accepts compressed return documents.
 String getConstraintExpression()
           
 String getDASCache()
          This method will attempt to get the DAS cache directory name from the servlet's InitParameters.
 String getDataSet()
           
 String getDDSCache()
          This method will attempt to get the DDS cache directory name from the servlet's InitParameters.
 String getDDXCache()
          This method will attempt to get the DDX cache directory name from the servlet's InitParameters.
 String getDodsBlobURL_OLDANDBUSTED()
           
 String getINFOCache()
          This method will attempt to get the INFO cache directory name from the servlet's InitParameters.
 String getInitParameter(String name)
           
 Enumeration getInitParameterNames()
          ***********************************************************************
 String getQueryString()
           
 javax.servlet.http.HttpServletRequest getRequest()
           
 String getRequestSuffix()
           
 StringBuffer getRequestURL()
           
 javax.servlet.http.HttpServletResponse getResponse()
           
 String getSchemaLocation()
          This method will attempt to get the Schema Location name from the servlet's InitParameters.
 String getServerClassName()
           
 Object getUserObject()
           
protected  void processDodsURL()
          ************************************************************************* Processes an incoming HttpServletRequest.
 void setDefaultDASCache(String cachedir)
          Sets the default DAS Cache directory name to the string cachedir.
 void setDefaultDDSCache(String cachedir)
          Sets the default DDS Cache directory name to the string cachedir.
 void setDefaultDDXCache(String cachedir)
          Sets the default DDX Cache directory name to the string cachedir.
 void setDefaultINFOCache(String cachedir)
          Sets the default INFO Cache directory name to the string cachedir.
 void setDefaultSchemaLocation(String location)
          Sets the default Schema Location to the string location.
 void setUserObject(Object userObj)
           
 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,
                String serverClassName,
                String decodedurl,
                String decodedquery)
         throws BadURLException
Throws:
BadURLException
Method Detail

getDataSet

public String getDataSet()

getServerClassName

public String getServerClassName()

getRequestSuffix

public String getRequestSuffix()

getConstraintExpression

public String getConstraintExpression()

getRequest

public javax.servlet.http.HttpServletRequest getRequest()

getResponse

public javax.servlet.http.HttpServletResponse getResponse()

getDDXCache

public 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(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 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(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 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(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 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(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 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(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 Enumeration getInitParameterNames()
***********************************************************************


getInitParameter

public String getInitParameter(String name)

getDodsBlobURL_OLDANDBUSTED

public String getDodsBlobURL_OLDANDBUSTED()

getUserObject

public Object getUserObject()

setUserObject

public void setUserObject(Object userObj)

toString

public String toString()
Overrides:
toString in class Object

getRequestURL

public StringBuffer getRequestURL()

getQueryString

public String getQueryString()


Copyright © 1999-2011 UCAR/Unidata. All Rights Reserved.