|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.deegree_impl.services.wfs.protocol.WFSProtocolFactory
Factory class for all mapped WFS-XML-Requests.
| Field Summary | |
private static java.lang.String |
ogcNS
|
private static java.lang.String |
wfsNS
|
| Constructor Summary | |
WFSProtocolFactory()
|
|
| Method Summary | |
private static WFSDelete |
createDelete(org.w3c.dom.Element element)
Creates a WFSDelete object from a wfs:Delete-element as defined in the OGC-WFS specification. |
static WFSDelete |
createDelete(Filter filter,
java.lang.String typeName)
creates a WFSDelete object from a Filter and a typeName specifying the feature type to perform the deletion on. |
private static WFSInsert |
createInsert(org.w3c.dom.Element element)
Creates a WFSInsert object from a wfs:Update-element as defined in the OGC-WFS specification. |
static WFSInsert |
createInsert(GMLFeature[] feat,
java.lang.String handle)
creates a WFSInsert object from an array of GMLFeature and a handle. |
private static WFSNative |
createNative(org.w3c.dom.Element element)
creates nativ operations object from a XML-element defined by the OGC WFS specifications |
static WFSQuery |
createQuery(org.w3c.dom.Element element)
creates a WFS Query object from a dom element. |
static WFSQuery |
createQuery(java.lang.String[] propertyNames,
java.lang.String handle,
java.lang.String version,
java.lang.String typeName,
Filter filter)
creates a WFSQuery object from its property names, a handle the used version, the feature type (typeName) targeted by the query and a filter. |
static OGCWebServiceRequest |
createRequest(java.lang.String id,
java.io.Reader reader)
creates a WFS request from a reader that contains an XML encoded form of the request |
private static WFSUpdate |
createUpdate(org.w3c.dom.Element element)
Creates a WFSUpdate object from a wfs:Update-element as defined in the OGC-WFS specification. |
static WFSDescribeFeatureTypeRequest |
createWFSDescribeFeatureTypeRequest(java.lang.String id,
org.w3c.dom.Document doc)
creates a DescribeFeatureType request from a reader object that offers access to a string resource that contains XML document that encodes the request. |
static WFSDescribeFeatureTypeRequest |
createWFSDescribeFeatureTypeRequest(java.lang.String version,
java.lang.String id,
java.util.HashMap vendorSpecificParameter,
WFSNative native_,
java.lang.String outputFormat,
java.lang.String[] typeNames)
creates a WFSDescribeFeatureTypeRequest object. |
static WFSDescribeFeatureTypeResponse |
createWFSDescribeFeatureTypeResponse(OGCWebServiceRequest request,
java.lang.String[] affectedFeatureTypes,
OGCWebServiceException exception,
org.w3c.dom.Document featureTypeSchema)
creates a WFSDescribeFeatureTypeResponse object |
static WFSGetCapabilitiesRequest |
createWFSGetCapabilitiesRequest(java.lang.String id,
java.util.HashMap vendorSpecificParameter,
WFSNative native_)
creates a WFSGetCapabilitiesRequest object. |
static WFSGetCapabilitiesResponse |
createWFSGetCapabilitiesResponse(OGCWebServiceRequest request,
OGCWebServiceException exception,
WFSCapabilities response)
creates a WFSGetCapabilitiesResponse object |
static WFSGetFeatureRequest |
createWFSGetFeatureRequest(java.lang.String id,
org.w3c.dom.Document doc)
creates a instance of a WFSGetFeatureRequest object from a reader that contains the request-xml. |
static WFSGetFeatureRequest |
createWFSGetFeatureRequest(java.lang.String id,
java.lang.String request)
creates a GetFeature request from a key-value-pair encoding of the parameters contained in the passed varialble 'request' |
static WFSGetFeatureRequest |
createWFSGetFeatureRequest(java.lang.String version,
java.lang.String id,
java.util.HashMap vendorSpecificParameter,
WFSNative native_,
java.lang.String outputFormat,
java.lang.String handle,
Filter filter,
int maxFeatures,
int startPosition,
WFSQuery[] query)
creates a WFSGetFeatureRequest object. |
static WFSGetFeatureResponse |
createWFSGetFeatureResponse(OGCWebServiceRequest request,
java.lang.String[] affectedFeatureTypes,
OGCWebServiceException exception,
java.lang.Object response)
creates a WFSGetFeatureResponse object |
static WFSInsertResult |
createWFSInsertResult(java.lang.String handle,
java.lang.String[] featureIds)
creates a WFSInsertResult |
static WFSTransactionRequest |
createWFSTransactionRequest(java.lang.String id,
org.w3c.dom.Document doc)
creates a WFSTransactionRequest object. |
static WFSTransactionRequest |
createWFSTransactionRequest(java.lang.String version,
java.lang.String id,
java.lang.String lockId,
WFSOperation[] operations,
java.lang.String handle,
java.lang.String releaseAction)
creates a WFSTransactionRequest object. |
static WFSTransactionResponse |
createWFSTransactionResponse(OGCWebServiceRequest request,
java.lang.String[] affectedFeatureTypes,
OGCWebServiceException exception,
WFSInsertResult[] insertResults,
java.lang.String status,
java.lang.String handle)
creates a WFSTransactionRequest object. |
static Filter |
getFilter(org.w3c.dom.Element element)
returns the filter that limits the query |
static WFSNative |
getNative(org.w3c.dom.Element element)
The |
private static java.lang.String[] |
getPropertyNames(org.w3c.dom.Element element)
The property names is used to enumerate the feature properties or attributes that should be selected. |
private static WFSQuery[] |
getQuery(org.w3c.dom.Element element)
The query defines which feature type to query, what properties to retrieve and what constraints (spatial and non-spatial) to apply to those properties. |
private static java.util.Map |
toMap(java.lang.String request)
puts a http-GET request to a HashMap |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private static java.lang.String wfsNS
private static java.lang.String ogcNS
| Constructor Detail |
public WFSProtocolFactory()
| Method Detail |
public static OGCWebServiceRequest createRequest(java.lang.String id,
java.io.Reader reader)
throws java.lang.Exception
java.lang.Exception
public static WFSDescribeFeatureTypeRequest createWFSDescribeFeatureTypeRequest(java.lang.String id,
org.w3c.dom.Document doc)
throws java.io.IOException
java.io.IOException
public static WFSDescribeFeatureTypeRequest createWFSDescribeFeatureTypeRequest(java.lang.String version,
java.lang.String id,
java.util.HashMap vendorSpecificParameter,
WFSNative native_,
java.lang.String outputFormat,
java.lang.String[] typeNames)
id - id of the requestvendorSpecificParameter - none standadized parameters as
name-value pairsnative_ - is intended to allow access to vendor specific capabilitiesoutputFormat - indicates the format the result shall be formatedtypeNames - names of the feature types that shalle be described
public static WFSDescribeFeatureTypeResponse createWFSDescribeFeatureTypeResponse(OGCWebServiceRequest request,
java.lang.String[] affectedFeatureTypes,
OGCWebServiceException exception,
org.w3c.dom.Document featureTypeSchema)
request - a copy of the request that leads to this responseexception - a describtion of an excetion (only if raised)affectedFeatureTypes - names of the feature types affected by the
response
public static WFSGetFeatureRequest createWFSGetFeatureRequest(java.lang.String id,
java.lang.String request)
throws InconsistentRequestException
id - id of the requestrequest - key-value-pair encoded GetFeature request
InconsistentRequestException
public static WFSGetFeatureRequest createWFSGetFeatureRequest(java.lang.String version,
java.lang.String id,
java.util.HashMap vendorSpecificParameter,
WFSNative native_,
java.lang.String outputFormat,
java.lang.String handle,
Filter filter,
int maxFeatures,
int startPosition,
WFSQuery[] query)
id - id of the requestvendorSpecificParameter - none standadized parameters as
name-value pairsnative_ - is intended to allow access to vendor specific capabilitiesoutputFormat - indicates the format the result shall be formatedfilter - filter expression that describes the 'global' limitations
of the query.maxFeatures - maximal amout of featuers that shall be returnedstartPosition - index of the feature the query shall startquery - a set of Query objects that describes the query to perform
public static WFSGetFeatureRequest createWFSGetFeatureRequest(java.lang.String id,
org.w3c.dom.Document doc)
throws java.lang.Exception
doc - DOM object that contains the requestid - id of the request
java.lang.Exceptionpublic static WFSNative getNative(org.w3c.dom.Element element)
private static WFSQuery[] getQuery(org.w3c.dom.Element element)
throws java.lang.Exception
only used for xml-coded requests
java.lang.Exceptionprivate static java.lang.String[] getPropertyNames(org.w3c.dom.Element element)
public static Filter getFilter(org.w3c.dom.Element element)
throws FilterConstructionException
FilterConstructionException
public static WFSGetFeatureResponse createWFSGetFeatureResponse(OGCWebServiceRequest request,
java.lang.String[] affectedFeatureTypes,
OGCWebServiceException exception,
java.lang.Object response)
request - a copy of the request that leads to this responseexception - a describtion of an excetion (only if raised)affectedFeatureTypes - names of the feature types affected by the
responseresponse - the response to the request
public static WFSGetCapabilitiesRequest createWFSGetCapabilitiesRequest(java.lang.String id,
java.util.HashMap vendorSpecificParameter,
WFSNative native_)
id - id of the requestvendorSpecificParameter - none standadized parameters as
name-value pairsnative_ - is intended to allow access to vendor specific capabilities
public static WFSGetCapabilitiesResponse createWFSGetCapabilitiesResponse(OGCWebServiceRequest request,
OGCWebServiceException exception,
WFSCapabilities response)
request - a copy of the request that leads to this responseexception - a describtion of an excetion (only if raised)response - the response to the request
public static WFSQuery createQuery(java.lang.String[] propertyNames,
java.lang.String handle,
java.lang.String version,
java.lang.String typeName,
Filter filter)
public static WFSQuery createQuery(org.w3c.dom.Element element)
throws java.lang.Exception
element - dom element containing a WFS query
java.lang.Exception
public static WFSTransactionRequest createWFSTransactionRequest(java.lang.String version,
java.lang.String id,
java.lang.String lockId,
WFSOperation[] operations,
java.lang.String handle,
java.lang.String releaseAction)
id - id of the requestlockId - operations - handle - releaseAction - version -
public static WFSTransactionRequest createWFSTransactionRequest(java.lang.String id,
org.w3c.dom.Document doc)
throws XMLParsingException
id - id of the requestdoc - DOM objects that contains the request
XMLParsingException
public static WFSInsert createInsert(GMLFeature[] feat,
java.lang.String handle)
public static WFSDelete createDelete(Filter filter,
java.lang.String typeName)
private static WFSInsert createInsert(org.w3c.dom.Element element)
throws FilterConstructionException
element - the 'Insert'-Element
FilterConstructionException
private static WFSDelete createDelete(org.w3c.dom.Element element)
throws FilterConstructionException
element - the 'Delete'-Element
FilterConstructionException
private static WFSUpdate createUpdate(org.w3c.dom.Element element)
throws XMLParsingException
element - the 'Update'-Element
XMLParsingExceptionprivate static WFSNative createNative(org.w3c.dom.Element element)
public static WFSTransactionResponse createWFSTransactionResponse(OGCWebServiceRequest request,
java.lang.String[] affectedFeatureTypes,
OGCWebServiceException exception,
WFSInsertResult[] insertResults,
java.lang.String status,
java.lang.String handle)
request - request that lead to the responseaffectedFeatureTypes - feature types that has been affected
by the requestexception - exception if raisedstatus - termination status of the transaction
(Success|Partial|Failed)handle - something to identify the failure if one has occured
public static WFSInsertResult createWFSInsertResult(java.lang.String handle,
java.lang.String[] featureIds)
private static java.util.Map toMap(java.lang.String request)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||