Class AsyncHTTPConduit.AsyncWrappedOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- org.apache.cxf.io.AbstractWrappedOutputStream
-
- org.apache.cxf.io.AbstractThresholdOutputStream
-
- org.apache.cxf.transport.http.asyncclient.AsyncHTTPConduit.AsyncWrappedOutputStream
-
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable,Channel,WritableByteChannel,org.apache.cxf.io.CopyingOutputStream
- Enclosing class:
- AsyncHTTPConduit
public class AsyncHTTPConduit.AsyncWrappedOutputStream extends org.apache.cxf.io.AbstractThresholdOutputStream implements org.apache.cxf.io.CopyingOutputStream, WritableByteChannel
-
-
Constructor Summary
Constructors Constructor Description AsyncWrappedOutputStream(org.apache.cxf.message.Message message, boolean needToCacheRequest, boolean isChunking, int chunkThreshold, String conduitName, URI uri)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanauthorizationRetransmit()voidclose()protected voidcloseInputStream()protected voidconnect(boolean output)intcopyFrom(InputStream in)org.apache.cxf.io.CachedOutputStreamgetCachedStream()protected org.apache.http.HttpResponsegetHttpResponse()protected org.apache.cxf.transport.https.HttpsURLConnectionInfogetHttpsURLConnectionInfo()protected InputStreamgetInputStream()protected InputStreamgetPartialResponse()protected intgetResponseCode()protected StringgetResponseMessage()protected voidhandleCancelled()protected voidhandleNoOutput()protected voidhandleResponseAsync()booleanisOpen()protected voidonFirstWrite()booleanretransmitable()protected voidretransmitStream()protected booleanretrySetHttpResponse(org.apache.http.HttpResponse r)protected voidsetException(Exception ex)protected voidsetFixedLengthStreamingMode(int i)protected voidsetHttpResponse(org.apache.http.HttpResponse r)protected voidsetProtocolHeaders()voidsetSSLSession(SSLSession sslsession)protected voidsetupNewConnection(String newURL)protected voidsetupWrappedStream()voidthresholdReached()protected voidupdateCookiesBeforeRetransmit()protected voidupdateResponseHeaders(org.apache.cxf.message.Message inMessage)protected booleanusingProxy()intwrite(ByteBuffer src)-
Methods inherited from class java.io.OutputStream
nullOutputStream
-
-
-
-
Method Detail
-
retransmitable
public boolean retransmitable()
-
getCachedStream
public org.apache.cxf.io.CachedOutputStream getCachedStream()
-
setProtocolHeaders
protected void setProtocolHeaders() throws IOException- Throws:
IOException
-
setFixedLengthStreamingMode
protected void setFixedLengthStreamingMode(int i)
-
thresholdReached
public void thresholdReached() throws IOException- Specified by:
thresholdReachedin classorg.apache.cxf.io.AbstractThresholdOutputStream- Throws:
IOException
-
handleNoOutput
protected void handleNoOutput() throws IOException- Throws:
IOException
-
write
public int write(ByteBuffer src) throws IOException
- Specified by:
writein interfaceWritableByteChannel- Throws:
IOException
-
copyFrom
public int copyFrom(InputStream in) throws IOException
- Specified by:
copyFromin interfaceorg.apache.cxf.io.CopyingOutputStream- Throws:
IOException
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceChannel- Specified by:
closein interfaceCloseable- Throws:
IOException
-
onFirstWrite
protected void onFirstWrite() throws IOException- Throws:
IOException
-
setupWrappedStream
protected void setupWrappedStream() throws IOException- Throws:
IOException
-
connect
protected void connect(boolean output) throws IOException- Throws:
IOException
-
retrySetHttpResponse
protected boolean retrySetHttpResponse(org.apache.http.HttpResponse r)
-
setHttpResponse
protected void setHttpResponse(org.apache.http.HttpResponse r)
-
setException
protected void setException(Exception ex)
-
handleCancelled
protected void handleCancelled()
-
getHttpResponse
protected org.apache.http.HttpResponse getHttpResponse() throws IOException- Throws:
IOException
-
handleResponseAsync
protected void handleResponseAsync() throws IOException- Throws:
IOException
-
closeInputStream
protected void closeInputStream() throws IOException- Throws:
IOException
-
getInputStream
protected InputStream getInputStream() throws IOException
- Throws:
IOException
-
usingProxy
protected boolean usingProxy()
-
getHttpsURLConnectionInfo
protected org.apache.cxf.transport.https.HttpsURLConnectionInfo getHttpsURLConnectionInfo() throws IOException- Throws:
IOException
-
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
-
getPartialResponse
protected InputStream getPartialResponse() throws IOException
- Throws:
IOException
-
updateCookiesBeforeRetransmit
protected void updateCookiesBeforeRetransmit() throws IOException- Throws:
IOException
-
authorizationRetransmit
protected boolean authorizationRetransmit() throws IOException- Throws:
IOException
-
retransmitStream
protected void retransmitStream() throws IOException- Throws:
IOException
-
setupNewConnection
protected void setupNewConnection(String newURL) throws IOException
- Throws:
IOException
-
setSSLSession
public void setSSLSession(SSLSession sslsession)
-
-