Package org.n52.iceland.coding.encode
Class AbstractResponseWriter<T>
java.lang.Object
org.n52.iceland.coding.encode.AbstractResponseWriter<T>
- Type Parameters:
T- generic for the element to write
- All Implemented Interfaces:
ResponseWriter<T>,Component<ResponseWriterKey>,Keyed<ResponseWriterKey>
- Direct Known Subclasses:
EXIResponseWriter,JSONResponseWriter,SoapChainResponseWriter,XmlResponseWriter
Abstract
ResponseWriter class for response streaming- Since:
- 1.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the current contentTypegetEncodedContentType(ResponseFormat responseFormat) protected <D,S> Encoder <D, S> getEncoder(EncoderKey key) Getter for encoder, encapsulates the instance callprotected EncoderRepositoryvoidsetContentType(MediaType contentType) Set the contentTypeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.n52.iceland.coding.encode.ResponseWriter
getForcedHttpStatus, hasForcedHttpStatus, isSetContentType, supportsGZip, write, write
-
Constructor Details
-
AbstractResponseWriter
-
-
Method Details
-
getContentType
Description copied from interface:ResponseWriterGet the current contentType- Specified by:
getContentTypein interfaceResponseWriter<T>- Returns:
- the contenType
-
setContentType
Description copied from interface:ResponseWriterSet the contentType- Specified by:
setContentTypein interfaceResponseWriter<T>- Parameters:
contentType- to set
-
getEncoder
Getter for encoder, encapsulates the instance call- Type Parameters:
D- the encoders output typeS- the encoders input type- Parameters:
key- Encoder key- Returns:
- Matching encoder
-
getEncodedContentType
- Specified by:
getEncodedContentTypein interfaceResponseWriter<T>
-
getEncoderRepository
-