dods.servlet.jake
Class DAPServlet

java.lang.Object
  extended by HttpServlet
      extended by dods.servlet.jake.DispatchServlet
          extended by dods.servlet.jake.DAPServlet

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 $
Author:
jehamby

Constructor Summary
DAPServlet()
           
 
Method Summary
 void getDAS(HttpServletRequest req, HttpServletResponse res, String path, String ce)
          Get the DODS DAS.
 void getData(HttpServletRequest req, HttpServletResponse res, String path, String ce, boolean compress)
          Get the DODS Dataset.
 void getDDS(HttpServletRequest req, HttpServletResponse res, String path, String ce)
          Get the DODS DDS.
 
Methods inherited from class dods.servlet.jake.DispatchServlet
doGet
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DAPServlet

public DAPServlet()
Method Detail

getDAS

public void getDAS(HttpServletRequest req,
                   HttpServletResponse res,
                   String path,
                   String ce)
            throws ServletException,
                   IOException
Get the DODS DAS.

Specified by:
getDAS in class DispatchServlet
Parameters:
req - the HttpServletRequest to use
res - the HttpServletResponse to use
path - the DODS file path in the URL
ce - the DODS constraint expression in the URL
Throws:
IOException - if detected when handling the request
ServletException - if the request could not be handled

getDDS

public void getDDS(HttpServletRequest req,
                   HttpServletResponse res,
                   String path,
                   String ce)
            throws ServletException,
                   IOException
Get the DODS DDS.

Specified by:
getDDS in class DispatchServlet
Parameters:
req - the HttpServletRequest to use
res - the HttpServletResponse to use
path - the DODS file path in the URL
ce - the DODS constraint expression in the URL
Throws:
IOException - if detected when handling the request
ServletException - if the request could not be handled

getData

public void getData(HttpServletRequest req,
                    HttpServletResponse res,
                    String path,
                    String ce,
                    boolean compress)
             throws ServletException,
                    IOException
Get the DODS Dataset.

Specified by:
getData in class DispatchServlet
Parameters:
req - the HttpServletRequest to use
res - the HttpServletResponse to use
path - the DODS file path in the URL
ce - the DODS constraint expression in the URL
compress - whether to compress the DODS output
Throws:
IOException - if detected when handling the request
ServletException - if the request could not be handled