T
- generic for the element to writepublic abstract class AbstractResponseWriter<T> extends Object implements ResponseWriter<T>
ResponseWriter
class for response streamingModifier and Type | Field and Description |
---|---|
private MediaType |
contentType |
private static org.slf4j.Logger |
LOGGER |
Constructor and Description |
---|
AbstractResponseWriter() |
Modifier and Type | Method and Description |
---|---|
MediaType |
getContentType()
Get the current contentType
|
MediaType |
getEncodedContentType(ResponseFormat responseFormat) |
protected <D,S> Encoder<D,S> |
getEncoder(EncoderKey key)
Getter for encoder, encapsulates the instance call
|
protected boolean |
isSetContentType()
Check if contentType is set
|
void |
setContentType(MediaType contentType)
Set the contentType
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
supportsGZip, write
private static final org.slf4j.Logger LOGGER
private MediaType contentType
public MediaType getContentType()
ResponseWriter
getContentType
in interface ResponseWriter<T>
public void setContentType(MediaType contentType)
ResponseWriter
setContentType
in interface ResponseWriter<T>
contentType
- to setprotected boolean isSetContentType()
true
, if contentType is setprotected <D,S> Encoder<D,S> getEncoder(EncoderKey key)
key
- Encoder keypublic MediaType getEncodedContentType(ResponseFormat responseFormat)
getEncodedContentType
in interface ResponseWriter<T>
Copyright © 2012-2015 52north.org. All Rights Reserved.