Package thredds.server.opendap
Class GetHTMLInterfaceHandler2
- java.lang.Object
-
- thredds.server.opendap.GetHTMLInterfaceHandler2
-
public class GetHTMLInterfaceHandler2 extends 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.
-
-
Constructor Summary
Constructors Constructor Description GetHTMLInterfaceHandler2()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description opendap.dap.DDSgetWebFormDDS(String dataSet, opendap.servers.ServerDDS sDDS)************************************************************************ Gets a DDS for the specified data set and builds it using the class factory in the package opendap.servlet.www.voidsendDataRequestForm(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String dataSet, opendap.servers.ServerDDS sdds, opendap.dap.DAS myDAS)************************************************************************ Default handler for OPeNDAP .html requests.
-
-
-
Method Detail
-
sendDataRequestForm
public void sendDataRequestForm(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String dataSet, opendap.servers.ServerDDS sdds, opendap.dap.DAS myDAS) throws opendap.dap.DAP2Exception, opendap.dap.parsers.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.servlet.www are integral to the form generation.- Parameters:
request- TheHttpServletRequestfrom the client.response- TheHttpServletResponsefor the client.dataSet-sdds-myDAS-- Throws:
opendap.dap.DAP2Exceptionopendap.dap.parsers.ParseException- See Also:
wwwFactory
-
getWebFormDDS
public opendap.dap.DDS getWebFormDDS(String dataSet, opendap.servers.ServerDDS sDDS) throws opendap.dap.DAP2Exception, opendap.dap.parsers.ParseException
************************************************************************ Gets a DDS for the specified data set and builds it using the class factory in the package opendap.servlet.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- AStringcontaining the data set name. 3 * @return A DDS object built using the www interface class factory.- Throws:
opendap.dap.DAP2Exceptionopendap.dap.parsers.ParseException- See Also:
DDS,wwwFactory
-
-