Package org.n52.svalbard.encode
Class ExiEncoder<T>
java.lang.Object
org.n52.svalbard.encode.AbstractDelegatingEncoder<EXIObject<org.apache.xmlbeans.XmlObject>,T>
org.n52.svalbard.encode.ExiEncoder<T>
- All Implemented Interfaces:
Component<EncoderKey>,Keyed<EncoderKey>,Encoder<EXIObject<org.apache.xmlbeans.XmlObject>,T>
- Direct Known Subclasses:
ExiExceptionEncoder,ExiResponseEncoder
public abstract class ExiEncoder<T>
extends AbstractDelegatingEncoder<EXIObject<org.apache.xmlbeans.XmlObject>,T>
TODO JavaDoc
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionEXIObject<org.apache.xmlbeans.XmlObject> EXIObject<org.apache.xmlbeans.XmlObject> encode(T response, EncodingContext additionalValues) protected MediaTypegetEncodedContentType(OwsServiceResponse response) Get encodingMediaTypefromOwsServiceResponseprotected MediaTypegetEncodedContentType(ResponseFormat responseFormat) Get encodingMediaTypefromResponseFormatgetEncoder(T response) Get theEncoderfor theOwsServiceResponseand the requested contentTypeprotected abstract EncoderKeyMethods 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.encode.Encoder
getSupportedTypes
-
Constructor Details
-
ExiEncoder
public ExiEncoder()
-
-
Method Details
-
getContentType
-
encode
public EXIObject<org.apache.xmlbeans.XmlObject> encode(T response, EncodingContext additionalValues) throws EncodingException - Throws:
EncodingException
-
encode
- Throws:
EncodingException
-
getEncoder
Get theEncoderfor theOwsServiceResponseand the requested contentType- Parameters:
response-OwsServiceResponseto getEncoderfor- Returns:
Encoderfor theOwsServiceResponse- Throws:
EncodingException- if no encoder could be found
-
getKey
-
getEncodedContentType
Get encodingMediaTypefromOwsServiceResponse- Parameters:
response-OwsServiceResponseto get content type from- Returns:
- Encoding
MediaType
-
getEncodedContentType
Get encodingMediaTypefromResponseFormat- Parameters:
responseFormat-ResponseFormatto get content type from- Returns:
- Encoding
MediaType
-