org.deegree_impl.services.wfs
Class WFSService_Impl

java.lang.Object
  extended byorg.deegree_impl.services.OGCWebService_Impl
      extended byorg.deegree_impl.services.wfs.WFSService_Impl
All Implemented Interfaces:
java.util.EventListener, Handler, OGCWebService

public class WFSService_Impl
extends OGCWebService_Impl
implements Handler

This is the OGC conform web feature server class within the deegree framework. A WFSService_Impl extends the WFSService interface to act like a OGC web service. This means that a WFS is callable through the doService-method inherited from OGCWebService.

-------------------------------------------------------------------------

Version:
$Revision: 1.21 $ $Date: 2004/03/07 09:32:49 $

Author:
Andreas Poth

Field Summary
protected  java.util.Map clients
           
private  Handler dispatcher
           
 
Fields inherited from class org.deegree_impl.services.OGCWebService_Impl
capabilities
 
Constructor Summary
WFSService_Impl(WFSCapabilities capabilities)
          the constructor receives an instance of o WFSCapabilities object that enables accessing the capabilities of the WFS which includes the assaciation between services, feature types and responsible classes.
 
Method Summary
 java.lang.Object clone()
          returns a copy of the WFSService_Impl using the same capabilities reference
 void doService(OGCWebServiceEvent event)
          implements the doService method inherited from the OGCWebService interface via WFSService.
 OGCWebServiceResponse doService(OGCWebServiceRequest request)
          the method performs the handling of the passed OGCWebServiceEvent directly and returns the result to the calling class/method
 void finalize()
          removes all resources allocated
private  void handleDescribeFeatureTypeResponse(OGCWebServiceResponse response)
          handles the response of an DescribeFeatureType request
private  void handleGetCapabilitiesResponse(OGCWebServiceRequest request)
          handles the response of an GetCapabilities request
private  void handleLockFeatureResponse()
          handles the response of an LockFeature request
 void handleRequest(OGCWebServiceEvent event)
          handles a request against an OGC web service
 void handleResponse(OGCWebServiceEvent event)
          receives the response from the WFSDispatcher.
private  void handleTransactionResponse(OGCWebServiceResponse response)
          handles the response of an Transaction request
 boolean isInterested(OGCWebServiceEvent event)
          returns true if the handler is interested in a event
 void registerHandler(Handler handler)
          registers a Handler so this Handler is able to act as a proxy to the registered handler
 void removeHandler(Handler handler)
           
 
Methods inherited from class org.deegree_impl.services.OGCWebService_Impl
getCapabilities
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dispatcher

private Handler dispatcher

clients

protected java.util.Map clients
Constructor Detail

WFSService_Impl

public WFSService_Impl(WFSCapabilities capabilities)
the constructor receives an instance of o WFSCapabilities object that enables accessing the capabilities of the WFS which includes the assaciation between services, feature types and responsible classes. The second parameter is an instance of the (a) WFSDispatcher that handles the requests and calls the responsible data store classes (e.g. OracleDataStore).

Method Detail

clone

public java.lang.Object clone()
returns a copy of the WFSService_Impl using the same capabilities reference

Returns:

finalize

public void finalize()
removes all resources allocated


registerHandler

public void registerHandler(Handler handler)
registers a Handler so this Handler is able to act as a proxy to the registered handler

Specified by:
registerHandler in interface Handler

removeHandler

public void removeHandler(Handler handler)
Specified by:
removeHandler in interface Handler
See Also:
registerHandler(Handler)

doService

public void doService(OGCWebServiceEvent event)
               throws WebServiceException
implements the doService method inherited from the OGCWebService interface via WFSService. The method analyses the request and calls the WFSDispatcher for performing it.

Specified by:
doService in interface OGCWebService
Parameters:
event - request (WMS, WCS, WFS, WCAS, WCTS, WTS, Gazetter) to perform
Throws:
WebServiceException

doService

public OGCWebServiceResponse doService(OGCWebServiceRequest request)
                                throws WebServiceException
the method performs the handling of the passed OGCWebServiceEvent directly and returns the result to the calling class/method

Specified by:
doService in interface OGCWebService
Parameters:
request - request (WMS, WCS, WFS, WCAS, WCTS, WTS, Gazetter) to perform
Throws:
WebServiceException

handleRequest

public void handleRequest(OGCWebServiceEvent event)
handles a request against an OGC web service

Specified by:
handleRequest in interface Handler

isInterested

public boolean isInterested(OGCWebServiceEvent event)
returns true if the handler is interested in a event

Specified by:
isInterested in interface Handler

handleResponse

public void handleResponse(OGCWebServiceEvent event)
receives the response from the WFSDispatcher. Calling this method an internal flag is set that indicates that the waiting loop can be aborted without an exception.

Specified by:
handleResponse in interface Handler

handleGetCapabilitiesResponse

private void handleGetCapabilitiesResponse(OGCWebServiceRequest request)
                                    throws java.lang.Exception
handles the response of an GetCapabilities request

Throws:
java.lang.Exception

handleDescribeFeatureTypeResponse

private void handleDescribeFeatureTypeResponse(OGCWebServiceResponse response)
                                        throws java.lang.Exception
handles the response of an DescribeFeatureType request

Throws:
java.lang.Exception

handleLockFeatureResponse

private void handleLockFeatureResponse()
                                throws java.lang.Exception
handles the response of an LockFeature request

Throws:
java.lang.Exception

handleTransactionResponse

private void handleTransactionResponse(OGCWebServiceResponse response)
                                throws java.lang.Exception
handles the response of an Transaction request

Throws:
java.lang.Exception