Package org.n52.svalbard.encode
Class AbstractResponseEncoder<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>
-
- 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
Constructors Constructor Description AbstractResponseEncoder(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidencode(T response, OutputStream outputStream, EncodingContext context)Set<EncoderKey>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.SchemaAwareEncoder
getSchemaLocations
-
Methods inherited from interface org.n52.svalbard.encode.StreamingEncoder
encode
-
-
-
-
Constructor Detail
-
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 Detail
-
getKeys
public Set<EncoderKey> getKeys()
-
encode
public void encode(T response, OutputStream outputStream, EncodingContext context) throws EncodingException
- Throws:
EncodingException
-
-