Class NettyHttpConduit.NettyWrappedOutputStream
java.lang.Object
java.io.OutputStream
org.apache.cxf.io.AbstractWrappedOutputStream
org.apache.cxf.io.AbstractThresholdOutputStream
org.apache.cxf.transport.http.HTTPConduit.WrappedOutputStream
org.apache.cxf.transport.http.netty.client.NettyHttpConduit.NettyWrappedOutputStream
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
- Enclosing class:
- NettyHttpConduit
-
Field Summary
Fields inherited from class org.apache.cxf.transport.http.HTTPConduit.WrappedOutputStream
cachedStream, cachingForRetransmission, chunking, conduitName, outMessage, urlFields inherited from class org.apache.cxf.io.AbstractThresholdOutputStream
buffer, thresholdFields inherited from class org.apache.cxf.io.AbstractWrappedOutputStream
allowFlush, wrappedStream, written -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedNettyWrappedOutputStream(Message message, boolean possibleRetransmit, boolean isChunking, int chunkThreshold, String conduitName, URI url) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected voidconnect(boolean output) protected TLSClientParametersprotected io.netty.channel.Channelprotected io.netty.handler.codec.http.HttpResponseprotected io.netty.handler.codec.http.HttpContentprotected 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(Message inMessage) protected booleanMethods inherited from class org.apache.cxf.transport.http.HTTPConduit.WrappedOutputStream
authorizationRetransmit, close, doProcessResponseCode, getExceptionMessage, getMethod, handleHeadersTrustCaching, handleHttpRetryException, handleResponse, handleResponseInternal, handleResponseOnWorkqueue, handleRetransmits, makeTrustDecision, onFirstWrite, processRetransmit, propagateConduit, redirectRetransmit, retransmit, thresholdNotReachedMethods 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
- Specified by:
setupWrappedStreamin classHTTPConduit.WrappedOutputStream- Throws:
IOException
-
handleNoOutput
- Overrides:
handleNoOutputin classHTTPConduit.WrappedOutputStream- Throws:
IOException
-
findTLSClientParameters
-
connect
protected void connect(boolean output) -
getHttpsURLConnectionInfo
- Specified by:
getHttpsURLConnectionInfoin classHTTPConduit.WrappedOutputStream- Throws:
IOException
-
setProtocolHeaders
- Specified by:
setProtocolHeadersin classHTTPConduit.WrappedOutputStream- Throws:
IOException
-
setFixedLengthStreamingMode
protected void setFixedLengthStreamingMode(int i) - Specified by:
setFixedLengthStreamingModein classHTTPConduit.WrappedOutputStream
-
getResponseCode
- Specified by:
getResponseCodein classHTTPConduit.WrappedOutputStream- Throws:
IOException
-
getResponseMessage
- Specified by:
getResponseMessagein classHTTPConduit.WrappedOutputStream- Throws:
IOException
-
updateResponseHeaders
- Specified by:
updateResponseHeadersin classHTTPConduit.WrappedOutputStream- Throws:
IOException
-
handleResponseAsync
- Specified by:
handleResponseAsyncin classHTTPConduit.WrappedOutputStream- Throws:
IOException
-
closeInputStream
- Specified by:
closeInputStreamin classHTTPConduit.WrappedOutputStream- Throws:
IOException
-
usingProxy
protected boolean usingProxy()- Specified by:
usingProxyin classHTTPConduit.WrappedOutputStream
-
getInputStream
- Specified by:
getInputStreamin classHTTPConduit.WrappedOutputStream- Throws:
IOException
-
getPartialResponse
- Specified by:
getPartialResponsein classHTTPConduit.WrappedOutputStream- Throws:
IOException
-
setupNewConnection
- Specified by:
setupNewConnectionin classHTTPConduit.WrappedOutputStream- Throws:
IOException
-
retransmitStream
- Specified by:
retransmitStreamin classHTTPConduit.WrappedOutputStream- Throws:
IOException
-
updateCookiesBeforeRetransmit
- Specified by:
updateCookiesBeforeRetransmitin classHTTPConduit.WrappedOutputStream- Throws:
IOException
-
thresholdReached
- Specified by:
thresholdReachedin classAbstractThresholdOutputStream- Throws:
IOException
-
setHttpResponse
protected void setHttpResponse(io.netty.handler.codec.http.HttpResponse r) -
setException
-
setChannel
protected void setChannel(io.netty.channel.Channel ch)
-