public abstract class ExiEncoder<T> extends AbstractDelegatingEncoder<EXIObject<org.apache.xmlbeans.XmlObject>,T>
| Constructor and Description |
|---|
ExiEncoder() |
| Modifier and Type | Method and Description |
|---|---|
EXIObject<org.apache.xmlbeans.XmlObject> |
encode(T response) |
EXIObject<org.apache.xmlbeans.XmlObject> |
encode(T response,
EncodingContext additionalValues) |
MediaType |
getContentType() |
protected MediaType |
getEncodedContentType(OwsServiceResponse response)
Get encoding
MediaType from OwsServiceResponse |
protected MediaType |
getEncodedContentType(ResponseFormat responseFormat)
Get encoding
MediaType from ResponseFormat |
protected Encoder<Object,T> |
getEncoder(T response)
Get the
Encoder for the OwsServiceResponse and the
requested contentType |
protected abstract EncoderKey |
getKey(T object) |
getEncoder, getEncoderRepository, setEncoderRepositoryclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetSupportedTypespublic MediaType getContentType()
public EXIObject<org.apache.xmlbeans.XmlObject> encode(T response, EncodingContext additionalValues) throws EncodingException
EncodingExceptionpublic EXIObject<org.apache.xmlbeans.XmlObject> encode(T response) throws EncodingException
EncodingExceptionprotected Encoder<Object,T> getEncoder(T response) throws EncodingException
Encoder for the OwsServiceResponse and the
requested contentTyperesponse - OwsServiceResponse to get Encoder forEncoder for the OwsServiceResponseEncodingException - if no encoder could be foundprotected abstract EncoderKey getKey(T object)
protected MediaType getEncodedContentType(OwsServiceResponse response)
MediaType from OwsServiceResponseresponse - OwsServiceResponse to get content type fromMediaTypeprotected MediaType getEncodedContentType(ResponseFormat responseFormat)
MediaType from ResponseFormatresponseFormat - ResponseFormat to get content type fromMediaTypeCopyright © 2015–2020 52°North Initiative for Geospatial Open Source Software GmbH. All rights reserved.