public class EXIResponseWriter extends AbstractResponseWriter<EXIObject<org.apache.xmlbeans.XmlObject>>
EXIObject
Converts XML documents via EXI encoding using EXISettings.| Modifier and Type | Field and Description |
|---|---|
static ResponseWriterKey |
KEY |
| Constructor and Description |
|---|
EXIResponseWriter(EncoderRepository encoderRepository,
Producer<com.siemens.ct.exi.core.EXIFactory> exiFactory,
Producer<org.apache.xmlbeans.XmlOptions> xmlOptions) |
| Modifier and Type | Method and Description |
|---|---|
MediaType |
getContentType()
Get the current contentType
|
Set<ResponseWriterKey> |
getKeys() |
void |
setContentType(MediaType contentType)
Set the contentType
|
boolean |
supportsGZip(EXIObject<org.apache.xmlbeans.XmlObject> t)
Check if GZip is supported by this writer
|
void |
write(EXIObject<org.apache.xmlbeans.XmlObject> exiObject,
OutputStream out,
ResponseProxy responseProxy)
Write object t to
OutputStream out |
getEncodedContentType, getEncoder, getEncoderRepositoryclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetForcedHttpStatus, hasForcedHttpStatus, isSetContentTypepublic static final ResponseWriterKey KEY
public EXIResponseWriter(EncoderRepository encoderRepository, Producer<com.siemens.ct.exi.core.EXIFactory> exiFactory, Producer<org.apache.xmlbeans.XmlOptions> xmlOptions)
public Set<ResponseWriterKey> getKeys()
public void write(EXIObject<org.apache.xmlbeans.XmlObject> exiObject, OutputStream out, ResponseProxy responseProxy) throws IOException, EncodingException
ResponseWriterOutputStream outexiObject - Object to writeout - OutputStream to be written toresponseProxy - ResponseProxy giving access to header and content length settersIOException - If an error occurs during writingEncodingException - if an errors occurs during encodingpublic MediaType getContentType()
ResponseWritergetContentType in interface ResponseWriter<EXIObject<org.apache.xmlbeans.XmlObject>>getContentType in class AbstractResponseWriter<EXIObject<org.apache.xmlbeans.XmlObject>>public void setContentType(MediaType contentType)
ResponseWritersetContentType in interface ResponseWriter<EXIObject<org.apache.xmlbeans.XmlObject>>setContentType in class AbstractResponseWriter<EXIObject<org.apache.xmlbeans.XmlObject>>contentType - to setpublic boolean supportsGZip(EXIObject<org.apache.xmlbeans.XmlObject> t)
ResponseWritert - Object to writetrue, if GZip is supportedCopyright © 2015–2020 52°North Initiative for Geospatial Open Source Software GmbH. All rights reserved.