|
||||||||||
| 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.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(XMLStreamWriter writer,
DCP dcp,
String owsNS)
Exports a DCPType as an OWS DCP element. |
static void |
exportDCP(XMLStreamWriter writer,
String get,
String post,
String owsNS)
|
static void |
exportDomainType100(XMLStreamWriter writer,
Domain domain)
|
static void |
exportDomainType110(XMLStreamWriter writer,
Domain domain)
|
static void |
exportKeyWords110(XMLStreamWriter writer,
List<KeywordsType> keywords)
Exports the given (commons) keywords to ows 1.1.0 format |
static void |
exportOperationsMetadata100(XMLStreamWriter writer,
OperationsMetadata operationsMd)
Exports a list of OWSOperations as an OWS 1.0.0 OperationsMetadata element. |
static void |
exportOperationsMetadata110(XMLStreamWriter writer,
OperationsMetadata operationsMd)
Exports an OperationsMetadata instance as an OWS 1.1.0 OperationsMetadata element. |
static void |
exportServiceIdentification100(XMLStreamWriter writer,
ServiceIdentificationType serviceID,
String serviceName,
List<Version> serviceVersions)
Exports the given ServiceIdentificationType as an OWS 1.0.0 ServiceIdentification element. |
static void |
exportServiceIdentification110(XMLStreamWriter writer,
ServiceIdentificationType serviceID,
String serviceName,
List<Version> serviceVersions)
Exports the given ServiceIdentificationType as an OWS 1.1.0 ServiceIdentification element. |
static void |
exportServiceProvider100(XMLStreamWriter writer,
ServiceProviderType serviceProvider)
Exports a ServiceProviderType as an OWS 1.0.0 ServiceProvider element. |
static void |
exportServiceProvider110(XMLStreamWriter writer,
ServiceProviderType serviceProvider)
Exports a ServiceProviderType as an OWS 1.1.0 ServiceProvider element. |
static void |
exportSimpleStrings(XMLStreamWriter writer,
List<String> strings,
String owsNS,
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 java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public OWSCapabilitiesXMLAdapter()
| Method Detail |
|---|
public static void exportServiceIdentification100(XMLStreamWriter writer,
ServiceIdentificationType serviceID,
String serviceName,
List<Version> serviceVersions)
throws 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
XMLStreamException - if writing the XML fails
public static void exportServiceIdentification110(XMLStreamWriter writer,
ServiceIdentificationType serviceID,
String serviceName,
List<Version> serviceVersions)
throws 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
XMLStreamException - if writing the XML fails
public static void exportKeyWords110(XMLStreamWriter writer,
List<KeywordsType> keywords)
throws XMLStreamException
writer - keywords -
XMLStreamException
public static void exportServiceProvider100(XMLStreamWriter writer,
ServiceProviderType serviceProvider)
throws XMLStreamException
ServiceProviderType as an OWS 1.0.0 ServiceProvider element.
writer - writer to append the xmlserviceProvider - ServiceProviderType to export
XMLStreamException
public static void exportServiceProvider110(XMLStreamWriter writer,
ServiceProviderType serviceProvider)
throws 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
XMLStreamException
public static void exportOperationsMetadata100(XMLStreamWriter writer,
OperationsMetadata operationsMd)
throws XMLStreamException
OWSOperations as an OWS 1.0.0 OperationsMetadata element.
writer - writer to append the xml, must not be nulloperationsMd - operations metadata, must not be nullextendedCapabilities - extended capabilities, can be null
XMLStreamException
public static void exportOperationsMetadata110(XMLStreamWriter writer,
OperationsMetadata operationsMd)
throws XMLStreamException
OperationsMetadata instance as an OWS 1.1.0 OperationsMetadata element.
writer - writer to append the xml, must not be nulloperationsMd - operations metadata, must not be null
XMLStreamException
public static void exportDCP(XMLStreamWriter writer,
DCP dcp,
String owsNS)
throws 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
XMLStreamException
public static void exportDCP(XMLStreamWriter writer,
String get,
String post,
String owsNS)
throws XMLStreamException
XMLStreamException
public static void exportSimpleStrings(XMLStreamWriter writer,
List<String> strings,
String owsNS,
String elementName)
throws XMLStreamException
writer - strings - to exportowsNS - the name space to useelementName - to use
XMLStreamException
public static void exportDomainType100(XMLStreamWriter writer,
Domain domain)
throws XMLStreamException
XMLStreamException
public static void exportDomainType110(XMLStreamWriter writer,
Domain domain)
throws XMLStreamException
XMLStreamException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||