dods.servlet.jake
Class DAPServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
dods.servlet.jake.DispatchServlet
dods.servlet.jake.DAPServlet
- All Implemented Interfaces:
- java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
- public class DAPServlet
- extends DispatchServlet
DAP servlet. This servlet reads binary DAP files, along with ASCII
descriptions of the DAS and DDS, and serves them out.
- Version:
- $Revision: 1.2.4.1 $
- Author:
- jehamby
- See Also:
- Serialized Form
Method Summary |
void |
getDAS(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
java.lang.String path,
java.lang.String ce)
Get the DODS DAS. |
void |
getData(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
java.lang.String path,
java.lang.String ce,
boolean compress)
Get the DODS Dataset. |
void |
getDDS(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
java.lang.String path,
java.lang.String ce)
Get the DODS DDS. |
Methods inherited from class javax.servlet.http.HttpServlet |
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service |
Methods inherited from class javax.servlet.GenericServlet |
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DAPServlet
public DAPServlet()
getDAS
public void getDAS(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
java.lang.String path,
java.lang.String ce)
throws javax.servlet.ServletException,
java.io.IOException
- Get the DODS DAS.
- Specified by:
getDAS
in class DispatchServlet
- Parameters:
req
- the HttpServletRequest to useres
- the HttpServletResponse to usepath
- the DODS file path in the URLce
- the DODS constraint expression in the URL
- Throws:
java.io.IOException
- if detected when handling the request
javax.servlet.ServletException
- if the request could not be handled
getDDS
public void getDDS(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
java.lang.String path,
java.lang.String ce)
throws javax.servlet.ServletException,
java.io.IOException
- Get the DODS DDS.
- Specified by:
getDDS
in class DispatchServlet
- Parameters:
req
- the HttpServletRequest to useres
- the HttpServletResponse to usepath
- the DODS file path in the URLce
- the DODS constraint expression in the URL
- Throws:
java.io.IOException
- if detected when handling the request
javax.servlet.ServletException
- if the request could not be handled
getData
public void getData(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
java.lang.String path,
java.lang.String ce,
boolean compress)
throws javax.servlet.ServletException,
java.io.IOException
- Get the DODS Dataset.
- Specified by:
getData
in class DispatchServlet
- Parameters:
req
- the HttpServletRequest to useres
- the HttpServletResponse to usepath
- the DODS file path in the URLce
- the DODS constraint expression in the URLcompress
- whether to compress the DODS output
- Throws:
java.io.IOException
- if detected when handling the request
javax.servlet.ServletException
- if the request could not be handled