public abstract class AbstractObservationResponseEncoder<T extends AbstractObservationResponse> extends AbstractSosResponseEncoder<T> implements ObservationEncoder<com.fasterxml.jackson.databind.JsonNode,T>
CONTENT_TYPE
Constructor and Description |
---|
AbstractObservationResponseEncoder(Class<T> type,
Enum<?> operation) |
AbstractObservationResponseEncoder(Class<T> type,
String operation) |
Modifier and Type | Method and Description |
---|---|
protected void |
encodeResponse(com.fasterxml.jackson.databind.node.ObjectNode json,
T t) |
Set<String> |
getSupportedResponseFormats(String service,
String version)
Get the supported response formats for this
ObservationEncoder and the specified service and version.
|
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() |
encodeJSON
addNamespacePrefixToMap, encode, encode, encodeCodeType, encodeCodeWithAuthority, encodeObjectToJson, getConformanceClasses, getContentType, getEncoderKeyType, getSchemaLocations, getSupportedTypes, nodeFactory
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addNamespacePrefixToMap, encode, encode, getContentType, getEncoderKeyType, getSchemaLocations, getSupportedTypes
getConformanceClasses
public AbstractObservationResponseEncoder(Class<T> type, String operation)
protected void encodeResponse(com.fasterxml.jackson.databind.node.ObjectNode json, T t) throws OwsExceptionReport
encodeResponse
in class AbstractSosResponseEncoder<T extends AbstractObservationResponse>
OwsExceptionReport
public boolean isObservationAndMeasurmentV20Type()
ObservationEncoder
isObservationAndMeasurmentV20Type
in interface ObservationEncoder<com.fasterxml.jackson.databind.JsonNode,T extends AbstractObservationResponse>
public boolean supportsResultStreamingForMergedValues()
supportsResultStreamingForMergedValues
in interface ObservationEncoder<com.fasterxml.jackson.databind.JsonNode,T extends AbstractObservationResponse>
public boolean shouldObservationsWithSameXBeMerged()
ObservationEncoder
shouldObservationsWithSameXBeMerged
in interface ObservationEncoder<com.fasterxml.jackson.databind.JsonNode,T extends AbstractObservationResponse>
public Set<String> getSupportedResponseFormats(String service, String version)
ObservationEncoder
getSupportedResponseFormats
in interface ObservationEncoder<com.fasterxml.jackson.databind.JsonNode,T extends AbstractObservationResponse>
service
- the serviceversion
- the versionCopyright © 2012-2014 52north.org. All Rights Reserved.