public class ServiceMetadataUtils extends Object
Constructor and Description |
---|
ServiceMetadataUtils() |
Modifier and Type | Method and Description |
---|---|
static QName |
buildQName(Node node)
Builds a QName representing the qualified name conveyed by a node with
text content.
|
static Map<QName,FeatureTypeInfo> |
extractFeatureTypeInfo(Document wfsCapabilities)
Extracts information about feature types from the service metadata
document.
|
static Set<QName> |
geometryOperands(NodeList operandList)
Returns a set of geometry type names identified in the given list of
geometry operands.
|
static Set<ConformanceClass> |
getConformanceClaims(Document wfsMetadata)
Returns a set of conformance classes that the WFS under test claims to
satisfy.
|
static String |
getConstraintValue(Document wfsMetadata,
String constraintName)
Gets the effective value of the specified service or operation
constraint.
|
static List<QName> |
getFeatureTypes(Document wfsMetadata)
Extracts the list of feature type names from a WFS capabilities document.
|
static Set<ProtocolBinding> |
getGlobalBindings(Document wfsMetadata)
Discovers which protocol bindings are broadly implemented by a WFS.
|
static Set<ProtocolBinding> |
getOperationBindings(Document wfsMetadata,
String opName)
Determines which protocol bindings are supported for a given operation.
|
static URI |
getOperationEndpoint(Document wfsMetadata,
String opName,
ProtocolBinding binding)
Extracts a request endpoint from a WFS capabilities document.
|
static Map<String,URI> |
getRequestEndpoints(Document wfsMetadata,
String reqName)
Returns a Map containing the HTTP endpoints for a given service request.
|
static String |
getServiceTitle(Document wfsMetadata)
Gets the title of the service.
|
static Map<org.opengis.cite.geomatics.SpatialOperator,Set<QName>> |
getSpatialCapabilities(Document wfsMetadata)
Gets the spatial capabilities supported by a WFS: specifically, the set
of implemented spatial operators and their associated geometry operands
(some of which may be common to all operators).
|
static boolean |
implementsConformanceClass(Document wfsMetadata,
String conformanceClass)
Indicates whether or not the given service description claims that the
specified WFS or FES conformance class has been implemented.
|
static boolean |
implementsSpatialOperator(Document wfsMetadata,
String operatorName)
Indicates whether or not the specified spatial operator is supported.
|
static boolean |
implementsTemporalOperator(Document wfsMetadata,
String operatorName)
Indicates whether or not the specified temporal operator is supported.
|
public static String getServiceTitle(Document wfsMetadata)
wfsMetadata
- The service capabilities document.public static URI getOperationEndpoint(Document wfsMetadata, String opName, ProtocolBinding binding)
wfsMetadata
- A DOM Document node containing service metadata (OGC
capabilities document).opName
- The operation (request) name.binding
- The message binding to use (if null
any supported
binding will be used).public static Map<String,URI> getRequestEndpoints(Document wfsMetadata, String reqName)
wfsMetadata
- A DOM Document node containing service metadata (WFS
capabilities document).reqName
- The (local) name of the service request.null
if the request is not
implemented.public static List<QName> getFeatureTypes(Document wfsMetadata)
wfsMetadata
- A service capabilities document (wfs:WFS_Capabilities).public static Map<QName,FeatureTypeInfo> extractFeatureTypeInfo(Document wfsCapabilities)
wfsCapabilities
- A Document (wfs:WFS_Capabilities).public static QName buildQName(Node node)
node
- A DOM node (Element) containing a qualified name (xsd:QName
value); if it is an unprefixed name, a default namespace
binding should be in scope.public static Set<ProtocolBinding> getGlobalBindings(Document wfsMetadata)
wfsMetadata
- A service metadata document (wfs:WFS_Capabilities).public static Set<ProtocolBinding> getOperationBindings(Document wfsMetadata, String opName)
wfsMetadata
- A service metadata document (wfs:WFS_Capabilities).opName
- The name of a WFS operation.public static Set<ConformanceClass> getConformanceClaims(Document wfsMetadata)
wfsMetadata
- A service metadata document (wfs:WFS_Capabilities).public static boolean implementsSpatialOperator(Document wfsMetadata, String operatorName)
wfsMetadata
- A WFS capabilities document.operatorName
- The name of a spatial operator.public static Map<org.opengis.cite.geomatics.SpatialOperator,Set<QName>> getSpatialCapabilities(Document wfsMetadata)
wfsMetadata
- A WFS capabilities document.public static Set<QName> geometryOperands(NodeList operandList)
operandList
- A list of fes:GeometryOperand elements.public static boolean implementsTemporalOperator(Document wfsMetadata, String operatorName)
wfsMetadata
- A WFS capabilities document.operatorName
- The name of a temporal operator.public static boolean implementsConformanceClass(Document wfsMetadata, String conformanceClass)
wfsMetadata
- A WFS capabilities document.conformanceClass
- The name of a constraint that identifies a conformance class.public static String getConstraintValue(Document wfsMetadata, String constraintName)
wfsMetadata
- A WFS capabilities document.constraintName
- The name of the constraint.Copyright © 2022 Open Geospatial Consortium. All rights reserved.