org.deegree_impl.enterprise
Class WFSServlet

java.lang.Object
  extended byHttpServlet
      extended byorg.deegree_impl.enterprise.AbstractOGCServlet
          extended byorg.deegree_impl.enterprise.WFSServlet

public class WFSServlet
extends AbstractOGCServlet

Serves as an OCC-compliant HTTP-frontend to the WFS.

Version:
$Revision: 1.37 $ $Date: 2004/05/31 09:53:35 $
Author:
Andreas Poth, Markus Schneider
See Also:
Serialized Form

Nested Class Summary
private  class WFSServlet.WFS
          private inner class that represents the web feature service.
 
Nested classes inherited from class org.deegree_impl.enterprise.AbstractOGCServlet
AbstractOGCServlet.Reloader
 
Field Summary
private  java.lang.Exception initException
           
protected  WFSServicePool servicePool
           
protected  WFSCapabilities wfsCapabilities
           
 
Fields inherited from class org.deegree_impl.enterprise.AbstractOGCServlet
capabilitiesURL, reloader
 
Constructor Summary
WFSServlet()
           
 
Method Summary
 void doGet(HttpServletRequest req, HttpServletResponse resp)
          Called by the server (via the service method) to allow a servlet to handle a GET request.
 void doPost(HttpServletRequest req, HttpServletResponse resp)
          Called by the server (via the service method) to allow a servlet to handle a POST request.
 void init(ServletConfig servletConfig)
          Called by the servlet container to indicate that the servlet is being placed into service.
protected  void initService()
          Called when reinitialization of the service is necessary, e.g.
protected  void returnException(java.io.OutputStream os, org.w3c.dom.Document exception)
           
 
Methods inherited from class org.deegree_impl.enterprise.AbstractOGCServlet
destroy, enableReloader, getParamMap, handleError
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

servicePool

protected WFSServicePool servicePool

wfsCapabilities

protected WFSCapabilities wfsCapabilities

initException

private java.lang.Exception initException
Constructor Detail

WFSServlet

public WFSServlet()
Method Detail

doGet

public void doGet(HttpServletRequest req,
                  HttpServletResponse resp)
Called by the server (via the service method) to allow a servlet to handle a GET request.

Parameters:
req - an HttpServletRequest object that contains the request the client has made to the servlet
resp - an HttpServletResponse object that contains the response the servlet sends to the client

doPost

public void doPost(HttpServletRequest req,
                   HttpServletResponse resp)
Called by the server (via the service method) to allow a servlet to handle a POST request.

Parameters:
req - an HttpServletRequest object that contains the request the client has made to the servlet
resp - an HttpServletResponse object that contains the response the servlet sends to the client

init

public void init(ServletConfig servletConfig)
          throws ServletException
Called by the servlet container to indicate that the servlet is being placed into service.

Overrides:
init in class AbstractOGCServlet
Parameters:
servletConfig - servlet capabilities
Throws:
ServletException - exception if something occurred that interferes with the servlet's normal operation

initService

protected void initService()
Called when reinitialization of the service is necessary, e.g. the capabilities file has been altered.

Specified by:
initService in class AbstractOGCServlet

returnException

protected void returnException(java.io.OutputStream os,
                               org.w3c.dom.Document exception)
                        throws java.io.IOException
Throws:
java.io.IOException