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
public class NettyHttpConduit.NettyWrappedOutputStream extends HTTPConduit.WrappedOutputStream
-
-
Field Summary
-
Fields inherited from class org.apache.cxf.transport.http.HTTPConduit.WrappedOutputStream
cachedStream, cachingForRetransmission, chunking, conduitName, outMessage, url
-
Fields inherited from class org.apache.cxf.io.AbstractThresholdOutputStream
buffer, threshold
-
Fields inherited from class org.apache.cxf.io.AbstractWrappedOutputStream
allowFlush, wrappedStream, written
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedNettyWrappedOutputStream(Message message, boolean possibleRetransmit, boolean isChunking, int chunkThreshold, String conduitName, URI url)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcloseInputStream()protected voidconnect(boolean output)protected TLSClientParametersfindTLSClientParameters()protected io.netty.channel.ChannelgetChannel()protected io.netty.handler.codec.http.HttpResponsegetHttpResponse()protected io.netty.handler.codec.http.HttpContentgetHttpResponseContent()protected HttpsURLConnectionInfogetHttpsURLConnectionInfo()protected InputStreamgetInputStream()protected io.netty.buffer.ByteBufgetOutBuffer()protected InputStreamgetPartialResponse()protected intgetResponseCode()protected StringgetResponseMessage()protected voidhandleNoOutput()protected voidhandleResponseAsync()protected voidretransmitStream()protected voidsetChannel(io.netty.channel.Channel ch)protected voidsetException(Throwable ex)protected voidsetFixedLengthStreamingMode(int i)protected voidsetHttpResponse(io.netty.handler.codec.http.HttpResponse r)protected voidsetProtocolHeaders()protected voidsetupNewConnection(String newURL)protected voidsetupWrappedStream()voidthresholdReached()protected voidupdateCookiesBeforeRetransmit()protected voidupdateResponseHeaders(Message inMessage)protected booleanusingProxy()-
Methods 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, thresholdNotReached
-
Methods inherited from class org.apache.cxf.io.AbstractThresholdOutputStream
unBuffer, write, write
-
Methods inherited from class org.apache.cxf.io.AbstractWrappedOutputStream
allowFlush, flush, write
-
Methods inherited from class java.io.OutputStream
nullOutputStream
-
-
-
-
Method Detail
-
getOutBuffer
protected io.netty.buffer.ByteBuf getOutBuffer()
-
getHttpResponse
protected io.netty.handler.codec.http.HttpResponse getHttpResponse() throws IOException- Throws:
IOException
-
getHttpResponseContent
protected io.netty.handler.codec.http.HttpContent getHttpResponseContent() throws IOException- Throws:
IOException
-
getChannel
protected io.netty.channel.Channel getChannel() throws IOException- Throws:
IOException
-
setupWrappedStream
protected void setupWrappedStream() throws IOException- Specified by:
setupWrappedStreamin classHTTPConduit.WrappedOutputStream- Throws:
IOException
-
handleNoOutput
protected void handleNoOutput() throws IOException- Overrides:
handleNoOutputin classHTTPConduit.WrappedOutputStream- Throws:
IOException
-
findTLSClientParameters
protected TLSClientParameters findTLSClientParameters()
-
connect
protected void connect(boolean output)
-
getHttpsURLConnectionInfo
protected HttpsURLConnectionInfo getHttpsURLConnectionInfo() throws IOException
- Specified by:
getHttpsURLConnectionInfoin classHTTPConduit.WrappedOutputStream- Throws:
IOException
-
setProtocolHeaders
protected void setProtocolHeaders() throws IOException- Specified by:
setProtocolHeadersin classHTTPConduit.WrappedOutputStream- Throws:
IOException
-
setFixedLengthStreamingMode
protected void setFixedLengthStreamingMode(int i)
- Specified by:
setFixedLengthStreamingModein classHTTPConduit.WrappedOutputStream
-
getResponseCode
protected int getResponseCode() throws IOException- Specified by:
getResponseCodein classHTTPConduit.WrappedOutputStream- Throws:
IOException
-
getResponseMessage
protected String getResponseMessage() throws IOException
- Specified by:
getResponseMessagein classHTTPConduit.WrappedOutputStream- Throws:
IOException
-
updateResponseHeaders
protected void updateResponseHeaders(Message inMessage) throws IOException
- Specified by:
updateResponseHeadersin classHTTPConduit.WrappedOutputStream- Throws:
IOException
-
handleResponseAsync
protected void handleResponseAsync() throws IOException- Specified by:
handleResponseAsyncin classHTTPConduit.WrappedOutputStream- Throws:
IOException
-
closeInputStream
protected void closeInputStream() throws IOException- Specified by:
closeInputStreamin classHTTPConduit.WrappedOutputStream- Throws:
IOException
-
usingProxy
protected boolean usingProxy()
- Specified by:
usingProxyin classHTTPConduit.WrappedOutputStream
-
getInputStream
protected InputStream getInputStream() throws IOException
- Specified by:
getInputStreamin classHTTPConduit.WrappedOutputStream- Throws:
IOException
-
getPartialResponse
protected InputStream getPartialResponse() throws IOException
- Specified by:
getPartialResponsein classHTTPConduit.WrappedOutputStream- Throws:
IOException
-
setupNewConnection
protected void setupNewConnection(String newURL) throws IOException
- Specified by:
setupNewConnectionin classHTTPConduit.WrappedOutputStream- Throws:
IOException
-
retransmitStream
protected void retransmitStream() throws IOException- Specified by:
retransmitStreamin classHTTPConduit.WrappedOutputStream- Throws:
IOException
-
updateCookiesBeforeRetransmit
protected void updateCookiesBeforeRetransmit() throws IOException- Specified by:
updateCookiesBeforeRetransmitin classHTTPConduit.WrappedOutputStream- Throws:
IOException
-
thresholdReached
public void thresholdReached() throws IOException- Specified by:
thresholdReachedin classAbstractThresholdOutputStream- Throws:
IOException
-
setHttpResponse
protected void setHttpResponse(io.netty.handler.codec.http.HttpResponse r)
-
setException
protected void setException(Throwable ex)
-
setChannel
protected void setChannel(io.netty.channel.Channel ch)
-
-