|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdods.servers.sql.sqlDataset
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.
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. |
sqlDDS |
getSQLDDS()
For the DODS SQL server this method does the following: Makes a newsqlServerFactory (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. |
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 sqlDDS getSQLDDS() throws DODSException, ParseException
getSQLDDS
in interface GuardedSQLDataset
sqlDDS
for the named data set.
DODSException
ParseException
ServerDDS
,
sqlServerFactory
,
test_ServerFactory
public ServerDDS getDDS() throws DODSException, ParseException
getDDS
in interface GuardedDataset
ServerDDS
for the named data set.
ParseException
DODSException
ServerDDS
,
test_ServerFactory
public java.io.DataInputStream openCachedDDS(ReqState rs) throws DODSException
This method uses the iniFile
object cached by
loadIniFile()
to determine where to look for the cached
DDS
.
rs
- The ReqState object for this client request.
DataInputStream
from which the DDS can
be read.
DODSException
ReqState
public DAS getDAS() throws DODSException, ParseException
getDAS
in interface GuardedDataset
dataSet
DODSException
ParseException
DAS
public java.io.DataInputStream openCachedDAS(ReqState rs) throws java.io.FileNotFoundException
This method uses the iniFile
object cached by
loadIniFile()
to determine where to look for the cached
DDS
.
If the DAS cannot be found an error is sent back to the client.
rs
- The ReqState object for this client request.
DataInputStream
from which the DAS can
be read.
java.io.FileNotFoundException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |