public class testDataset extends Object implements opendap.servlet.GuardedDataset
| Constructor and Description |
|---|
testDataset(opendap.servlet.ReqState rs) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
opendap.dap.DAS |
getDAS()
************************************************************************
In this (default) implementation of the getDAS() method a locally cached
DAS is retrieved and parsed.
|
opendap.servers.ServerDDS |
getDDS()
************************************************************************
For the test server this method does the following:
Makes a new test_ServerFactory (aka BaseTypeFactory) for the
dataset requested.
|
DataInputStream |
openCachedDAS(opendap.servlet.ReqState rs)
************************************************************************
Opens a DAS cached on local disk.
|
DataInputStream |
openCachedDDS(opendap.servlet.ReqState rs)
************************************************************************
Opens a DDS cached on local disk.
|
DataInputStream |
openCachedDDX(opendap.servlet.ReqState rs)
************************************************************************
Opens a DDX cached on local disk.
|
void |
release() |
public void release()
release in interface opendap.servlet.GuardedDatasetpublic void close()
close in interface opendap.servlet.GuardedDatasetpublic opendap.servers.ServerDDS getDDS()
throws opendap.dap.DAP2Exception,
opendap.dap.parsers.ParseException
getDDS in interface opendap.servlet.GuardedDatasetServerDDS for the named data set.opendap.dap.DAP2Exceptionopendap.dap.parsers.ParseExceptionServerDDS,
test_ServerFactorypublic DataInputStream openCachedDDX(opendap.servlet.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.ReqStatepublic DataInputStream openCachedDDS(opendap.servlet.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.ReqStatepublic opendap.dap.DAS getDAS()
throws opendap.dap.DAP2Exception,
opendap.dap.parsers.ParseException
getDAS in interface opendap.servlet.GuardedDatasetdataSetopendap.dap.DAP2Exceptionopendap.dap.parsers.ParseExceptionDASpublic DataInputStream openCachedDAS(opendap.servlet.ReqState rs) throws 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.FileNotFoundExceptionReqState