|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.deegree_impl.services.wcas.protocol.CASProtocolFactory
--------------------------------------------------------
Field Summary | |
private static java.lang.String |
WFSNS
|
Constructor Summary | |
CASProtocolFactory()
|
Method Summary | |
static CASDescribeRecordTypeRequest |
createCASDescribeRecordTypeRequest(java.lang.String id,
org.w3c.dom.Document doc)
creates a DescribeRecordType request from a reader object that offers access to a string resource that contains XML document that encodes the request. |
static CASDescribeRecordTypeRequest |
createCASDescribeRecordTypeRequest(java.lang.String version,
java.lang.String id,
java.util.HashMap vendorSpecificParameter,
java.lang.String[] typeNames,
java.lang.String[] setNames,
java.lang.String outputFormat)
creates a CASDescribeRecordTypeRequest object. |
static CASDescribeRecordTypeResponse |
createCASDescribeRecordTypeResponse(OGCWebServiceRequest request,
OGCWebServiceException exception,
java.lang.String featureTypeSchema)
creates a CASDescribeRecordTypeResponse object |
static CASGetCapabilitiesRequest |
createCASGetCapabilitiesRequest(java.lang.String id,
java.util.HashMap vendorSpecificParameter)
creates a CASGetCapabilitiesRequest object. |
static CASGetRecordRequest |
createCASGetRecordRequest(java.lang.String id,
org.w3c.dom.Document doc)
creates a instance of a CASGetRecordRequest object from a reader that contains the request-xml. |
static CASGetRecordRequest |
createCASGetRecordRequest(java.lang.String id,
java.util.HashMap vendorSpecificParameter,
int maxRecords,
int startPosition,
java.lang.String outputFormat,
java.lang.String outputRecType,
CASQuery[] queries,
int queryScope,
Filter filter)
creates a CASGetRecordRequest object. |
static CASGetRecordResponse |
createCASGetRecordResponse(OGCWebServiceRequest request,
OGCWebServiceException exception,
java.lang.Object response)
creates a CASGetRecordResponse object |
static CASInsertResult |
createCASInsertResult(java.lang.String handle,
java.lang.String[] featureIds)
creates a CASInsertResult |
static CASRegisterServiceRequest |
createCASRegisterServiceRequest(java.lang.String id,
org.w3c.dom.Document doc)
creates a CASRegisterServiceRequest object |
static CASRegisterServiceRequest |
createCASRegisterServiceRequest(java.lang.String id,
java.util.HashMap vendorSpecificParameter,
java.net.URL serviceAddress,
java.lang.String serviceOwnerContactInfo,
int harvestFrequency)
creates a CASRegisterServiceRequest object |
static CASTransactionRequest |
createCASTransactionRequest(java.lang.String id,
org.w3c.dom.Document doc)
creates a CASTransactionRequest object. |
CASTransactionRequest |
createCASTransactionRequest(java.lang.String id,
java.util.HashMap vendorSpecificParameter,
java.lang.String lockId,
java.lang.String handle,
CASOperation[] operations)
creates a CASTransactionRequest object. |
static CASTransactionResponse |
createCASTransactionResponse(OGCWebServiceRequest request,
OGCWebServiceException exception,
CASInsertResult[] insertResults,
java.lang.String status,
java.lang.String handle)
creates a CASTransactionRequest object. |
private static CASOperation[] |
createDeletes(org.w3c.dom.NodeList nl)
creates delete operations object from a XML-element defined by the OGC CAS specifications |
private static CASOperation[] |
createInserts(org.w3c.dom.NodeList nl)
creates insert operations object from a XML-element defined by the OGC CAS specifications |
CASQuery |
createQuery(org.w3c.dom.Element element)
creates a CAS Query object from a dom element. |
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 CASOperation[] |
createUpdates(org.w3c.dom.NodeList nl)
creates update operations object from a XML-element defined by the OGC CAS specifications |
static Filter |
getFilter(org.w3c.dom.Element element)
returns the filter that limits the query |
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 java.lang.String |
getPropertySetName(org.w3c.dom.Element element)
returns the name of the propertySetName of the catalog request from the passed Element |
private static CASQuery[] |
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. |
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
Constructor Detail |
public CASProtocolFactory()
Method Detail |
public static OGCWebServiceRequest createRequest(java.lang.String id, java.io.Reader reader) throws java.lang.Exception
java.lang.Exception
public static CASDescribeRecordTypeRequest createCASDescribeRecordTypeRequest(java.lang.String id, org.w3c.dom.Document doc) throws java.io.IOException
java.io.IOException
public static CASDescribeRecordTypeRequest createCASDescribeRecordTypeRequest(java.lang.String version, java.lang.String id, java.util.HashMap vendorSpecificParameter, java.lang.String[] typeNames, java.lang.String[] setNames, java.lang.String outputFormat)
id
- id of the requestvendorSpecificParameter
- none standadized parameters as
name-value pairsoutputFormat
- indicates the format the result shall be formatedtypeNames
- names of the feature types that shalle be describedpublic static CASDescribeRecordTypeResponse createCASDescribeRecordTypeResponse(OGCWebServiceRequest request, OGCWebServiceException exception, java.lang.String featureTypeSchema)
request
- a copy of the request that leads to this responseexception
- a describtion of an excetion (only if raised)featureTypeSchema
- schemas of the feature types which describtion
has been requested.public static CASGetRecordRequest createCASGetRecordRequest(java.lang.String id, java.util.HashMap vendorSpecificParameter, int maxRecords, int startPosition, java.lang.String outputFormat, java.lang.String outputRecType, CASQuery[] queries, int queryScope, Filter filter)
id
- id of the requestvendorSpecificParameter
- none standadized parameters as
name-value pairsoutputFormat
- indicates the format the result shall be formatedfilter
- filter expression that describes the 'global' limitations
of the query.maxRecords
- maximal amout of featuers that shall be returnedstartPosition
- index of the feature the query shall startqueries
- a set of Query objects that describes the query to performqueryScope
- number that indicates if the request is part of a
cascading requestpublic static CASGetRecordRequest createCASGetRecordRequest(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.Exception
private static CASQuery[] getQuery(org.w3c.dom.Element element) throws java.lang.Exception
only used for xml-coded requests
java.lang.Exception
private static java.lang.String getPropertySetName(org.w3c.dom.Element element) throws java.lang.Exception
element
-
java.lang.Exception
private static java.lang.String[] getPropertyNames(org.w3c.dom.Element element)
public static Filter getFilter(org.w3c.dom.Element element) throws java.lang.Exception
java.lang.Exception
public static CASGetRecordResponse createCASGetRecordResponse(OGCWebServiceRequest request, 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)response
- the response to the requestpublic static CASGetCapabilitiesRequest createCASGetCapabilitiesRequest(java.lang.String id, java.util.HashMap vendorSpecificParameter)
id
- id of the requestvendorSpecificParameter
- none standadized parameters as
name-value pairspublic CASQuery createQuery(org.w3c.dom.Element element) throws java.lang.Exception
element
- dom element containing a CAS query
java.lang.Exception
public CASTransactionRequest createCASTransactionRequest(java.lang.String id, java.util.HashMap vendorSpecificParameter, java.lang.String lockId, java.lang.String handle, CASOperation[] operations)
id
- id of the requestlockId
- operations
- handle
- public static CASTransactionRequest createCASTransactionRequest(java.lang.String id, org.w3c.dom.Document doc) throws java.lang.Exception
id
- id of the requestdoc
- DOM objects that contains the request
java.lang.Exception
private static CASOperation[] createInserts(org.w3c.dom.NodeList nl)
private static CASOperation[] createUpdates(org.w3c.dom.NodeList nl)
private static CASOperation[] createDeletes(org.w3c.dom.NodeList nl) throws java.lang.Exception
java.lang.Exception
public static CASTransactionResponse createCASTransactionResponse(OGCWebServiceRequest request, OGCWebServiceException exception, CASInsertResult[] insertResults, java.lang.String status, java.lang.String handle)
request
- request that lead to the responseexception
- exception if raisedstatus
- termination status of the transaction
(Success|Partial|Failed)handle
- something to identify the failure if one has occuredpublic static CASInsertResult createCASInsertResult(java.lang.String handle, java.lang.String[] featureIds)
public static CASRegisterServiceRequest createCASRegisterServiceRequest(java.lang.String id, java.util.HashMap vendorSpecificParameter, java.net.URL serviceAddress, java.lang.String serviceOwnerContactInfo, int harvestFrequency)
id
- id of the requestvendorSpecificParameter
- serviceAddress
- URL of (ISO19119) document that describes the
service that shall be registeredserviceOwnerContactInfo
- information about who to contact to
get additional informations about the serviceharvestFrequency
- time interval in hours a catalog shall
revisit the servicepublic static CASRegisterServiceRequest createCASRegisterServiceRequest(java.lang.String id, org.w3c.dom.Document doc) throws java.net.MalformedURLException
id
- id of the requestdoc
- XML document encoding the request
java.net.MalformedURLException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |