|
|||||||||||
| 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.gazetteer.GazetteerService_Impl
This is the basic implementation for a OGC conform web coverage service within the deegree framework. A WCSService extends the OGCWebService interface to act like a OGC web service. This means that a WCS is callable through the doService -method inherited from OGCWebService.
| Field Summary | |
private OGCWebServiceEvent |
event
|
private GazetteerResponseTree |
gazetteerresponsetree
|
private int |
hierarchyLevels
|
private java.lang.String[] |
propertyNames
|
private java.lang.String |
relationType
|
| Fields inherited from class org.deegree_impl.services.OGCWebService_Impl |
capabilities |
| Constructor Summary | |
GazetteerService_Impl(WFSGCapabilities capabilities)
|
|
| Method Summary | |
private Node |
appendChild(java.lang.String id,
SI_LocationType locType,
Feature feature)
appends a child node to the node identified by the passed ID |
private WFSGetFeatureRequest |
createGetFeatureRequest(java.lang.String id,
java.lang.String featureType,
Operation operation,
java.lang.String wfsVersion)
creates a GetFeature request for accessing the locationinstances of the next level. |
private Operation |
createOperation(GM_Object prop)
creates the FilterEncoding operation formulating the relation between two location types for Geometry type properties |
private Operation |
createOperation(java.lang.Object prop)
creates the FilterEncoding operation formulating the relation between two location types for none Geometry type properties |
void |
doService(OGCWebServiceEvent event)
implements the doService method inherited from the OGCWebService_Impl class. |
OGCWebServiceResponse |
doService(OGCWebServiceRequest req)
implements the doService method inherited from the OGCWebService_Impl class. |
private void |
finishGazetteerService()
|
private void |
handleDescribeFeatureType(WFSGDescribeFeatureTypeRequest request)
|
private void |
handleGetCapabilities(WFSGGetCapabilitiesRequest request)
|
private void |
handleGetFeatureRequest(WFSGGetFeatureRequest request)
creates and performs the initial GetFeature request |
private void |
handleGetFeatureResponse(OGCWebServiceEvent wse)
handles a response to a GetFeature request by informing the controller about the received response and creating a list of new GetFeature requests for the next hierarchy level if the last hierarchy level hasn't been reached. |
private void |
initResponseTree(java.lang.String id,
SI_LocationType locationtype)
initializes the tree that manages all submitted requests and the responses to it. |
boolean |
isFinnished(Node node)
traverses the tree in preorder starting at the passed node |
private void |
performGetFeatureRequest(WFSGetFeatureRequest request)
|
private void |
performHierachyRequests(WFSGetFeatureResponse response,
Node node)
creates GetFeature requests to receive the locations instances for the next hierarchy level related to the passed response |
private void |
performWFSRequest(WFSGetFeatureResponse response,
SI_LocationType locType)
performs requests for accessing the location instances ofthe next narrower term corresponding to the current hierarchy level of the passed WFSGetFeatureRespose |
private Feature |
recreateFeature(Feature feature,
java.lang.String[] propertyNames,
boolean leaf)
creates a new feature by adding a property named 'children' that will contain all children of the passed feature. |
void |
write(java.lang.Object result)
Method from OGCWebServiceClient. |
| 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 OGCWebServiceEvent event
private int hierarchyLevels
private java.lang.String relationType
private java.lang.String[] propertyNames
private GazetteerResponseTree gazetteerresponsetree
| Constructor Detail |
public GazetteerService_Impl(WFSGCapabilities capabilities)
capabilities - | Method Detail |
public void doService(OGCWebServiceEvent event)
throws WebServiceException
doService in interface OGCWebServiceevent - event object that contains the requests to be performed
WebServiceExceptionpublic OGCWebServiceResponse doService(OGCWebServiceRequest req)
doService in interface OGCWebServicereq - requet to be performed
private void handleGetCapabilities(WFSGGetCapabilitiesRequest request)
throws WebServiceException
request -
WebServiceException
private void handleDescribeFeatureType(WFSGDescribeFeatureTypeRequest request)
throws WebServiceException
request -
WebServiceException
private void handleGetFeatureRequest(WFSGGetFeatureRequest request)
throws GazetteerException
request -
GazetteerException
private void initResponseTree(java.lang.String id,
SI_LocationType locationtype)
id - id of the root nodelocationtype - type of the request assigned to the root node
private void performGetFeatureRequest(WFSGetFeatureRequest request)
throws GazetteerException
request -
GazetteerExceptionpublic void write(java.lang.Object result)
write in interface OGCWebServiceClientresult - private void handleGetFeatureResponse(OGCWebServiceEvent wse)
wse - OGCWebServiceEvent containing a WFSGetFeatureResponse
private void performHierachyRequests(WFSGetFeatureResponse response,
Node node)
throws GazetteerException
GazetteerException
private void performWFSRequest(WFSGetFeatureResponse response,
SI_LocationType locType)
throws GazetteerException
response - locType -
GazetteerException
private Operation createOperation(GM_Object prop)
throws GazetteerException
prop - geometry property acting as literal of the operation
GazetteerException
private Operation createOperation(java.lang.Object prop)
throws GazetteerException
prop - feature property acting as literal of the operation
GazetteerException
private WFSGetFeatureRequest createGetFeatureRequest(java.lang.String id,
java.lang.String featureType,
Operation operation,
java.lang.String wfsVersion)
throws GazetteerException
GazetteerException
private Node appendChild(java.lang.String id,
SI_LocationType locType,
Feature feature)
id - of the parent nodelocType - location type of the requested instancesfeature - feature assigned to the new node
private Feature recreateFeature(Feature feature,
java.lang.String[] propertyNames,
boolean leaf)
feature - source feature to re-createpropertyNames - names of the properties to be considerpublic boolean isFinnished(Node node)
private void finishGazetteerService()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||