T - the response typepublic abstract class AbstractObservationResponseEncoder<T extends AbstractObservationResponse> extends AbstractSosResponseEncoder<T>
| Constructor and Description |
|---|
AbstractObservationResponseEncoder(java.lang.String operation,
java.lang.Class<T> responseType) |
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.xmlbeans.XmlObject |
create(T response)
Create an
XmlObject from the OwsServiceResponse object |
protected void |
create(T response,
java.io.OutputStream outputStream,
EncodingContext encodingValues)
Override this method in concrete response encoder if streaming is supported for this operations.
|
protected abstract org.apache.xmlbeans.XmlObject |
createResponse(ObservationEncoder<org.apache.xmlbeans.XmlObject,OmObservation> encoder,
T response)
Create a response using the provided O&M2 compatible observation encoder.
|
protected void |
createResponse(ObservationEncoder<org.apache.xmlbeans.XmlObject,OmObservation> encoder,
T response,
java.io.OutputStream outputStream,
EncodingContext encodingValues)
Override this method in concrete response encoder if streaming is supported for this operations.
|
createExtension, encodeFes, encodeFes, encodeGml, encodeGml, encodeOws, encodeOws, encodeSwe, encodeSwe, getSchemaLocationsencode, getKeysaddNamespacePrefixToMap, encode, encode, getConcreteSchemaLocations, getConcreteSchemaLocations, getResponseType, getSchemaRepository, setSchemaRepository, setValidateencodeObjectToXml, encodeObjectToXml, encodeObjectToXmlDocument, encodeObjectToXmlDocument, encodeObjectToXmlPropertyType, encodeObjectToXmlPropertyType, encodeObjectToXmlText, encodeObjectToXmlText, getAndCheck, getContentType, getDocumentEncoder, getDocumentEncoder, getDocumentEncoderKey, getDocumentEncoderKey, getEncoder, getEncoder, getEncoderKey, getEncoderKey, getPropertyTypeEncoder, getPropertyTypeEncoder, getPropertyTypeEncoderKey, getPropertyTypeEncoderKey, getXmlOptions, setXmlOptions, substitutegetEncoder, getEncoderRepository, setEncoderRepositoryclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitencodegetContentType, getSupportedTypesgetConformanceClassespublic AbstractObservationResponseEncoder(java.lang.String operation,
java.lang.Class<T> responseType)
protected org.apache.xmlbeans.XmlObject create(T response) throws EncodingException
AbstractXmlResponseEncoderXmlObject from the OwsServiceResponse objectcreate in class AbstractXmlResponseEncoder<T extends AbstractObservationResponse>response - OwsServiceResponse to encodeOwsServiceResponseEncodingException - If an error occurs during the encodingprotected void create(T response, java.io.OutputStream outputStream, EncodingContext encodingValues) throws EncodingException
AbstractXmlResponseEncodercreate in class AbstractXmlResponseEncoder<T extends AbstractObservationResponse>response - Implementation of OwsServiceResponseoutputStream - OutputStream to writeencodingValues - EncodingValues with additional indicators for encodingEncodingException - If an error occurs during encoding/writing to streamprotected abstract org.apache.xmlbeans.XmlObject createResponse(ObservationEncoder<org.apache.xmlbeans.XmlObject,OmObservation> encoder, T response) throws EncodingException
encoder - the encoderresponse - the responseEncodingException - if an error occursprotected void createResponse(ObservationEncoder<org.apache.xmlbeans.XmlObject,OmObservation> encoder, T response, java.io.OutputStream outputStream, EncodingContext encodingValues) throws EncodingException
encoder - the encoderresponse - the responseoutputStream - the output streamencodingValues - the encoding contextEncodingException - if the encoding failsCopyright © 2015–2019 52°North Initiative for Geospatial Open Source Software GmbH. All rights reserved.