|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.servlet.GenericServlet
javax.servlet.http.HttpServlet
opendap.servlet.AbstractServlet
opendap.servers.test.dts
public class dts
Purpose:
This is the OPeNDAP Test servlet (dts). It allows the owner of the server
to deliver data in ANY valid DDS to a client. This DDS will be
filled with invented data if the client requests a DataDDS.
This kind of test fixture is useful for evaluating a clients
ability to handle the various complexities of the OPeNDAP data
types.
<servlet> <servlet-name> dts </servlet-name> <servlet-class> opendap.servers.test.dts </servlet-class> <init-param> <param-name>DebugOn</param-name> <param-value>showRequest showResponse </param-value> </init-param> <init-param> <param-name>INFOcache</param-name> <param-value>/usr/Java-OPeNDAP/sdds-testsuite/info/</param-value> </init-param> <init-param> <param-name>DDScache</param-name> <param-value>/usr/Java-OPeNDAP/sdds-testsuite/dds/</param-value> </init-param> <init-param> <param-name>DAScache</param-name> <param-value>/usr/Java-OPeNDAP/sdds-testsuite/das/</param-value> </init-param> </servlet>
Field Summary |
---|
Fields inherited from class opendap.servlet.AbstractServlet |
---|
allowDeflate |
Constructor Summary | |
---|---|
dts()
|
Method Summary | |
---|---|
void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
************************************************************************ We override this crucial method from the parent servlet in order to force the client not to cache. |
void |
doGetASC(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
ReqState rs)
************************************************************************ Default handler for the client's data request. |
void |
doGetBLOB(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
ReqState rs)
************************************************************************ Default handler for the client's data request. |
void |
doGetDAP2Data(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
ReqState rs)
************************************************************************ Default handler for the client's data request. |
protected GuardedDataset |
getDataset(ReqState rs)
************************************************************************ This method must be implemented locally for each OPeNDAP server. |
java.lang.String |
getServerVersion()
************************************************************************ This method returns a String containing the OPeNDAP Server Version... |
void |
init()
************************************************************************ Intitializes the servlet. |
Methods inherited from class opendap.servlet.AbstractServlet |
---|
anyExceptionHandler, badURL, dap2ExceptionHandler, doDebug, doDebugCmd, doGetCatalog, doGetDAS, doGetDDS, doGetDDX, doGetDIR, doGetHELP, doGetHTML, doGetINFO, doGetStatus, doGetSystemProps, doGetVER, getServerName, IOExceptionHandler, parseExceptionHandler, printCatalog, printStatus, probeRequest, sendDODSError |
Methods inherited from class javax.servlet.http.HttpServlet |
---|
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service |
Methods inherited from class javax.servlet.GenericServlet |
---|
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public dts()
Method Detail |
---|
public void init() throws javax.servlet.ServletException
AbstractServlet
init
in class AbstractServlet
javax.servlet.ServletException
public java.lang.String getServerVersion()
getServerVersion
in class AbstractServlet
public void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException, javax.servlet.ServletException
doGet
in class AbstractServlet
request
- The client's HttpServletRequest
request
object.response
- The server's HttpServletResponse
response
object.
java.io.IOException
javax.servlet.ServletException
ReqState
public void doGetDAP2Data(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, ReqState rs) throws java.io.IOException, javax.servlet.ServletException
Once the DDS has been parsed, the data is read (using the class in the localized server factory etc.), compared to the constraint expression, and then sent to the client.
doGetDAP2Data
in class AbstractServlet
request
- The client's HttpServletRequest
request
object.response
- The server's HttpServletResponse
response
object.rs
- The ReqState of this client request. Contains all kinds of
important stuff.
java.io.IOException
javax.servlet.ServletException
ReqState
public void doGetASC(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, ReqState rs) throws java.lang.Exception
Once the DDS has been parsed, the data is read (using the class in the localized server factory etc.), compared to the constraint expression, and then sent to the client.
doGetASC
in class AbstractServlet
request
- The client's HttpServletRequest
request
object.response
- The server's HttpServletResponse
response
object.rs
- the decoded Request State
java.lang.Exception
public void doGetBLOB(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, ReqState rs) throws java.io.IOException, javax.servlet.ServletException
Once the DDS has been parsed, the data is read (using the class in the localized server factory etc.), compared to the constraint expression, and then sent to the client.
doGetBLOB
in class AbstractServlet
request
- The client's HttpServletRequest
request
object.response
- The server's HttpServletResponse
response
object.rs
- The ReqState of this client request. Contains all kinds of
important stuff.
java.io.IOException
javax.servlet.ServletException
ReqState
This class/method is associated with pre-release version of the DDX API. It is experimental and is subject to (significant) change.
protected GuardedDataset getDataset(ReqState rs) throws DAP2Exception, java.io.IOException, ParseException
AbstractServlet
getDataset
in class AbstractServlet
rs
- The ReqState object for this particular client request.
DAP2Exception
java.io.IOException
ParseException
ServerDDS
,
test_ServerFactory
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |