Package org.n52.iceland.response
Class XmlResponseWriter
- java.lang.Object
-
- org.n52.iceland.coding.encode.AbstractResponseWriter<org.apache.xmlbeans.XmlObject>
-
- org.n52.iceland.response.XmlResponseWriter
-
- All Implemented Interfaces:
ResponseWriter<org.apache.xmlbeans.XmlObject>,Component<ResponseWriterKey>,Keyed<ResponseWriterKey>
public class XmlResponseWriter extends AbstractResponseWriter<org.apache.xmlbeans.XmlObject>
TODO JavaDoc- Since:
- 2.0.0
-
-
Field Summary
Fields Modifier and Type Field Description static ResponseWriterKeyKEY
-
Constructor Summary
Constructors Constructor Description XmlResponseWriter(EncoderRepository encoderRepository, Producer<org.apache.xmlbeans.XmlOptions> xmlOptions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<ResponseWriterKey>getKeys()booleansupportsGZip(org.apache.xmlbeans.XmlObject t)Check if GZip is supported by this writervoidwrite(org.apache.xmlbeans.XmlObject xml, OutputStream out, ResponseProxy responseProxy)Write object t toOutputStreamout-
Methods inherited from class org.n52.iceland.coding.encode.AbstractResponseWriter
getContentType, getEncodedContentType, getEncoder, getEncoderRepository, setContentType
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.n52.iceland.coding.encode.ResponseWriter
getForcedHttpStatus, hasForcedHttpStatus, isSetContentType
-
-
-
-
Field Detail
-
KEY
public static final ResponseWriterKey KEY
-
-
Constructor Detail
-
XmlResponseWriter
public XmlResponseWriter(EncoderRepository encoderRepository, Producer<org.apache.xmlbeans.XmlOptions> xmlOptions)
-
-
Method Detail
-
getKeys
public Set<ResponseWriterKey> getKeys()
-
write
public void write(org.apache.xmlbeans.XmlObject xml, OutputStream out, ResponseProxy responseProxy) throws IOExceptionDescription copied from interface:ResponseWriterWrite object t toOutputStreamout- Parameters:
xml- Object to writeout-OutputStreamto be written toresponseProxy-ResponseProxygiving access to header and content length setters- Throws:
IOException- If an error occurs during writing
-
supportsGZip
public boolean supportsGZip(org.apache.xmlbeans.XmlObject t)
Description copied from interface:ResponseWriterCheck if GZip is supported by this writer- Parameters:
t- Object to write- Returns:
true, if GZip is supported
-
-