|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.deegree.commons.xml.XMLAdapter
org.deegree.protocol.ows.OWSCommonXMLAdapter
org.deegree.services.controller.ows.capabilities.OWSCapabilitiesXMLAdapter
public class OWSCapabilitiesXMLAdapter
Provides methods for exporting
| Field Summary |
|---|
| Fields inherited from class org.deegree.protocol.ows.OWSCommonXMLAdapter |
|---|
OWS_NS, OWS_PREFIX, OWS110_NS, OWS110_PREFIX, XML_NS, XML_PREFIX |
| Fields inherited from class org.deegree.commons.xml.XMLAdapter |
|---|
DEFAULT_URL, nsContext, rootElement, XLN_NS |
| Constructor Summary | |
|---|---|
OWSCapabilitiesXMLAdapter()
|
|
| Method Summary | |
|---|---|
static void |
exportDCP(javax.xml.stream.XMLStreamWriter writer,
DCPType dcp,
java.lang.String owsNS)
Exports a DCPType as an OWS DCP element. |
static void |
exportDCP100(javax.xml.stream.XMLStreamWriter writer,
DCPType dcp)
Exports a DCPType as an OWS 1.0.0 DCP element. |
static void |
exportDCP110(javax.xml.stream.XMLStreamWriter writer,
DCPType dcp)
Exports a DCPType as an OWS 1.1.0 DCP element. |
static void |
exportKeyWords110(javax.xml.stream.XMLStreamWriter writer,
java.util.List<KeywordsType> keywords)
Exports the given (commons) keywords to ows 1.1.0 format |
static void |
exportOperationsMetadata100(javax.xml.stream.XMLStreamWriter writer,
java.util.List<OWSOperation> operations)
Exports a list of OWSOperations as an OWS 1.0.0 OperationsMetadata element. |
static void |
exportOperationsMetadata110(javax.xml.stream.XMLStreamWriter writer,
java.util.List<OWSOperation> operations)
Exports a list of OWSOperations as an OWS 1.1.0 OperationsMetadata element. |
static void |
exportServiceIdentification100(javax.xml.stream.XMLStreamWriter writer,
ServiceIdentificationType serviceID,
java.lang.String serviceName,
java.util.List<org.deegree.commons.tom.ows.Version> serviceVersions)
Exports the given ServiceIdentificationType as an OWS 1.0.0 ServiceIdentification element. |
static void |
exportServiceIdentification110(javax.xml.stream.XMLStreamWriter writer,
ServiceIdentificationType serviceID,
java.lang.String serviceName,
java.util.List<org.deegree.commons.tom.ows.Version> serviceVersions)
Exports the given ServiceIdentificationType as an OWS 1.1.0 ServiceIdentification element. |
static void |
exportServiceProvider100(javax.xml.stream.XMLStreamWriter writer,
ServiceProviderType serviceProvider)
Exports a ServiceProviderType as an OWS 1.0.0 ServiceProvider element. |
static void |
exportServiceProvider110(javax.xml.stream.XMLStreamWriter writer,
ServiceProviderType serviceProvider)
Exports a ServiceProviderType as an OWS 1.1.0 ServiceProvider element. |
static void |
exportSimpleStrings(javax.xml.stream.XMLStreamWriter writer,
java.util.List<java.lang.String> strings,
java.lang.String owsNS,
java.lang.String elementName)
Write a list of strings to the given namespace and with the given element name. |
| Methods inherited from class org.deegree.protocol.ows.OWSCommonXMLAdapter |
|---|
exportBoundingBoxType, exportCoordinateList, exportPositionType, parseBoundingBoxType |
| Methods inherited from class org.deegree.commons.xml.XMLAdapter |
|---|
evaluateXPath, getElement, getElements, getNamespaceContext, getNode, getNodeAsBoolean, getNodeAsDouble, getNodeAsFloat, getNodeAsInt, getNodeAsQName, getNodeAsString, getNodeAsURL, getNodeAsVersion, getNodes, getNodesAsQNames, getNodesAsStrings, getRequiredElement, getRequiredElements, getRequiredNode, getRequiredNodeAsBoolean, getRequiredNodeAsDouble, getRequiredNodeAsFloat, getRequiredNodeAsInteger, getRequiredNodeAsQName, getRequiredNodeAsString, getRequiredNodeAsURL, getRequiredNodeAsVersion, getRequiredNodes, getRootElement, getSchemas, getSystemId, hasSchemas, load, load, load, load, load, load, maybeWriteElement, maybeWriteElementNS, parseBoolean, parseDouble, parseFloat, parseInt, parseQName, parseSimpleLink, parseURL, resolve, setRootElement, setSystemId, toString, writeElement, writeElement, writeElement, writeElement, writeElement, writeOptionalAttribute, writeOptionalElement, writeOptionalNSAttribute |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public OWSCapabilitiesXMLAdapter()
| Method Detail |
|---|
public static void exportServiceIdentification100(javax.xml.stream.XMLStreamWriter writer,
ServiceIdentificationType serviceID,
java.lang.String serviceName,
java.util.List<org.deegree.commons.tom.ows.Version> serviceVersions)
throws javax.xml.stream.XMLStreamException
ServiceIdentificationType as an OWS 1.0.0 ServiceIdentification element.
writer - used to append the XML, must not be nullserviceID - configuration object that provides most of the required metadata, must not be nullserviceName - OGC-style abbreviation of the service, e.g. WFS, must not be nullserviceVersions - supported protocol versions, must not be null and contain at least one entry
javax.xml.stream.XMLStreamException - if writing the XML fails
public static void exportServiceIdentification110(javax.xml.stream.XMLStreamWriter writer,
ServiceIdentificationType serviceID,
java.lang.String serviceName,
java.util.List<org.deegree.commons.tom.ows.Version> serviceVersions)
throws javax.xml.stream.XMLStreamException
ServiceIdentificationType as an OWS 1.1.0 ServiceIdentification element.
writer - used to append the XML, must not be nullserviceID - configuration object that provides most of the required metadata, must not be nullserviceName - OGC-style abbreviation of the service, e.g. WFS, must not be nullserviceVersions - supported protocol versions, must not be null and contain at least one entry
javax.xml.stream.XMLStreamException - if writing the XML fails
public static void exportKeyWords110(javax.xml.stream.XMLStreamWriter writer,
java.util.List<KeywordsType> keywords)
throws javax.xml.stream.XMLStreamException
writer - keywords -
javax.xml.stream.XMLStreamException
public static void exportServiceProvider100(javax.xml.stream.XMLStreamWriter writer,
ServiceProviderType serviceProvider)
throws javax.xml.stream.XMLStreamException
ServiceProviderType as an OWS 1.0.0 ServiceProvider element.
writer - writer to append the xmlserviceProvider - ServiceProviderType to export
javax.xml.stream.XMLStreamException
public static void exportServiceProvider110(javax.xml.stream.XMLStreamWriter writer,
ServiceProviderType serviceProvider)
throws javax.xml.stream.XMLStreamException
ServiceProviderType as an OWS 1.1.0 ServiceProvider element. Validated against ows
schema by rb at 23.02.2009.
writer - writer to append the xmlserviceProvider - ServiceProviderType to export
javax.xml.stream.XMLStreamException
public static void exportOperationsMetadata100(javax.xml.stream.XMLStreamWriter writer,
java.util.List<OWSOperation> operations)
throws javax.xml.stream.XMLStreamException
OWSOperations as an OWS 1.0.0 OperationsMetadata element.
writer - writer to append the xml, must not be nulloperations - operations, e.g. "GetCapabilities", must not be null
javax.xml.stream.XMLStreamException
public static void exportOperationsMetadata110(javax.xml.stream.XMLStreamWriter writer,
java.util.List<OWSOperation> operations)
throws javax.xml.stream.XMLStreamException
OWSOperations as an OWS 1.1.0 OperationsMetadata element.
writer - writer to append the xml, must not be nulloperations - operations, e.g. "GetCapabilities", must not be null
javax.xml.stream.XMLStreamException
public static void exportDCP100(javax.xml.stream.XMLStreamWriter writer,
DCPType dcp)
throws javax.xml.stream.XMLStreamException
DCPType as an OWS 1.0.0 DCP element.
writer - writer to append the xmldcp - DCPType to export
javax.xml.stream.XMLStreamException
public static void exportDCP110(javax.xml.stream.XMLStreamWriter writer,
DCPType dcp)
throws javax.xml.stream.XMLStreamException
DCPType as an OWS 1.1.0 DCP element.
writer - writer to append the xmldcp - DCPType to export
javax.xml.stream.XMLStreamException
public static void exportDCP(javax.xml.stream.XMLStreamWriter writer,
DCPType dcp,
java.lang.String owsNS)
throws javax.xml.stream.XMLStreamException
DCPType as an OWS DCP element.
The namespace of the produced elements is given as a parameter so it is usable for different OWS versions. It has been checked that this method produces the correct output for the following OWS versions/namespaces:
| OWS version | OWS namespace |
|---|---|
writer - writer to append the xmldcp - DCPType to exportowsNS - namespace for the generated elements
javax.xml.stream.XMLStreamException
public static void exportSimpleStrings(javax.xml.stream.XMLStreamWriter writer,
java.util.List<java.lang.String> strings,
java.lang.String owsNS,
java.lang.String elementName)
throws javax.xml.stream.XMLStreamException
writer - strings - to exportowsNS - the name space to useelementName - to use
javax.xml.stream.XMLStreamException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||