public class SosDecoderv100 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 |
---|
SosDecoderv100() |
Modifier and Type | Method and Description |
---|---|
AbstractServiceCommunicationObject |
decode(org.apache.xmlbeans.XmlObject xmlObject)
Decode a object to another representation.
|
Set<String> |
getConformanceClasses() |
Set<DecoderKey> |
getDecoderKeyTypes() |
Map<ServiceConstants.SupportedTypeKey,Set<String>> |
getSupportedTypes()
Get the ServiceConstants.SupportedTypeKey in the case of having only generic
java types, e.g.
|
private AbstractServiceCommunicationObject |
parseDescribeSensor(net.opengis.sos.x10.DescribeSensorDocument descSensorDoc)
parses the XmlBean representing the describeSensor request and creates a
DescribeSensor request
|
private AbstractServiceRequest<?> |
parseGetCapabilities(net.opengis.sos.x10.GetCapabilitiesDocument getCapsDoc)
parses the XmlBean representing the getCapabilities request and creates a
SosGetCapabilities request
|
private AbstractServiceRequest<?> |
parseGetFeatureOfInterest(net.opengis.sos.x10.GetFeatureOfInterestDocument getFoiDoc)
parses the passes XmlBeans document and creates a SOS
getFeatureOfInterest request
|
private AbstractServiceRequest<?> |
parseGetObservation(net.opengis.sos.x10.GetObservationDocument getObsDoc)
parses the XmlBean representing the getObservation request and creates a
SoSGetObservation request
|
private AbstractServiceRequest<?> |
parseGetObservationById(net.opengis.sos.x10.GetObservationByIdDocument getObsByIdDoc) |
private SpatialFilter |
parseSpatialFilter4GetObservation(net.opengis.ogc.SpatialOpsType spatialOpsType)
Deprecated.
|
private List<SpatialFilter> |
parseSpatialFilters4GetFeatureOfInterest(net.opengis.sos.x10.GetFeatureOfInterestDocument.GetFeatureOfInterest.Location location)
Parses the spatial filters of a GetFeatureOfInterest request.
|
private List<TemporalFilter> |
parseTemporalFilters4GetObservation(net.opengis.sos.x10.GetObservationDocument.GetObservation.EventTime[] temporalFilters)
parses the Time of the requests and returns an array representing the
temporal filters
|
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 AbstractServiceCommunicationObject 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<?> parseGetCapabilities(net.opengis.sos.x10.GetCapabilitiesDocument getCapsDoc) throws OwsExceptionReport
getCapsDoc
- XmlBean created from the incoming request streamOwsExceptionReport
- * If parsing the XmlBean failedprivate AbstractServiceCommunicationObject parseDescribeSensor(net.opengis.sos.x10.DescribeSensorDocument descSensorDoc)
descSensorDoc
- XmlBean created from the incoming request streamOwsExceptionReport
- * If parsing the XmlBean failedprivate AbstractServiceRequest<?> parseGetObservation(net.opengis.sos.x10.GetObservationDocument getObsDoc) throws OwsExceptionReport
getObsDoc
- XmlBean created from the incoming request streamOwsExceptionReport
- * If parsing the XmlBean failedprivate AbstractServiceRequest<?> parseGetFeatureOfInterest(net.opengis.sos.x10.GetFeatureOfInterestDocument getFoiDoc) throws OwsExceptionReport
getFoiDoc
- XmlBeans document representing the getFeatureOfInterest
requestOwsExceptionReport
- * if validation of the request failedprivate AbstractServiceRequest<?> parseGetObservationById(net.opengis.sos.x10.GetObservationByIdDocument getObsByIdDoc) throws OwsExceptionReport
OwsExceptionReport
@Deprecated private SpatialFilter parseSpatialFilter4GetObservation(net.opengis.ogc.SpatialOpsType spatialOpsType) throws OwsExceptionReport
spatialOpsType
- XmlBean representing the spatial filter parameter of the
requestOwsExceptionReport
- * if creation of the SpatialFilter failedprivate List<SpatialFilter> parseSpatialFilters4GetFeatureOfInterest(net.opengis.sos.x10.GetFeatureOfInterestDocument.GetFeatureOfInterest.Location location) throws OwsExceptionReport
location
- XmlBean representing the spatial filter parameter of the
requestOwsExceptionReport
- * if creation of the SpatialFilter failedprivate List<TemporalFilter> parseTemporalFilters4GetObservation(net.opengis.sos.x10.GetObservationDocument.GetObservation.EventTime[] temporalFilters) throws OwsExceptionReport
temporalFilters
- array of XmlObjects representing the Time element in the
requestOwsExceptionReport
- * if parsing of the element failedCopyright © 2012-2015 52north.org. All Rights Reserved.