public class EXIResponseWriter extends AbstractResponseWriter<EXIObject>
EXIObject
Converts XML documents via EXI encoding using EXISettings
.Constructor and Description |
---|
EXIResponseWriter() |
Modifier and Type | Method and Description |
---|---|
MediaType |
getContentType()
Get the current contentType
|
void |
setContentType(MediaType contentType)
Set the contentType
|
boolean |
supportsGZip(EXIObject t)
Check if GZip is supported by this writer
|
void |
write(EXIObject exiObject,
OutputStream out,
ResponseProxy responseProxy)
Write object t to
OutputStream out |
getEncodedContentType, getEncoder, isSetContentType
private static final EXIUtils EXI_UTILS
public void write(EXIObject exiObject, OutputStream out, ResponseProxy responseProxy) throws IOException
ResponseWriter
OutputStream
outexiObject
- Object to writeout
- OutputStream
to be written toresponseProxy
- ResponseProxy
giving access to header and content length settersIOException
- If an error occurs during writingpublic MediaType getContentType()
ResponseWriter
getContentType
in interface ResponseWriter<EXIObject>
getContentType
in class AbstractResponseWriter<EXIObject>
public void setContentType(MediaType contentType)
ResponseWriter
setContentType
in interface ResponseWriter<EXIObject>
setContentType
in class AbstractResponseWriter<EXIObject>
contentType
- to setpublic boolean supportsGZip(EXIObject t)
ResponseWriter
t
- Object to writetrue
, if GZip is supportedCopyright © 2012-2015 52north.org. All Rights Reserved.