public class XmlResponseWriter extends AbstractResponseWriter<org.apache.xmlbeans.XmlObject>
| Modifier and Type | Field and Description |
|---|---|
static ResponseWriterKey |
KEY |
| Constructor and Description |
|---|
XmlResponseWriter(EncoderRepository encoderRepository,
Producer<org.apache.xmlbeans.XmlOptions> xmlOptions) |
| Modifier and Type | Method and Description |
|---|---|
Set<ResponseWriterKey> |
getKeys() |
boolean |
supportsGZip(org.apache.xmlbeans.XmlObject t)
Check if GZip is supported by this writer
|
void |
write(org.apache.xmlbeans.XmlObject xml,
OutputStream out,
ResponseProxy responseProxy)
Write object t to
OutputStream out |
getContentType, getEncodedContentType, getEncoder, getEncoderRepository, setContentTypeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetForcedHttpStatus, hasForcedHttpStatus, isSetContentTypepublic static final ResponseWriterKey KEY
public XmlResponseWriter(EncoderRepository encoderRepository, Producer<org.apache.xmlbeans.XmlOptions> xmlOptions)
public Set<ResponseWriterKey> getKeys()
public void write(org.apache.xmlbeans.XmlObject xml,
OutputStream out,
ResponseProxy responseProxy)
throws IOException
ResponseWriterOutputStream outxml - Object to writeout - OutputStream to be written toresponseProxy - ResponseProxy giving access to header and content length settersIOException - If an error occurs during writingpublic boolean supportsGZip(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.