T - generic for the element to writepublic abstract class AbstractResponseWriter<T> extends Object implements ResponseWriter<T>
ResponseWriter class for response streaming| Constructor and Description |
|---|
AbstractResponseWriter(EncoderRepository encoderRepository) |
| 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 EncoderRepository |
getEncoderRepository() |
void |
setContentType(MediaType contentType)
Set the contentType
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetForcedHttpStatus, hasForcedHttpStatus, isSetContentType, supportsGZip, writepublic AbstractResponseWriter(EncoderRepository encoderRepository)
public MediaType getContentType()
ResponseWritergetContentType in interface ResponseWriter<T>public void setContentType(MediaType contentType)
ResponseWritersetContentType in interface ResponseWriter<T>contentType - to setprotected <D,S> Encoder<D,S> getEncoder(EncoderKey key)
D - the encoders output typeS - the encoders input typekey - Encoder keypublic MediaType getEncodedContentType(ResponseFormat responseFormat)
getEncodedContentType in interface ResponseWriter<T>protected EncoderRepository getEncoderRepository()
Copyright © 2015–2020 52°North Initiative for Geospatial Open Source Software GmbH. All rights reserved.