|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectopendap.servers.test.testDataset
public class testDataset
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.
Method Summary | |
---|---|
DAS |
getDAS()
************************************************************************ In this (default) implementation of the getDAS() method a locally cached DAS is retrieved and parsed. |
ServerDDS |
getDDS()
************************************************************************ For the test server this method does the following: Makes a new test_ServerFactory (aka BaseTypeFactory) for the dataset requested. |
java.io.DataInputStream |
openCachedDAS(ReqState rs)
************************************************************************ Opens a DAS cached on local disk. |
java.io.DataInputStream |
openCachedDDS(ReqState rs)
************************************************************************ Opens a DDS cached on local disk. |
java.io.DataInputStream |
openCachedDDX(ReqState rs)
************************************************************************ Opens a DDX cached on local disk. |
void |
release()
Release the lock, if any, on this dataset. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public void release()
GuardedDataset
release
in interface GuardedDataset
public ServerDDS getDDS() throws DAP2Exception, ParseException
getDDS
in interface GuardedDataset
ServerDDS
for the named data set.
DAP2Exception
ParseException
ServerDDS
,
test_ServerFactory
public java.io.DataInputStream openCachedDDX(ReqState rs)
This method uses the ServletConfig
object cached by in
the ReqState
object to locate the servlet init parameter
DDXcache to determine where to look for the cached DDX document.
If the init parameter was
not set then the ReqState.defaultDDXcache
variable is
used as the location of the DDX cache.
If the DDX cannot be found an error is sent back to the client.
rs
- The ReqState
object for this
invocation of the servlet.
DataInputStream
from which the DDX can
be read.ReqState
public java.io.DataInputStream openCachedDDS(ReqState rs)
This method uses the ServletConfig
object cached by in
the ReqState
object to locate the servlet init parameter
DDScache to determine where to look for the cached
DDS
. If the init parameter was not set then the
ReqState.defaultDDScache
variable is used as the
location of the DDS cache.
If the DDS cannot be found an error is sent back to the client.
rs
- The ReqState
object for this
invocation of the servlet.
DataInputStream
from which the DDS can
be read.ReqState
public DAS getDAS() throws DAP2Exception, ParseException
getDAS
in interface GuardedDataset
dataSet
DAP2Exception
ParseException
DAS
public java.io.DataInputStream openCachedDAS(ReqState rs) throws java.io.FileNotFoundException
This method uses the ServletConfig
object cached by in
the ReqState
object to locate the servlet init parameter
DAScache to determine where to look for the cached
DAS
. If the init parameter was not set then the
ReqState.defaultDAScache
variable is used as the
location of the DAS cache.
If the DAS cannot be found an error is sent back to the client.
rs
- The ReqState
object for this
invocation of the servlet.
DataInputStream
from which the DAS can
be read.
java.io.FileNotFoundException
ReqState
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |