dods.servlet
Class dodsHTML
java.lang.Object
dods.servlet.dodsHTML
public class dodsHTML
- extends Object
Default handler for DODS .html 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.
- Author:
- Nathan David Potter
Method Summary |
DDS |
getWebFormDDS(String dataSet,
ServerDDS sDDS)
Gets a DDS for the specified data set and builds it using the class
factory in the package dods.servers.www. |
void |
sendDataRequestForm(HttpServletRequest request,
HttpServletResponse response,
String dataSet,
ServerDDS sdds,
DAS myDAS)
Default handler for DODS .html requests. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
dodsHTML
public dodsHTML()
sendDataRequestForm
public void sendDataRequestForm(HttpServletRequest request,
HttpServletResponse response,
String dataSet,
ServerDDS sdds,
DAS myDAS)
throws DODSException,
ParseException
- Default handler for DODS .html requests. Returns an html form
and javascript code that allows the user to use their browser
to select variables and build constraints for a data request.
The DDS and DAS for the data set are used to build the form. The
types in dods.servers.www are integral to the form generation.
- Parameters:
request
- The HttpServletRequest
from the client.response
- The HttpServletResponse
for the client.dServ
- The DODSServlet object containing the correct getDDS(), getDAS),
and getServerName() methods for the dataSet.
- Throws:
DODSException
ParseException
- See Also:
dods.servers.www
getWebFormDDS
public DDS getWebFormDDS(String dataSet,
ServerDDS sDDS)
throws DODSException,
ParseException
- Gets a DDS for the specified data set and builds it using the class
factory in the package dods.servers.www.
Currently this method uses a deprecated API to perform a translation
of DDS types. This is a known problem, and as soon as an alternate
way of achieving this result is identified we will implement it.
(Your comments appreciated!)
- Parameters:
dataSet
- A String
containing the data set name.dServ
- The DODSServlet
reference for the servlet
pbject that's running this show.
- Throws:
DODSException
ParseException
- See Also:
DDS
,
dods.servers.www
,
wwwFactory