Package org.n52.svalbard.encode
Class AbstractRequestEncoder<T extends OwsServiceRequest>
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.AbstractRequestEncoder<T>
- Type Parameters:
T- the request 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:
AbstractSosRequestEncoder,AbstractSosV1RequestEncoder,AbstractSwesRequestEncoder,InsertFeatureOfInterestRequestEncoder
public abstract class AbstractRequestEncoder<T extends OwsServiceRequest>
extends AbstractXmlResponseEncoder<T>
- Since:
- 5.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionAbstractRequestEncoder(String service, String version, String operation, String namespace, String prefix, Class<T> responseType) constructorAbstractRequestEncoder(String service, String version, String operation, String namespace, String prefix, Class<T> responseType, boolean validate) constructor -
Method Summary
Modifier and TypeMethodDescriptionvoidencode(T request, OutputStream outputStream, EncodingContext encodingValues) 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
-
AbstractRequestEncoder
public AbstractRequestEncoder(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
-
AbstractRequestEncoder
public AbstractRequestEncoder(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 request, OutputStream outputStream, EncodingContext encodingValues) throws EncodingException - Throws:
EncodingException
-