|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.deegree_impl.services.OGCWebService_Impl
org.deegree_impl.services.wcas.WCASService_Impl
A WCAS implementns the WCASService interface to act like a OGC web service. This means that a WCAS is callable through the doService-method defined at OGCWebService.
Because the WCASService_Impl acts as proxy he also implements the OGCWebServiceClient interface to receive the response(s) from the WFS's he had called. So the WCAS is nothing else than a client to a WFS.-----------------------------------------------------
Field Summary | |
private WCASCapabilities |
capa
|
private OGCWebServiceClient |
dest
|
private Handler |
dispatcher
|
private int |
expectedResponses
|
private OGCWebServiceRequest |
inRequest
|
private int |
reqType
|
private OGCWebServiceRequest[] |
requests
|
private java.util.ArrayList |
results
|
Fields inherited from class org.deegree_impl.services.OGCWebService_Impl |
capabilities |
Constructor Summary | |
WCASService_Impl(WCASCapabilities capa)
constructor |
Method Summary | |
void |
doService(OGCWebServiceEvent event)
implements the doService method inherited from the OGCWebService interface. |
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 |
handleDescribeRecordTypeResponse()
handles the creation and send of a describeRecordType response back to the client |
private void |
handleGetCapabilities(CASGetCapabilitiesRequest request)
handles a get capabilities request by reading the capabilities document from its source. |
private void |
handleGetCapabilitiesResponse()
handles the response to a GetCapabilities request |
private void |
handleGetRecordResponse()
handles the creation and send of a getRecord response back to the client |
private void |
handleRegisterServiceResponse()
handles the creation and send of a registerService response back to the client |
void |
handleRequest(OGCWebServiceEvent event)
handles a request against an OGC web service |
void |
handleResponse(OGCWebServiceEvent event)
handles the response of an OGC web service |
private void |
handleTransactionResponse()
handles the creation and send of a transaction response back to the client |
boolean |
isInterested(OGCWebServiceEvent event)
returns true if the handler is interested in a event |
private void |
performCascadeGetRecord(CASGetRecordRequest request)
performs getRecord requests against all known federated catalogs. |
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)
removes a registered handler from the service |
private OGCWebServiceEvent[] |
transformDescribeRecordType(CASDescribeRecordTypeRequest request)
transforms a describeRecordType request to one describeFeatureType request and encapsulates it into one OGCWebServiceEvent |
private OGCWebServiceEvent[] |
transformGetRecord(CASGetRecordRequest request)
transforms a getRecord request to one or more getFeature requests and encapsulates them into one or more OGCWebServiceEvents |
private OGCWebServiceEvent[] |
transformRegisterService(CASRegisterServiceRequest request)
performs a registerService request. this will be done by requesting the service describing XML document from the specified address and transforming it into one or more (WFS) transaction requests encapsulated into one or more OGCWebServiceEvents. |
private OGCWebServiceEvent[] |
transformToWFSRequest(OGCWebServiceRequest request)
transforms a CASRequest to one or more WFS requests |
private OGCWebServiceEvent[] |
transformTransaction(CASTransactionRequest request)
transforms a (WCAS) transaction request to one (WFS) transaction request and encapsulates it into one OGCWebServiceEvent |
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 |
private java.util.ArrayList results
private Handler dispatcher
private OGCWebServiceClient dest
private OGCWebServiceRequest inRequest
private WCASCapabilities capa
private OGCWebServiceRequest[] requests
private int expectedResponses
private int reqType
Constructor Detail |
public WCASService_Impl(WCASCapabilities capa)
capa
- catalog capabilities
catalogMethod Detail |
public void doService(OGCWebServiceEvent event) throws WebServiceException
doService
in interface OGCWebService
event
- event object that contains the requets to be performed
WebServiceException
public OGCWebServiceResponse doService(OGCWebServiceRequest request) throws WebServiceException
doService
in interface OGCWebService
request
- request (WMS, WCS, WFS, WCAS, WCTS, WTS, Gazetter) to perform
WebServiceException
private void handleGetRecordResponse() throws java.lang.Exception
java.lang.Exception
private void handleDescribeRecordTypeResponse()
private void handleTransactionResponse()
private void handleRegisterServiceResponse()
private void handleGetCapabilitiesResponse()
private OGCWebServiceEvent[] transformToWFSRequest(OGCWebServiceRequest request) throws java.lang.Exception
java.lang.Exception
private OGCWebServiceEvent[] transformGetRecord(CASGetRecordRequest request) throws java.lang.Exception
java.lang.Exception
private OGCWebServiceEvent[] transformDescribeRecordType(CASDescribeRecordTypeRequest request)
private OGCWebServiceEvent[] transformTransaction(CASTransactionRequest request)
private OGCWebServiceEvent[] transformRegisterService(CASRegisterServiceRequest request) throws java.lang.Exception
java.lang.Exception
private void handleGetCapabilities(CASGetCapabilitiesRequest request)
private void performCascadeGetRecord(CASGetRecordRequest request) throws java.lang.Exception
java.lang.Exception
public void handleRequest(OGCWebServiceEvent event)
handleRequest
in interface Handler
event
- event object that contains the request to be performedpublic void handleResponse(OGCWebServiceEvent event)
handleResponse
in interface Handler
event
- event oject that contains the response to a requestpublic boolean isInterested(OGCWebServiceEvent event)
isInterested
in interface Handler
event
- event object that contains a request or response to a request
public void registerHandler(Handler handler)
registerHandler
in interface Handler
handler
- handler to be registered to the servicepublic void removeHandler(Handler handler)
removeHandler
in interface Handler
handler
- handler to be removed from the serviceregisterHandler(Handler)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |