org.deegree_impl.services.wfs
Class RemoteWFService

java.lang.Object
  extended byorg.deegree_impl.services.OGCWebService_Impl
      extended byorg.deegree_impl.services.wfs.RemoteWFService
All Implemented Interfaces:
OGCWebService

public class RemoteWFService
extends OGCWebService_Impl

An instance of the class acts as a wrapper to a remote WFS.

Version:
$Revision: 1.15 $
Author:
Andreas Poth

Nested Class Summary
protected  class RemoteWFService.RemoteWFSHandler
           
 
Field Summary
protected  java.util.HashMap addresses
           
protected static java.lang.String DESCRIBEFEATURETYPE
           
protected static java.lang.String GETCAPABILITIES
           
protected static java.lang.String GETFEATURE
           
protected static java.lang.String GETFEATUREWITHLOCK
           
protected static java.lang.String LOCKFEATURE
           
protected static java.lang.String TRANSACTION
           
 
Fields inherited from class org.deegree_impl.services.OGCWebService_Impl
capabilities
 
Constructor Summary
RemoteWFService(WFSCapabilities capabilities)
          Creates a new instance of RemoteWFService
 
Method Summary
 void doService(OGCWebServiceEvent event)
          the implementation of this method performs the handling of the passed OGCWebServiceEvent in an new own Thread.
 OGCWebServiceResponse doService(OGCWebServiceRequest request)
          the method performs the handling of the passed OGCWebServiceEvent directly and returns the result to the calling class/method
private  void handleDescribeFeatureType(WFSDescribeFeatureTypeRequest request, OGCWebServiceClient client)
          Pefroms a describe feature type request against a remote WFS.
private  void handleGetCapabilities(WFSGetCapabilitiesRequest request, OGCWebServiceClient client)
          reads the capabilities from the remote WFS by performing a GetCapabilities request against it.
private  void handleGetFeature(WFSGetFeatureRequest request, OGCWebServiceClient client)
          performs a GetFeature request against the remote service.
private  OGCWebServiceEvent handleLockFeature(WFSLockFeatureRequest request)
           
private  OGCWebServiceEvent handleTransaction(WFSTransactionRequest request)
           
 
Methods inherited from class org.deegree_impl.services.OGCWebService_Impl
getCapabilities
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GETCAPABILITIES

protected static final java.lang.String GETCAPABILITIES
See Also:
Constant Field Values

GETFEATURE

protected static final java.lang.String GETFEATURE
See Also:
Constant Field Values

GETFEATUREWITHLOCK

protected static final java.lang.String GETFEATUREWITHLOCK
See Also:
Constant Field Values

DESCRIBEFEATURETYPE

protected static final java.lang.String DESCRIBEFEATURETYPE
See Also:
Constant Field Values

TRANSACTION

protected static final java.lang.String TRANSACTION
See Also:
Constant Field Values

LOCKFEATURE

protected static final java.lang.String LOCKFEATURE
See Also:
Constant Field Values

addresses

protected java.util.HashMap addresses
Constructor Detail

RemoteWFService

public RemoteWFService(WFSCapabilities capabilities)
                throws WebServiceException
Creates a new instance of RemoteWFService

Method Detail

doService

public void doService(OGCWebServiceEvent event)
               throws WebServiceException
Description copied from interface: OGCWebService
the implementation of this method performs the handling of the passed OGCWebServiceEvent in an new own Thread. The receiver of the response to the request must implement the OGCWebServiceClient interface

Parameters:
event - request to be performed
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

Parameters:
request - request (WMS, WCS, WFS, WCAS, WCTS, WTS, Gazetter) to perform
Throws:
WebServiceException

handleGetFeature

private void handleGetFeature(WFSGetFeatureRequest request,
                              OGCWebServiceClient client)
                       throws WebServiceException
performs a GetFeature request against the remote service. The method uses http-POST to call the remote WFS

Parameters:
request - get feature request
Throws:
WebServiceException

handleDescribeFeatureType

private void handleDescribeFeatureType(WFSDescribeFeatureTypeRequest request,
                                       OGCWebServiceClient client)
                                throws WebServiceException
Pefroms a describe feature type request against a remote WFS. The method uses http-GET to call the remote WFS

Parameters:
request - describe feature type request
client - receiver of the response to the request
Throws:
WebServiceException

handleGetCapabilities

private void handleGetCapabilities(WFSGetCapabilitiesRequest request,
                                   OGCWebServiceClient client)
                            throws WebServiceException
reads the capabilities from the remote WFS by performing a GetCapabilities request against it. The method uses http-GET to call the remote WFS

Parameters:
request - capabilities request
client - receiver of the response to the request
Throws:
WebServiceException

handleLockFeature

private OGCWebServiceEvent handleLockFeature(WFSLockFeatureRequest request)
Parameters:
request -

handleTransaction

private OGCWebServiceEvent handleTransaction(WFSTransactionRequest request)
Parameters:
request -