T - the response type@Configurable public abstract class AbstractXmlResponseEncoder<T> extends AbstractXmlEncoder<org.apache.xmlbeans.XmlObject,T> implements StreamingEncoder<org.apache.xmlbeans.XmlObject,T>, ConformanceClass
| Constructor and Description |
|---|
AbstractXmlResponseEncoder(String service,
String version,
String operation,
String namespace,
String prefix,
Class<T> responseType)
constructor
|
AbstractXmlResponseEncoder(String service,
String version,
String operation,
String namespace,
String prefix,
Class<T> responseType,
boolean validate)
constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
addNamespacePrefixToMap(Map<String,String> nameSpacePrefixMap) |
protected abstract org.apache.xmlbeans.XmlObject |
create(T response)
Create an
XmlObject from the OwsServiceResponse object |
protected void |
create(T response,
OutputStream outputStream,
EncodingContext encodingValues)
Override this method in concrete response encoder if streaming is supported for this operations.
|
org.apache.xmlbeans.XmlObject |
encode(T response) |
org.apache.xmlbeans.XmlObject |
encode(T response,
EncodingContext additionalValues) |
protected abstract Set<SchemaLocation> |
getConcreteSchemaLocations()
Get the concrete schema locations for this
OwsServiceResponse encoder |
protected Set<SchemaLocation> |
getConcreteSchemaLocations(String namespace) |
protected Class<T> |
getResponseType() |
SchemaRepository |
getSchemaRepository() |
void |
setSchemaRepository(SchemaRepository schemaRepository) |
void |
setValidate(boolean validate) |
encodeObjectToXml, 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, waitencode, encodegetContentType, getSupportedTypesgetConformanceClassesgetSchemaLocationspublic AbstractXmlResponseEncoder(String service, String version, String operation, String namespace, String prefix, Class<T> responseType, boolean validate)
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 validatedpublic AbstractXmlResponseEncoder(String service, String version, String operation, String namespace, String prefix, Class<T> responseType)
service - Serviceversion - Service versionoperation - Service operation namenamespace - Service XML schema namespaceprefix - Service XML schema prefixresponseType - Response type@Inject public void setSchemaRepository(SchemaRepository schemaRepository)
public SchemaRepository getSchemaRepository()
public void addNamespacePrefixToMap(Map<String,String> nameSpacePrefixMap)
addNamespacePrefixToMap in interface SchemaAwareEncoder<org.apache.xmlbeans.XmlObject,T>public org.apache.xmlbeans.XmlObject encode(T response) throws EncodingException
encode in interface Encoder<org.apache.xmlbeans.XmlObject,T>encode in class AbstractXmlEncoder<org.apache.xmlbeans.XmlObject,T>EncodingExceptionpublic org.apache.xmlbeans.XmlObject encode(T response, EncodingContext additionalValues) throws EncodingException
encode in interface Encoder<org.apache.xmlbeans.XmlObject,T>EncodingExceptionprotected abstract Set<SchemaLocation> getConcreteSchemaLocations()
OwsServiceResponse encoderprotected Set<SchemaLocation> getConcreteSchemaLocations(String namespace)
protected abstract org.apache.xmlbeans.XmlObject create(T response) throws EncodingException
XmlObject from the OwsServiceResponse objectresponse - OwsServiceResponse to encodeOwsServiceResponseEncodingException - If an error occurs during the encodingprotected void create(T response, OutputStream outputStream, EncodingContext encodingValues) throws EncodingException
response - Implementation of OwsServiceResponseoutputStream - OutputStream to writeencodingValues - EncodingValues with additional indicators for encodingEncodingException - If an error occurs during encoding/writing to streamCopyright © 2015–2018 52°North Initiative for Geospatial Open Source Software GmbH. All rights reserved.