Package org.n52.svalbard.encode
Class AbstractResponseEncoder<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>
- Type Parameters:
T- the response type
- 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:
AbstractAqdResponseEncoder,AbstractSosResponseEncoder,AbstractSosV1ResponseEncoder,AbstractSwesResponseEncoder,AbstractVersionedResponseEncoder,DeleteObservationEncoder,DeleteResultTemplateEncoder,GetDataAvailabilityXmlEncoder,InsertFeatureOfInterestEncoder
public abstract class AbstractResponseEncoder<T extends OwsServiceResponse>
extends AbstractXmlResponseEncoder<T>
TODO JavaDoc
- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionAbstractResponseEncoder(String service, String version, String operation, String namespace, String prefix, Class<T> responseType) constructorAbstractResponseEncoder(String service, String version, String operation, String namespace, String prefix, Class<T> responseType, boolean validate) constructor -
Method Summary
Modifier and TypeMethodDescriptionvoidencode(T response, OutputStream outputStream, EncodingContext context) getKeys()Methods 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.SchemaAwareEncoder
getSchemaLocationsMethods inherited from interface org.n52.svalbard.encode.StreamingEncoder
encode
-
Constructor Details
-
AbstractResponseEncoder
public AbstractResponseEncoder(String service, String version, String operation, String namespace, String prefix, Class<T> responseType, boolean validate) constructor- Parameters:
service- Serviceversion- Service versionoperation- Service operation namenamespace- Service XML schema namespaceprefix- Service XML schema prefixresponseType- Response typevalidate- Indicator if the created/encoded object should be validated
-
AbstractResponseEncoder
public AbstractResponseEncoder(String service, String version, String operation, String namespace, String prefix, Class<T> responseType) constructor- Parameters:
service- Serviceversion- Service versionoperation- Service operation namenamespace- Service XML schema namespaceprefix- Service XML schema prefixresponseType- Response type
-
-
Method Details
-
getKeys
-
encode
public void encode(T response, OutputStream outputStream, EncodingContext context) throws EncodingException - Throws:
EncodingException
-