public class SwesDecoderv20 extends Object implements Decoder<AbstractServiceCommunicationObject,org.apache.xmlbeans.XmlObject>
Modifier and Type | Field and Description |
---|---|
private static Set<DecoderKey> |
DECODER_KEYS |
private static org.slf4j.Logger |
LOGGER |
Constructor and Description |
---|
SwesDecoderv20() |
Modifier and Type | Method and Description |
---|---|
private boolean |
checkForRequestUrl(String href) |
AbstractServiceRequest |
decode(org.apache.xmlbeans.XmlObject xmlObject)
Decode a object to another representation.
|
Set<String> |
getConformanceClasses() |
Set<DecoderKey> |
getDecoderKeyTypes() |
private Node |
getNodeFromNodeList(NodeList nodeList) |
Map<ServiceConstants.SupportedTypeKey,Set<String>> |
getSupportedTypes()
Get the ServiceConstants.SupportedTypeKey in the case of having only generic
java types, e.g.
|
private Time |
getValidTime(net.opengis.swes.x20.DescribeSensorType.ValidTime validTime) |
private Time |
getValidTime(net.opengis.swes.x20.SensorDescriptionType.ValidTime validTime) |
private AbstractServiceRequest |
parseDeleteSensor(net.opengis.swes.x20.DeleteSensorDocument xbDelSenDoc) |
private AbstractServiceRequest |
parseDescribeSensor(net.opengis.swes.x20.DescribeSensorDocument xbDescSenDoc)
parses the passes XmlBeans document and creates a SOS describeSensor
request
|
private AbstractServiceRequest |
parseInsertSensor(net.opengis.swes.x20.InsertSensorDocument xbInsSensDoc) |
private SosInsertionMetadata |
parseMetadata(net.opengis.swes.x20.InsertSensorType.Metadata[] metadataArray) |
private List<SwesFeatureRelationship> |
parseRelatedFeature(net.opengis.swes.x20.InsertSensorType.RelatedFeature[] relatedFeatureArray) |
private AbstractServiceRequest |
parseUpdateSensorDescription(net.opengis.swes.x20.UpdateSensorDescriptionDocument xbUpSenDoc)
parses the Xmlbeans UpdateSensorDescription document to a SOS request.
|
private static final org.slf4j.Logger LOGGER
private static final Set<DecoderKey> DECODER_KEYS
public Set<DecoderKey> getDecoderKeyTypes()
getDecoderKeyTypes
in interface Decoder<AbstractServiceCommunicationObject,org.apache.xmlbeans.XmlObject>
DecoderKey
) is able to decodepublic Map<ServiceConstants.SupportedTypeKey,Set<String>> getSupportedTypes()
Decoder
getSupportedTypes
in interface Decoder<AbstractServiceCommunicationObject,org.apache.xmlbeans.XmlObject>
public Set<String> getConformanceClasses()
getConformanceClasses
in interface ConformanceClass
public AbstractServiceRequest decode(org.apache.xmlbeans.XmlObject xmlObject) throws OwsExceptionReport
Decoder
decode
in interface Decoder<AbstractServiceCommunicationObject,org.apache.xmlbeans.XmlObject>
xmlObject
- the object to encodeOwsExceptionReport
- if an error occursUnsupportedDecoderInputException
- if the supplied type (or any of it's contents) is not
supported by this decoderprivate AbstractServiceRequest parseDescribeSensor(net.opengis.swes.x20.DescribeSensorDocument xbDescSenDoc) throws OwsExceptionReport
xbDescSenDoc
- XmlBeans document representing the describeSensor requestOwsExceptionReport
- * if validation of the request failedprivate AbstractServiceRequest parseInsertSensor(net.opengis.swes.x20.InsertSensorDocument xbInsSensDoc) throws OwsExceptionReport
OwsExceptionReport
private AbstractServiceRequest parseDeleteSensor(net.opengis.swes.x20.DeleteSensorDocument xbDelSenDoc)
private AbstractServiceRequest parseUpdateSensorDescription(net.opengis.swes.x20.UpdateSensorDescriptionDocument xbUpSenDoc) throws OwsExceptionReport
xbUpSenDoc
- UpdateSensorDescription documentOwsExceptionReport
- * if an error occurs.private SosInsertionMetadata parseMetadata(net.opengis.swes.x20.InsertSensorType.Metadata[] metadataArray) throws OwsExceptionReport
OwsExceptionReport
private List<SwesFeatureRelationship> parseRelatedFeature(net.opengis.swes.x20.InsertSensorType.RelatedFeature[] relatedFeatureArray) throws OwsExceptionReport
OwsExceptionReport
private boolean checkForRequestUrl(String href)
private Time getValidTime(net.opengis.swes.x20.DescribeSensorType.ValidTime validTime) throws OwsExceptionReport
OwsExceptionReport
private Time getValidTime(net.opengis.swes.x20.SensorDescriptionType.ValidTime validTime) throws OwsExceptionReport
OwsExceptionReport
Copyright © 2012-2014 52north.org. All Rights Reserved.