|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectHttpServlet
dods.servlet.DODSServlet
dods.servers.test.dts
public class 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.
Configuration:
The DODSServlet relies on the javax.servlet.ServletConfig
interface (in particular the getInitParameter() method)
to retrieve configuration information used by the servlet.
InitParameters:
<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(HttpServletRequest request,
HttpServletResponse response)
We override this crucial method from the parent servlet in order to force the client not to cache. |
void |
doGetDODS(HttpServletRequest request,
HttpServletResponse response,
requestState rs)
Default handler for the client's data request. |
protected GuardedDataset |
getDataset(requestState rs)
This method must be implemented locally for each DODS server. |
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 java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public dts()
Method Detail |
---|
public String getServerVersion()
getServerVersion
in class DODSServlet
public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException
doGet
in class DODSServlet
request
- The client's HttpServletRequest
request
object.response
- The server's HttpServletResponse
response
object.
IOException
ServletException
DODSServlet.processDodsURL(HttpServletRequest)
,
#getDataSet()
,
#setDataSet(String)
,
#getCE()
,
#setCE(String)
,
#getRequestSuffix()
,
#setRequestSuffix(String)
,
#loadIniFile()
public void doGetDODS(HttpServletRequest request, HttpServletResponse response, requestState rs) throws IOException, 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.dataSet
- Name of the datset whose data is requested.constraintExpression
- Constraint expression recieved from the client.
This is used (if it's not just empty) subset the data in the dataset.
IOException
ServletException
protected GuardedDataset getDataset(requestState rs) throws DODSException, IOException, ParseException
DODSServlet
This method should do the following:
getDataset
in class DODSServlet
DODSException
IOException
ParseException
ServerDDS
,
sqlServerFactory
,
test_ServerFactory
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |