Package org.n52.svalbard.encode
Class AbstractAqdResponseEncoder<T extends OwsServiceResponse>
- java.lang.Object
-
- org.n52.svalbard.encode.AbstractDelegatingEncoder<T,S>
-
- 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 Constructor Description AbstractAqdResponseEncoder(String operation, Class<T> responseType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected OwsServiceResponsechangeResponseServiceVersion(OwsServiceResponse response)protected org.apache.xmlbeans.XmlObjectencodeFes(Object o)protected org.apache.xmlbeans.XmlObjectencodeFes(EncodingContext context, Object o)protected org.apache.xmlbeans.XmlObjectencodeGml(Object o)protected org.apache.xmlbeans.XmlObjectencodeGml(EncodingContext context, Object o)protected org.apache.xmlbeans.XmlObjectencodeOws(Object o)protected org.apache.xmlbeans.XmlObjectencodeOws(EncodingContext context, Object o)protected org.apache.xmlbeans.XmlObjectencodeSwe(Object o)protected org.apache.xmlbeans.XmlObjectencodeSwe(EncodingContext context, Object o)protected org.apache.xmlbeans.XmlObjectencodeWithSosEncoder(T response)protected Encoder<Object,OwsServiceResponse>getEncoder(OwsServiceResponse asr)Get theEncoderfor theOwsServiceResponseand the requested contentTypeprotected EReportingHeadergetEReportingHeader(ReportObligationType type)StringgetEReportingNamespace()protected StringgetEReportingObservationPrefix()protected StringgetObservationId(int counter)protected StringgetObservationXlink(String gmlId)Set<SchemaLocation>getSchemaLocations()protected booleanisSetEReportingNamespace()protected booleanisSetEReportingObservationPrefix()protected 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, getKeys
-
Methods inherited from class org.n52.svalbard.encode.AbstractXmlResponseEncoder
addNamespacePrefixToMap, create, create, encode, encode, getConcreteSchemaLocations, getConcreteSchemaLocations, getResponseType, getSchemaRepository, setSchemaRepository, setValidate
-
Methods 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, substitute
-
Methods inherited from class org.n52.svalbard.encode.AbstractDelegatingEncoder
getEncoder, getEncoderRepository, setEncoderRepository
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.n52.svalbard.ConformanceClass
getConformanceClasses
-
Methods inherited from interface org.n52.svalbard.encode.Encoder
getContentType, getSupportedTypes
-
Methods inherited from interface org.n52.svalbard.encode.StreamingEncoder
encode
-
-
-
-
Method Detail
-
setReportObligationRepository
@Inject public void setReportObligationRepository(Optional<EReportObligationRepository> reportObligationRepository)
-
getSchemaLocations
public Set<SchemaLocation> getSchemaLocations()
-
processObservation
protected void processObservation(OmObservation observation, TimePeriod timePeriod, TimeInstant resultTime, FeatureCollection featureCollection, AbstractEReportingHeader eReportingHeader, int counter)
-
getObservationId
protected String getObservationId(int counter)
-
getEReportingNamespace
public String 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
protected String getEReportingObservationPrefix()
-
isSetEReportingObservationPrefix
protected boolean isSetEReportingObservationPrefix()
-
getEReportingHeader
protected EReportingHeader getEReportingHeader(ReportObligationType type) throws OwsExceptionReport, EncodingException
- Throws:
OwsExceptionReportEncodingException
-
encodeGml
protected org.apache.xmlbeans.XmlObject encodeGml(Object o) throws EncodingException
- Throws:
EncodingException
-
encodeGml
protected org.apache.xmlbeans.XmlObject encodeGml(EncodingContext context, Object o) throws EncodingException
- Throws:
EncodingException
-
encodeOws
protected org.apache.xmlbeans.XmlObject encodeOws(Object o) throws EncodingException
- Throws:
EncodingException
-
encodeOws
protected org.apache.xmlbeans.XmlObject encodeOws(EncodingContext context, Object o) throws EncodingException
- Throws:
EncodingException
-
encodeFes
protected org.apache.xmlbeans.XmlObject encodeFes(Object o) throws EncodingException
- Throws:
EncodingException
-
encodeFes
protected org.apache.xmlbeans.XmlObject encodeFes(EncodingContext context, Object o) throws EncodingException
- Throws:
EncodingException
-
encodeSwe
protected org.apache.xmlbeans.XmlObject encodeSwe(Object o) throws EncodingException
- Throws:
EncodingException
-
encodeSwe
protected org.apache.xmlbeans.XmlObject encodeSwe(EncodingContext context, Object o) throws EncodingException
- Throws:
EncodingException
-
changeResponseServiceVersion
protected OwsServiceResponse changeResponseServiceVersion(OwsServiceResponse response)
-
getEncoder
protected Encoder<Object,OwsServiceResponse> getEncoder(OwsServiceResponse asr)
Get theEncoderfor theOwsServiceResponseand the requested contentType- Parameters:
asr-OwsServiceResponseto getEncoderfor- Returns:
Encoderfor theOwsServiceResponse
-
encodeWithSosEncoder
protected org.apache.xmlbeans.XmlObject encodeWithSosEncoder(T response) throws EncodingException
- Throws:
EncodingException
-
-