public class SosDecoderv20 extends AbstractSwesDecoderv20 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 |
---|
SosDecoderv20() |
Modifier and Type | Method and Description |
---|---|
private void |
checkAndAddFeatures(AbstractFeature featureOfInterest,
Map<String,AbstractFeature> features) |
private void |
checkAndAddPhenomenonTime(Time phenomenonTime,
Map<String,Time> phenomenonTimes) |
private void |
checkAndAddResultTime(TimeInstant resultTime,
Map<String,TimeInstant> resultTimes) |
private void |
checkReferencedElements(List<OmObservation> observations,
Map<String,Time> phenomenonTimes,
Map<String,TimeInstant> resultTimes,
Map<String,AbstractFeature> features) |
AbstractServiceCommunicationObject |
decode(org.apache.xmlbeans.XmlObject xml)
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 AbstractServiceRequest<?> |
parseGetCapabilities(net.opengis.sos.x20.GetCapabilitiesDocument getCapsDoc)
parses the XmlBean representing the getCapabilities request and creates a
SosGetCapabilities request
|
private AbstractServiceRequest<?> |
parseGetFeatureOfInterest(net.opengis.sos.x20.GetFeatureOfInterestDocument getFoiDoc)
parses the passes XmlBeans document and creates a SOS
getFeatureOfInterest request
|
private AbstractServiceRequest<?> |
parseGetObservation(net.opengis.sos.x20.GetObservationDocument getObsDoc)
parses the XmlBean representing the getObservation request and creates a
SoSGetObservation request
|
private AbstractServiceRequest<?> |
parseGetObservationById(net.opengis.sos.x20.GetObservationByIdDocument getObsByIdDoc) |
private AbstractServiceRequest<?> |
parseGetResult(net.opengis.sos.x20.GetResultDocument getResultDoc) |
private AbstractServiceResponse |
parseGetResultResponse(net.opengis.sos.x20.GetResultResponseDocument getResultResponseDoc) |
private AbstractServiceRequest<?> |
parseGetResultTemplate(net.opengis.sos.x20.GetResultTemplateDocument getResultTemplateDoc) |
private AbstractServiceResponse |
parseGetResultTemplateResponse(net.opengis.sos.x20.GetResultTemplateResponseDocument getResultTemplateResponseDoc) |
private AbstractServiceRequest<?> |
parseInsertObservation(net.opengis.sos.x20.InsertObservationDocument insertObservationDoc) |
private AbstractServiceRequest<?> |
parseInsertResult(net.opengis.sos.x20.InsertResultDocument insertResultDoc) |
private AbstractServiceRequest<?> |
parseInsertResultTemplate(net.opengis.sos.x20.InsertResultTemplateDocument insertResultTemplateDoc) |
private OmObservationConstellation |
parseObservationTemplate(net.opengis.sos.x20.ResultTemplateType.ObservationTemplate observationTemplate) |
private SosResultEncoding |
parseResultEncoding(org.apache.xmlbeans.XmlObject resultEncoding) |
private SosResultStructure |
parseResultStructure(org.apache.xmlbeans.XmlObject resultStructure) |
private String |
parseResultValues(org.apache.xmlbeans.XmlObject resultValues) |
private SpatialFilter |
parseSpatialFilter4GetObservation(net.opengis.sos.x20.GetObservationType.SpatialFilter spatialFilter)
Parses the spatial filter of a GetObservation request.
|
private SpatialFilter |
parseSpatialFilter4GetResult(net.opengis.sos.x20.GetResultType.SpatialFilter spatialFilter) |
private List<SpatialFilter> |
parseSpatialFilters4GetFeatureOfInterest(net.opengis.sos.x20.GetFeatureOfInterestType.SpatialFilter[] spatialFilters)
Parses the spatial filters of a GetFeatureOfInterest request.
|
private List<TemporalFilter> |
parseTemporalFilters4GetObservation(net.opengis.sos.x20.GetObservationType.TemporalFilter[] temporalFilters)
parses the Time of the requests and returns an array representing the
temporal filters
|
private List<TemporalFilter> |
parseTemporalFilters4GetResult(net.opengis.sos.x20.GetResultType.TemporalFilter[] temporalFilters) |
parseExtensibleRequest, parseExtensibleRequestExtension
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 xml) throws OwsExceptionReport
Decoder
decode
in interface Decoder<AbstractServiceCommunicationObject,org.apache.xmlbeans.XmlObject>
xml
- 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.x20.GetCapabilitiesDocument getCapsDoc) throws OwsExceptionReport
getCapsDoc
- XmlBean created from the incoming request streamOwsExceptionReport
- * If parsing the XmlBean failedprivate AbstractServiceRequest<?> parseGetObservation(net.opengis.sos.x20.GetObservationDocument getObsDoc) throws OwsExceptionReport
getObsDoc
- XmlBean created from the incoming request streamOwsExceptionReport
- * If parsing the XmlBean failedprivate AbstractServiceRequest<?> parseGetFeatureOfInterest(net.opengis.sos.x20.GetFeatureOfInterestDocument getFoiDoc) throws OwsExceptionReport
getFoiDoc
- XmlBeans document representing the getFeatureOfInterest
requestOwsExceptionReport
- * if validation of the request failedprivate AbstractServiceRequest<?> parseGetObservationById(net.opengis.sos.x20.GetObservationByIdDocument getObsByIdDoc) throws OwsExceptionReport
OwsExceptionReport
private AbstractServiceRequest<?> parseInsertObservation(net.opengis.sos.x20.InsertObservationDocument insertObservationDoc) throws OwsExceptionReport
OwsExceptionReport
private AbstractServiceRequest<?> parseInsertResultTemplate(net.opengis.sos.x20.InsertResultTemplateDocument insertResultTemplateDoc) throws OwsExceptionReport
OwsExceptionReport
private AbstractServiceRequest<?> parseInsertResult(net.opengis.sos.x20.InsertResultDocument insertResultDoc) throws OwsExceptionReport
OwsExceptionReport
private AbstractServiceRequest<?> parseGetResult(net.opengis.sos.x20.GetResultDocument getResultDoc) throws OwsExceptionReport
OwsExceptionReport
private AbstractServiceRequest<?> parseGetResultTemplate(net.opengis.sos.x20.GetResultTemplateDocument getResultTemplateDoc) throws OwsExceptionReport
OwsExceptionReport
private AbstractServiceResponse parseGetResultTemplateResponse(net.opengis.sos.x20.GetResultTemplateResponseDocument getResultTemplateResponseDoc) throws OwsExceptionReport
OwsExceptionReport
private AbstractServiceResponse parseGetResultResponse(net.opengis.sos.x20.GetResultResponseDocument getResultResponseDoc) throws OwsExceptionReport
OwsExceptionReport
private SpatialFilter parseSpatialFilter4GetObservation(net.opengis.sos.x20.GetObservationType.SpatialFilter spatialFilter) throws OwsExceptionReport
spatialFilter
- XmlBean representing the spatial filter parameter of the
requestOwsExceptionReport
- * if creation of the SpatialFilter failedprivate List<SpatialFilter> parseSpatialFilters4GetFeatureOfInterest(net.opengis.sos.x20.GetFeatureOfInterestType.SpatialFilter[] spatialFilters) throws OwsExceptionReport
spatialFilters
- XmlBean representing the spatial filter parameter of the
requestOwsExceptionReport
- * if creation of the SpatialFilter failedprivate SpatialFilter parseSpatialFilter4GetResult(net.opengis.sos.x20.GetResultType.SpatialFilter spatialFilter) throws OwsExceptionReport
OwsExceptionReport
private List<TemporalFilter> parseTemporalFilters4GetObservation(net.opengis.sos.x20.GetObservationType.TemporalFilter[] temporalFilters) throws OwsExceptionReport
temporalFilters
- array of XmlObjects representing the Time element in the
requestOwsExceptionReport
- * if parsing of the element failedprivate List<TemporalFilter> parseTemporalFilters4GetResult(net.opengis.sos.x20.GetResultType.TemporalFilter[] temporalFilters) throws OwsExceptionReport
OwsExceptionReport
private OmObservationConstellation parseObservationTemplate(net.opengis.sos.x20.ResultTemplateType.ObservationTemplate observationTemplate) throws OwsExceptionReport
OwsExceptionReport
private SosResultStructure parseResultStructure(org.apache.xmlbeans.XmlObject resultStructure) throws OwsExceptionReport
OwsExceptionReport
private SosResultEncoding parseResultEncoding(org.apache.xmlbeans.XmlObject resultEncoding) throws OwsExceptionReport
OwsExceptionReport
private String parseResultValues(org.apache.xmlbeans.XmlObject resultValues) throws OwsExceptionReport
OwsExceptionReport
private void checkAndAddPhenomenonTime(Time phenomenonTime, Map<String,Time> phenomenonTimes)
private void checkAndAddResultTime(TimeInstant resultTime, Map<String,TimeInstant> resultTimes)
private void checkAndAddFeatures(AbstractFeature featureOfInterest, Map<String,AbstractFeature> features)
private void checkReferencedElements(List<OmObservation> observations, Map<String,Time> phenomenonTimes, Map<String,TimeInstant> resultTimes, Map<String,AbstractFeature> features) throws OwsExceptionReport
OwsExceptionReport
Copyright © 2012-2015 52north.org. All Rights Reserved.