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>
TODO JavaDoc
- Since:
- 2.0.0
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionXmlResponseWriter(EncoderRepository encoderRepository, Producer<org.apache.xmlbeans.XmlOptions> xmlOptions) -
Method Summary
Modifier and TypeMethodDescriptiongetKeys()booleansupportsGZip(org.apache.xmlbeans.XmlObject t) Check if GZip is supported by this writervoidwrite(org.apache.xmlbeans.XmlObject xml, OutputStream out) Write object t toOutputStreamoutvoidwrite(org.apache.xmlbeans.XmlObject xml, OutputStream out, ResponseProxy responseProxy) Write object t toOutputStreamoutMethods inherited from class org.n52.iceland.coding.encode.AbstractResponseWriter
getContentType, getEncodedContentType, getEncoder, getEncoderRepository, setContentTypeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.n52.iceland.coding.encode.ResponseWriter
getForcedHttpStatus, hasForcedHttpStatus, isSetContentType
-
Field Details
-
KEY
-
-
Constructor Details
-
XmlResponseWriter
public XmlResponseWriter(EncoderRepository encoderRepository, Producer<org.apache.xmlbeans.XmlOptions> xmlOptions)
-
-
Method Details
-
getKeys
-
write
public void write(org.apache.xmlbeans.XmlObject xml, OutputStream out, ResponseProxy responseProxy) throws IOException Description 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
-
write
Description copied from interface:ResponseWriterWrite object t toOutputStreamout- Parameters:
xml- Object to writeout-OutputStreamto be written to- 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
-