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>
Streaming SOAP response writer implementation.
- Since:
- 2.0.0
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSoapChainResponseWriter(EncoderRepository encoderRepository, Producer<org.apache.xmlbeans.XmlOptions> xmlOptions, boolean forceStreamingEncoding) -
Method Summary
Modifier and TypeMethodDescriptiongetKeys()booleanCheck if GZip is supported by this writervoidwrite(SoapChain chain, OutputStream out) Write object t toOutputStreamoutvoidwrite(SoapChain chain, 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
-
SoapChainResponseWriter
public SoapChainResponseWriter(EncoderRepository encoderRepository, Producer<org.apache.xmlbeans.XmlOptions> xmlOptions, boolean forceStreamingEncoding)
-
-
Method Details
-
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
-
write
Description copied from interface:ResponseWriterWrite object t toOutputStreamout- Parameters:
chain- Object to writeout-OutputStreamto be written to- Throws:
EncodingException- if an errors occurs during encodingIOException- If an error occurs during writing
-
supportsGZip
Description copied from interface:ResponseWriterCheck if GZip is supported by this writer- Parameters:
t- Object to write- Returns:
true, if GZip is supported
-