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
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedNettyWrappedOutputStream(org.apache.cxf.message.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 org.apache.cxf.configuration.jsse.TLSClientParametersfindTLSClientParameters()protected io.netty.channel.ChannelgetChannel()protected io.netty.handler.codec.http.HttpResponsegetHttpResponse()protected io.netty.handler.codec.http.HttpContentgetHttpResponseContent()protected org.apache.cxf.transport.https.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(org.apache.cxf.message.Message inMessage)protected booleanusingProxy()-
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- Throws:
IOException
-
handleNoOutput
protected void handleNoOutput() throws IOException- 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
protected void setProtocolHeaders() throws IOException- Throws:
IOException
-
setFixedLengthStreamingMode
protected void setFixedLengthStreamingMode(int i)
-
getResponseCode
protected int getResponseCode() throws IOException- Throws:
IOException
-
getResponseMessage
protected String getResponseMessage() throws IOException
- Throws:
IOException
-
updateResponseHeaders
protected void updateResponseHeaders(org.apache.cxf.message.Message inMessage) throws IOException- Throws:
IOException
-
handleResponseAsync
protected void handleResponseAsync() throws IOException- Throws:
IOException
-
closeInputStream
protected void closeInputStream() throws IOException- Throws:
IOException
-
usingProxy
protected boolean usingProxy()
-
getInputStream
protected InputStream getInputStream() throws IOException
- Throws:
IOException
-
getPartialResponse
protected InputStream getPartialResponse() throws IOException
- Throws:
IOException
-
setupNewConnection
protected void setupNewConnection(String newURL) throws IOException
- Throws:
IOException
-
retransmitStream
protected void retransmitStream() throws IOException- Throws:
IOException
-
updateCookiesBeforeRetransmit
protected void updateCookiesBeforeRetransmit() throws IOException- Throws:
IOException
-
thresholdReached
public void thresholdReached() throws IOException- Specified by:
thresholdReachedin classorg.apache.cxf.io.AbstractThresholdOutputStream- 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)
-
-