Package opendap.servlet
Class ReqState
java.lang.Object
opendap.servlet.ReqState
User requests get cached here so that downstream code can access
the details of the request information.
-
Constructor Summary
ConstructorsConstructorDescriptionReqState(jakarta.servlet.http.HttpServletRequest myRequest, jakarta.servlet.http.HttpServletResponse response, String dataPath, String encodedurl, String encodedquery) ReqState(AbstractServlet sv, jakarta.servlet.http.HttpServletRequest myRequest, jakarta.servlet.http.HttpServletResponse response, String rootPath2, String encodedurl, String encodedquery) -
Method Summary
Modifier and TypeMethodDescriptionboolean************************************************************************* Evaluates the (private) request object to determine if the client that sent the request accepts compressed return documents.getDASCache(String realpath) This method will attempt to get the DAS cache directory name from the servlet's InitParameters.getDDSCache(String realpath) This method will attempt to get the DDS cache directory name from the servlet's InitParameters.getDDXCache(String realpath) This method will attempt to get the DDX cache directory name from the servlet's InitParameters.getINFOCache(String realpath) This method will attempt to get the INFO cache directory name from the servlet's InitParameters.getInitParameter(String name) ***********************************************************************jakarta.servlet.http.HttpServletRequestjakarta.servlet.http.HttpServletResponseThis method will attempt to get the Schema Location name from the servlet's InitParameters.protected void************************************************************************* Processes an incomingHttpServletRequest.voidsetDefaultDASCache(String cachedir) Sets the default DAS Cache directory name to the string cachedir.voidsetDefaultDDSCache(String cachedir) Sets the default DDS Cache directory name to the string cachedir.voidsetDefaultDDXCache(String cachedir) Sets the default DDX Cache directory name to the string cachedir.voidsetDefaultINFOCache(String cachedir) Sets the default INFO Cache directory name to the string cachedir.voidsetDefaultSchemaLocation(String location) Sets the default Schema Location to the string location.voidsetUserObject(Object userObj) toString()
-
Constructor Details
-
ReqState
-
ReqState
public ReqState(AbstractServlet sv, jakarta.servlet.http.HttpServletRequest myRequest, jakarta.servlet.http.HttpServletResponse response, String rootPath2, String encodedurl, String encodedquery) throws opendap.dap.DAP2Exception - Throws:
opendap.dap.DAP2Exception
-
-
Method Details
-
getDataSet
-
getServerClassName
-
getRequestSuffix
-
getConstraintExpression
-
getRequest
public jakarta.servlet.http.HttpServletRequest getRequest() -
getResponse
public jakarta.servlet.http.HttpServletResponse getResponse() -
getRootPath
-
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.- Parameters:
realpath- path to this servlet's dir in webapps- Returns:
- The name of the DDX cache directory(ending in '/').
-
setDefaultDDXCache
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
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.- Parameters:
realpath- path to this servlet's dir in webapps- Returns:
- The name of the DDS cache directory(ending in '/').
-
setDefaultDDSCache
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
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.- Parameters:
realpath- path to this servlet's dir in webapps- Returns:
- The name of the DAS cache directory (ending in '/')
-
setDefaultDASCache
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 ignored.- Parameters:
cachedir-
-
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.- Parameters:
realpath- path to this servlet's dir in webapps- Returns:
- The name of the INFO cache directory(ending in '/').
-
setDefaultINFOCache
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
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
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 incomingHttpServletRequest. Uses the content of theHttpServletRequestto create aReqStateobject in that caches the values for:- dataSet The data set name.(Accessible using
setDataSet()andgetDataSet()) - CE The constraint expression.(Accessible using
setCE()andgetCE()) - requestSuffix The request suffix, used by OPeNDAP DAP2 to
indicate the type of response desired by the client.
(Accessible using
setRequestSuffix()andgetRequestSuffix()) - isClientCompressed Does the requesting client accept a compressed response?
- ServletConfig The
ServletConfigobject for this servlet. - ServerName The class name of this server.
- RequestURL THe URL that that was used to call thye servlet.
- See Also:
- dataSet The data set name.(Accessible using
-
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.
-
getInitParameter
*********************************************************************** -
getDodsBlobURL_OLDANDBUSTED
-
getUserObject
-
setUserObject
-
toString
-
getRequestURL
-