public class testDataset extends Object implements GuardedDataset
| Constructor and Description |
|---|
testDataset(ReqState rs) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
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.
|
DataInputStream |
openCachedDAS(ReqState rs)
************************************************************************
Opens a DAS cached on local disk.
|
DataInputStream |
openCachedDDS(ReqState rs)
************************************************************************
Opens a DDS cached on local disk.
|
DataInputStream |
openCachedDDX(ReqState rs)
************************************************************************
Opens a DDX cached on local disk.
|
void |
release() |
public testDataset(ReqState rs)
public void release()
release in interface GuardedDatasetpublic void close()
close in interface GuardedDatasetpublic ServerDDS getDDS() throws DAP2Exception, ParseException
getDDS in interface GuardedDatasetServerDDS for the named data set.DAP2ExceptionParseExceptionServerDDS,
test_ServerFactorypublic 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.ReqStatepublic 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.ReqStatepublic DAS getDAS() throws DAP2Exception, ParseException
getDAS in interface GuardedDatasetdataSetDAP2ExceptionParseExceptionDASpublic DataInputStream openCachedDAS(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.FileNotFoundExceptionReqStateCopyright © 1999–2015 UCAR/Unidata. All rights reserved.