Package org.n52.svalbard.encode
Class AbstractAqdResponseEncoder<T extends OwsServiceResponse>
java.lang.Object
org.n52.svalbard.encode.AbstractDelegatingEncoder<org.apache.xmlbeans.XmlObject,T>
org.n52.svalbard.encode.AbstractXmlEncoder<org.apache.xmlbeans.XmlObject,T>
org.n52.svalbard.encode.AbstractXmlResponseEncoder<T>
org.n52.svalbard.encode.AbstractResponseEncoder<T>
org.n52.svalbard.encode.AbstractAqdResponseEncoder<T>
- All Implemented Interfaces:
Component<EncoderKey>,Keyed<EncoderKey>,ConformanceClass,Encoder<org.apache.xmlbeans.XmlObject,,T> SchemaAwareEncoder<org.apache.xmlbeans.XmlObject,,T> StreamingEncoder<org.apache.xmlbeans.XmlObject,T>
- Direct Known Subclasses:
AqdDescribeSensorResponseEncoder,AqdGetCapabilitiesResponseEncoder,AqdGetObservationResponseEncoder
@Configurable
public abstract class AbstractAqdResponseEncoder<T extends OwsServiceResponse>
extends AbstractResponseEncoder<T>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected OwsServiceResponseprotected org.apache.xmlbeans.XmlObjectprotected org.apache.xmlbeans.XmlObjectencodeFes(EncodingContext context, Object o) protected org.apache.xmlbeans.XmlObjectprotected org.apache.xmlbeans.XmlObjectencodeGml(EncodingContext context, Object o) protected org.apache.xmlbeans.XmlObjectprotected org.apache.xmlbeans.XmlObjectencodeOws(EncodingContext context, Object o) protected org.apache.xmlbeans.XmlObjectprotected org.apache.xmlbeans.XmlObjectencodeSwe(EncodingContext context, Object o) protected org.apache.xmlbeans.XmlObjectencodeWithSosEncoder(T response) protected Encoder<Object, OwsServiceResponse> Get theEncoderfor theOwsServiceResponseand the requested contentTypeprotected EReportingHeaderprotected Stringprotected StringgetObservationId(int counter) protected StringgetObservationXlink(String gmlId) protected booleanprotected booleanprotected voidprocessObservation(OmObservation observation, TimePeriod timePeriod, TimeInstant resultTime, FeatureCollection featureCollection, AbstractEReportingHeader eReportingHeader, int counter) voidsetEReportingNamespace(String namespace) voidsetEReportingObservationPrefix(String observationPrefix) voidsetReportObligationRepository(Optional<EReportObligationRepository> reportObligationRepository) Methods inherited from class org.n52.svalbard.encode.AbstractResponseEncoder
encode, getKeysMethods inherited from class org.n52.svalbard.encode.AbstractXmlResponseEncoder
addNamespacePrefixToMap, create, create, encode, encode, getConcreteSchemaLocations, getConcreteSchemaLocations, getResponseType, getSchemaRepository, setSchemaRepository, setValidateMethods inherited from class org.n52.svalbard.encode.AbstractXmlEncoder
encodeObjectToXml, encodeObjectToXml, encodeObjectToXmlDocument, encodeObjectToXmlDocument, encodeObjectToXmlPropertyType, encodeObjectToXmlPropertyType, encodeObjectToXmlText, encodeObjectToXmlText, getAndCheck, getContentType, getDocumentEncoder, getDocumentEncoder, getDocumentEncoderKey, getDocumentEncoderKey, getEncoder, getEncoder, getEncoderKey, getEncoderKey, getPropertyTypeEncoder, getPropertyTypeEncoder, getPropertyTypeEncoderKey, getPropertyTypeEncoderKey, getXmlOptions, setXmlOptions, substituteMethods inherited from class org.n52.svalbard.encode.AbstractDelegatingEncoder
getEncoder, getEncoderRepository, setEncoderRepositoryMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.n52.svalbard.ConformanceClass
getConformanceClassesMethods inherited from interface org.n52.svalbard.encode.Encoder
getContentType, getSupportedTypesMethods inherited from interface org.n52.svalbard.encode.StreamingEncoder
encode
-
Constructor Details
-
AbstractAqdResponseEncoder
-
-
Method Details
-
setReportObligationRepository
@Inject public void setReportObligationRepository(Optional<EReportObligationRepository> reportObligationRepository) -
getSchemaLocations
-
processObservation
protected void processObservation(OmObservation observation, TimePeriod timePeriod, TimeInstant resultTime, FeatureCollection featureCollection, AbstractEReportingHeader eReportingHeader, int counter) -
getObservationXlink
-
getObservationId
-
getEReportingNamespace
-
setEReportingNamespace
@Setting(value="eReporting.namespace", required=false) public void setEReportingNamespace(String namespace) throws ConfigurationError - Throws:
ConfigurationError
-
isSetEReportingNamespace
protected boolean isSetEReportingNamespace() -
setEReportingObservationPrefix
@Setting(value="eReporting.observation.prefix", required=false) public void setEReportingObservationPrefix(String observationPrefix) throws ConfigurationError - Throws:
ConfigurationError
-
getEReportingObservationPrefix
-
isSetEReportingObservationPrefix
protected boolean isSetEReportingObservationPrefix() -
getEReportingHeader
protected EReportingHeader getEReportingHeader(ReportObligationType type) throws OwsExceptionReport, EncodingException - Throws:
OwsExceptionReportEncodingException
-
encodeGml
- Throws:
EncodingException
-
encodeGml
protected org.apache.xmlbeans.XmlObject encodeGml(EncodingContext context, Object o) throws EncodingException - Throws:
EncodingException
-
encodeOws
- Throws:
EncodingException
-
encodeOws
protected org.apache.xmlbeans.XmlObject encodeOws(EncodingContext context, Object o) throws EncodingException - Throws:
EncodingException
-
encodeFes
- Throws:
EncodingException
-
encodeFes
protected org.apache.xmlbeans.XmlObject encodeFes(EncodingContext context, Object o) throws EncodingException - Throws:
EncodingException
-
encodeSwe
- Throws:
EncodingException
-
encodeSwe
protected org.apache.xmlbeans.XmlObject encodeSwe(EncodingContext context, Object o) throws EncodingException - Throws:
EncodingException
-
changeResponseServiceVersion
-
getEncoder
Get theEncoderfor theOwsServiceResponseand the requested contentType- Parameters:
asr-OwsServiceResponseto getEncoderfor- Returns:
Encoderfor theOwsServiceResponse
-
encodeWithSosEncoder
- Throws:
EncodingException
-