|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdods.servlet.dodsINFO
public class dodsINFO
Default handler for DODS info requests. This class is used by DODSServlet. This code exists as a seperate class in order to alleviate code bloat in the DODSServlet class. As such, it contains virtually no state, just behaviors.
Constructor Summary | |
---|---|
dodsINFO()
|
Method Summary | |
---|---|
String |
loadOverrideDoc(String infoDir,
String dataSet)
Checks the info directory for user supplied override documents for the passed dataset name. |
void |
sendINFO(PrintStream pw,
GuardedDataset gds,
requestState rs)
Default handler for DODS info requests. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public dodsINFO()
Method Detail |
---|
public void sendINFO(PrintStream pw, GuardedDataset gds, requestState rs) throws DODSException, ParseException
In the C++ code the analogy is the per-cgi file names.
The dataset specific HTML* files are located by catenating `.html' to #name#, where #name# is the name of the dataset. If the filename part of #name# is of the form [A-Za-z]+[0-9]*.* then this function also looks for a file whose name is [A-Za-z].html For example, if #name# is .../data/fnoc1.nc this function first looks for .../data/fnoc1.nc.html. However, if that does not exist it will look for .../data/fnoc.html. This allows one `per-dataset' file to be used for a collection of files with the same root name.
NB: An HTML* file contains HTML without the , or tags (my own notation).
pw
- The PrintStream to which the output should be written.dataSet
- The name of the dataset. Used to locate dataset
specific information files in the info directory.dServ
- The DODSServlet object containing the correct getDDS(), getDAS),
and getServerName() methods for the dataSet.
DODSException
ParseException
public String loadOverrideDoc(String infoDir, String dataSet) throws DODSException
dataSet
- The name of the dataset.
DODSException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |