public class OmEncoderv20 extends AbstractOmEncoderv20
Modifier and Type | Field and Description |
---|---|
private static Set<String> |
CONFORMANCE_CLASSES |
private static Set<EncoderKey> |
ENCODER_KEYS |
private static org.slf4j.Logger |
LOGGER
logger, used for logging while initializing the constants from config
file
|
private static Map<String,Map<String,Set<String>>> |
SUPPORTED_RESPONSE_FORMATS |
private static Map<ServiceConstants.SupportedTypeKey,Set<String>> |
SUPPORTED_TYPES |
Constructor and Description |
---|
OmEncoderv20() |
Modifier and Type | Method and Description |
---|---|
protected void |
addObservationType(net.opengis.om.x20.OMObservationType xbObservation,
String observationType)
Method to add the observation type to the om:Observation.
|
protected boolean |
convertEncodedProcedure()
Indicator whether the procedure is to be encoded
|
private org.apache.xmlbeans.XmlObject |
createMultiObservationValueToResult(MultiObservationValues<?> observationValue) |
private org.apache.xmlbeans.XmlObject |
createMultiObservationValueToResult(OmObservation sosObservation)
Deprecated.
|
protected org.apache.xmlbeans.XmlObject |
createResult(OmObservation sosObservation)
Method to create the om:result element content
|
private org.apache.xmlbeans.XmlObject |
createSingleObservationToResult(OmObservation sosObservation)
Deprecated.
|
private org.apache.xmlbeans.XmlObject |
createSingleObservationToResult(SingleObservationValue<?> observationValue) |
org.apache.xmlbeans.XmlObject |
encode(Object element,
Map<SosConstants.HelperValues,String> additionalValues)
Encodes the specified object with the specified SosConstants.HelperValues
.
|
void |
encode(Object objectToEncode,
OutputStream outputStream,
EncodingValues encodingValues) |
protected org.apache.xmlbeans.XmlObject |
encodeResult(ObservationValue<?> observationValue) |
Set<String> |
getConformanceClasses() |
MediaType |
getContentType() |
String |
getDefaultFeatureEncodingNamespace()
Get the default encoding Namespace for FeatureOfInterest
|
protected String |
getDefaultProcedureEncodingNamspace()
Get the default encoding Namespace for Procedures
|
Set<EncoderKey> |
getEncoderKeyType() |
Set<SchemaLocation> |
getSchemaLocations() |
Set<String> |
getSupportedResponseFormats(String service,
String version)
Get the supported response formats for this
ObservationEncoder and the specified service and version.
|
Map<ServiceConstants.SupportedTypeKey,Set<String>> |
getSupportedTypes()
|
boolean |
isObservationAndMeasurmentV20Type()
Indicator whether the ObservationEncoder of type or subtype
Observation&Measurement 2.0
|
boolean |
shouldObservationsWithSameXBeMerged()
Indicator whether the single observations with the same procedure,
observableProperty and featureOfInterest should be merged to one
observation.
|
boolean |
supportsResultStreamingForMergedValues() |
addNamespacePrefixToMap, createNamedValue, createOmObservation, encode, forceStreaming
encode
private static final org.slf4j.Logger LOGGER
private static final Set<EncoderKey> ENCODER_KEYS
private static final Map<ServiceConstants.SupportedTypeKey,Set<String>> SUPPORTED_TYPES
public Set<EncoderKey> getEncoderKeyType()
EncoderKey
)public Map<ServiceConstants.SupportedTypeKey,Set<String>> getSupportedTypes()
Encoder
getSupportedTypes
in interface Encoder<org.apache.xmlbeans.XmlObject,Object>
getSupportedTypes
in class AbstractXmlEncoder<Object>
public Set<String> getConformanceClasses()
getConformanceClasses
in interface ConformanceClass
getConformanceClasses
in class AbstractXmlEncoder<Object>
public boolean isObservationAndMeasurmentV20Type()
ObservationEncoder
public Set<String> getSupportedResponseFormats(String service, String version)
ObservationEncoder
service
- the serviceversion
- the versionpublic boolean shouldObservationsWithSameXBeMerged()
ObservationEncoder
public boolean supportsResultStreamingForMergedValues()
public MediaType getContentType()
getContentType
in interface Encoder<org.apache.xmlbeans.XmlObject,Object>
getContentType
in class AbstractXmlEncoder<Object>
public Set<SchemaLocation> getSchemaLocations()
getSchemaLocations
in interface Encoder<org.apache.xmlbeans.XmlObject,Object>
getSchemaLocations
in class AbstractXmlEncoder<Object>
public org.apache.xmlbeans.XmlObject encode(Object element, Map<SosConstants.HelperValues,String> additionalValues) throws OwsExceptionReport, UnsupportedEncoderInputException
Encoder
encode
in interface Encoder<org.apache.xmlbeans.XmlObject,Object>
encode
in class AbstractOmEncoderv20
element
- the object to encodeadditionalValues
- the helper valuesOwsExceptionReport
- if an error occursUnsupportedEncoderInputException
- if the supplied object (or any of it's contents) is not
supported by this encoderpublic void encode(Object objectToEncode, OutputStream outputStream, EncodingValues encodingValues) throws OwsExceptionReport
encode
in interface StreamingEncoder<org.apache.xmlbeans.XmlObject,Object>
encode
in class AbstractOmEncoderv20
OwsExceptionReport
protected org.apache.xmlbeans.XmlObject createResult(OmObservation sosObservation) throws OwsExceptionReport
AbstractOmEncoderv20
createResult
in class AbstractOmEncoderv20
sosObservation
- SosObservation to be encodedOwsExceptionReport
- if an error occursprotected org.apache.xmlbeans.XmlObject encodeResult(ObservationValue<?> observationValue) throws OwsExceptionReport
encodeResult
in class AbstractOmEncoderv20
OwsExceptionReport
protected void addObservationType(net.opengis.om.x20.OMObservationType xbObservation, String observationType)
AbstractOmEncoderv20
addObservationType
in class AbstractOmEncoderv20
xbObservation
- XmlBeans object of observationobservationType
- Observation typepublic String getDefaultFeatureEncodingNamespace()
AbstractOmEncoderv20
getDefaultFeatureEncodingNamespace
in class AbstractOmEncoderv20
protected String getDefaultProcedureEncodingNamspace()
AbstractOmEncoderv20
getDefaultProcedureEncodingNamspace
in class AbstractOmEncoderv20
protected boolean convertEncodedProcedure()
AbstractOmEncoderv20
convertEncodedProcedure
in class AbstractOmEncoderv20
@Deprecated private org.apache.xmlbeans.XmlObject createSingleObservationToResult(OmObservation sosObservation) throws OwsExceptionReport
sosObservation
- SOS observationOwsExceptionReport
- If an error occurs@Deprecated private org.apache.xmlbeans.XmlObject createMultiObservationValueToResult(OmObservation sosObservation) throws OwsExceptionReport
sosObservation
- SOS observationOwsExceptionReport
- If an error occursprivate org.apache.xmlbeans.XmlObject createSingleObservationToResult(SingleObservationValue<?> observationValue) throws OwsExceptionReport
OwsExceptionReport
private org.apache.xmlbeans.XmlObject createMultiObservationValueToResult(MultiObservationValues<?> observationValue) throws OwsExceptionReport
OwsExceptionReport
Copyright © 2012-2015 52north.org. All Rights Reserved.