|
|||||||||||
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
dods.servlet.DODSServlet
dods.servers.test.dts
Purpose:
This is the DODS 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 DODS data
types.
<servlet> <servlet-name> dts </servlet-name> <servlet-class> dods.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-DODS/sdds-testsuite/info/</param-value> </init-param> <init-param> <param-name>DDScache</param-name> <param-value>/usr/Java-DODS/sdds-testsuite/dds/</param-value> </init-param> <init-param> <param-name>DAScache</param-name> <param-value>/usr/Java-DODS/sdds-testsuite/das/</param-value> </init-param> </servlet>
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 |
doGetDODS(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 DODS server. |
java.lang.String |
getServerVersion()
************************************************************************ This method returns a String containing the DODS Server Version... |
Methods inherited from class dods.servlet.DODSServlet |
anyExceptionHandler, badURL, dodsExceptionHandler, doGetASC, doGetCatalog, doGetDAS, doGetDDS, doGetDIR, doGetHELP, doGetHTML, doGetINFO, doGetStatus, doGetVER, getDAS, getServerName, init, isTheClientCompressed, openCachedDAS, openCachedDDS, parseExceptionHandler, printCatalog, printStatus, probeRequest, processDodsURL, 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 java.lang.String getServerVersion()
getServerVersion
in class DODSServlet
public void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException, javax.servlet.ServletException
doGet
in class DODSServlet
request
- The client's HttpServletRequest
request
object.response
- The server's HttpServletResponse
response
object.
java.io.IOException
javax.servlet.ServletException
DODSServlet.processDodsURL(HttpServletRequest)
public void doGetDODS(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.
doGetDODS
in class DODSServlet
request
- The client's HttpServletRequest
request
object.response
- The server's HttpServletResponse
response
object.rs
- The ReqState object containing th details of this client request.
java.io.IOException
javax.servlet.ServletException
protected GuardedDataset getDataset(ReqState rs) throws DODSException, java.io.IOException, ParseException
DODSServlet
getDataset
in class DODSServlet
rs
- The ReqState object for this client request.
DODSException
java.io.IOException
ParseException
ServerDDS
,
sqlServerFactory
,
test_ServerFactory
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |