Package org.n52.iceland.response
Class SoapChainResponseWriter
- java.lang.Object
-
- org.n52.iceland.coding.encode.AbstractResponseWriter<SoapChain>
-
- org.n52.iceland.response.SoapChainResponseWriter
-
- All Implemented Interfaces:
ResponseWriter<SoapChain>,Component<ResponseWriterKey>,Keyed<ResponseWriterKey>
public class SoapChainResponseWriter extends AbstractResponseWriter<SoapChain>
Streaming SOAP response writer implementation.- Since:
- 2.0.0
-
-
Field Summary
Fields Modifier and Type Field Description static ResponseWriterKeyKEY
-
Constructor Summary
Constructors Constructor Description SoapChainResponseWriter(EncoderRepository encoderRepository, Producer<org.apache.xmlbeans.XmlOptions> xmlOptions, boolean forceStreamingEncoding)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<ResponseWriterKey>getKeys()booleansupportsGZip(SoapChain t)Check if GZip is supported by this writervoidwrite(SoapChain chain, 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
-
SoapChainResponseWriter
public SoapChainResponseWriter(EncoderRepository encoderRepository, Producer<org.apache.xmlbeans.XmlOptions> xmlOptions, boolean forceStreamingEncoding)
-
-
Method Detail
-
getKeys
public Set<ResponseWriterKey> getKeys()
-
write
public void write(SoapChain chain, OutputStream out, ResponseProxy responseProxy) throws IOException
Description copied from interface:ResponseWriterWrite object t toOutputStreamout- Parameters:
chain- 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(SoapChain t)
Description copied from interface:ResponseWriterCheck if GZip is supported by this writer- Parameters:
t- Object to write- Returns:
true, if GZip is supported
-
-