opendap.servlet
Class GetHTMLInterfaceHandler
java.lang.Object
opendap.servlet.GetHTMLInterfaceHandler
public class GetHTMLInterfaceHandler
- extends java.lang.Object
Default handler for OPeNDAP .html requests. This class is used
by AbstractServlet. This code exists as a seperate class in order to alleviate
code bloat in the AbstractServlet class. As such, it contains virtually no
state, just behaviors.
- Author:
- Nathan David Potter
Method Summary |
DDS |
getWebFormDDS(java.lang.String dataSet,
ServerDDS sDDS)
************************************************************************
Gets a DDS for the specified data set and builds it using the class
factory in the package opendap.servers.www. |
void |
sendDataRequestForm(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.lang.String dataSet,
ServerDDS sdds,
DAS myDAS)
************************************************************************
Default handler for OPeNDAP .html requests. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GetHTMLInterfaceHandler
public GetHTMLInterfaceHandler()
sendDataRequestForm
public void sendDataRequestForm(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.lang.String dataSet,
ServerDDS sdds,
DAS myDAS)
throws DAP2Exception,
ParseException
- ************************************************************************
Default handler for OPeNDAP .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 opendap.servers.www are integral to the form generation.
- Parameters:
request
- The HttpServletRequest
from the client.response
- The HttpServletResponse
for the client.dataSet
- sdds
- myDAS
-
- Throws:
DAP2Exception
ParseException
- See Also:
wwwFactory
getWebFormDDS
public DDS getWebFormDDS(java.lang.String dataSet,
ServerDDS sDDS)
throws DAP2Exception,
ParseException
- ************************************************************************
Gets a DDS for the specified data set and builds it using the class
factory in the package opendap.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.
3 * @return A DDS object built using the www interface class factory.
- Throws:
DAP2Exception
ParseException
- See Also:
DDS
,
wwwFactory