Class NettyHttpConduit.NettyWrappedOutputStream
java.lang.Object
java.io.OutputStream
org.apache.cxf.io.AbstractWrappedOutputStream
org.apache.cxf.io.AbstractThresholdOutputStream
org.apache.cxf.transport.http.netty.client.NettyHttpConduit.NettyWrappedOutputStream
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
- Enclosing class:
- NettyHttpConduit
public class NettyHttpConduit.NettyWrappedOutputStream
extends org.apache.cxf.io.AbstractThresholdOutputStream
-
Field Summary
Fields inherited from class org.apache.cxf.io.AbstractThresholdOutputStream
buffer, thresholdFields inherited from class org.apache.cxf.io.AbstractWrappedOutputStream
allowFlush, wrappedStream, written -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedNettyWrappedOutputStream(org.apache.cxf.message.Message message, boolean possibleRetransmit, boolean isChunking, int chunkThreshold, String conduitName, URI url) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected voidconnect(boolean output) protected org.apache.cxf.configuration.jsse.TLSClientParametersprotected io.netty.channel.Channelprotected io.netty.handler.codec.http.HttpResponseprotected io.netty.handler.codec.http.HttpContentprotected org.apache.cxf.transport.https.HttpsURLConnectionInfoprotected InputStreamprotected io.netty.buffer.ByteBufprotected InputStreamprotected intprotected Stringprotected voidprotected voidprotected voidprotected voidsetChannel(io.netty.channel.Channel ch) protected voidprotected voidsetFixedLengthStreamingMode(int i) protected voidsetHttpResponse(io.netty.handler.codec.http.HttpResponse r) protected voidprotected voidsetupNewConnection(String newURL) protected voidvoidprotected voidprotected voidupdateResponseHeaders(org.apache.cxf.message.Message inMessage) protected booleanMethods inherited from class org.apache.cxf.io.AbstractThresholdOutputStream
unBuffer, write, writeMethods inherited from class org.apache.cxf.io.AbstractWrappedOutputStream
allowFlush, flush, writeMethods inherited from class java.io.OutputStream
nullOutputStream
-
Constructor Details
-
NettyWrappedOutputStream
-
-
Method Details
-
getOutBuffer
protected io.netty.buffer.ByteBuf getOutBuffer() -
getHttpResponse
- Throws:
IOException
-
getHttpResponseContent
- Throws:
IOException
-
getChannel
- Throws:
IOException
-
setupWrappedStream
- Throws:
IOException
-
handleNoOutput
- Throws:
IOException
-
findTLSClientParameters
protected org.apache.cxf.configuration.jsse.TLSClientParameters findTLSClientParameters() -
connect
protected void connect(boolean output) -
getHttpsURLConnectionInfo
protected org.apache.cxf.transport.https.HttpsURLConnectionInfo getHttpsURLConnectionInfo() throws IOException- Throws:
IOException
-
setProtocolHeaders
- Throws:
IOException
-
setFixedLengthStreamingMode
protected void setFixedLengthStreamingMode(int i) -
getResponseCode
- Throws:
IOException
-
getResponseMessage
- Throws:
IOException
-
updateResponseHeaders
- Throws:
IOException
-
handleResponseAsync
- Throws:
IOException
-
closeInputStream
- Throws:
IOException
-
usingProxy
protected boolean usingProxy() -
getInputStream
- Throws:
IOException
-
getPartialResponse
- Throws:
IOException
-
setupNewConnection
- Throws:
IOException
-
retransmitStream
- Throws:
IOException
-
updateCookiesBeforeRetransmit
- Throws:
IOException
-
thresholdReached
- Specified by:
thresholdReachedin classorg.apache.cxf.io.AbstractThresholdOutputStream- Throws:
IOException
-
setHttpResponse
protected void setHttpResponse(io.netty.handler.codec.http.HttpResponse r) -
setException
-
setChannel
protected void setChannel(io.netty.channel.Channel ch)
-