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
-
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
ConstructorsConstructorDescriptionAsyncWrappedOutputStream(org.apache.cxf.message.Message message, boolean needToCacheRequest, boolean isChunking, int chunkThreshold, String conduitName, URI uri) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanvoidclose()protected voidprotected voidconnect(boolean output) intcopyFrom(InputStream in) org.apache.cxf.io.CachedOutputStreamprotected org.apache.http.HttpResponseprotected org.apache.cxf.transport.https.HttpsURLConnectionInfoprotected InputStreamprotected InputStreamprotected intprotected Stringprotected voidprotected voidprotected voidbooleanisOpen()protected voidbooleanprotected voidprotected booleanretrySetHttpResponse(org.apache.http.HttpResponse r) protected voidprotected voidsetFixedLengthStreamingMode(int i) protected voidsetHttpResponse(org.apache.http.HttpResponse r) protected voidvoidsetSSLSession(SSLSession sslsession) protected voidsetupNewConnection(String newURL) protected voidvoidprotected voidprotected voidupdateResponseHeaders(org.apache.cxf.message.Message inMessage) protected booleanintwrite(ByteBuffer src) Methods 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
-
AsyncWrappedOutputStream
-
-
Method Details
-
retransmitable
public boolean retransmitable() -
getCachedStream
public org.apache.cxf.io.CachedOutputStream getCachedStream() -
setProtocolHeaders
- Throws:
IOException
-
setFixedLengthStreamingMode
protected void setFixedLengthStreamingMode(int i) -
thresholdReached
- Specified by:
thresholdReachedin classorg.apache.cxf.io.AbstractThresholdOutputStream- Throws:
IOException
-
handleNoOutput
- Throws:
IOException
-
isOpen
public boolean isOpen() -
write
- Specified by:
writein interfaceWritableByteChannel- Throws:
IOException
-
copyFrom
- Specified by:
copyFromin interfaceorg.apache.cxf.io.CopyingOutputStream- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceChannel- Specified by:
closein interfaceCloseable- Throws:
IOException
-
onFirstWrite
- Throws:
IOException
-
setupWrappedStream
- Throws:
IOException
-
connect
- Throws:
IOException
-
retrySetHttpResponse
protected boolean retrySetHttpResponse(org.apache.http.HttpResponse r) -
setHttpResponse
protected void setHttpResponse(org.apache.http.HttpResponse r) -
setException
-
handleCancelled
protected void handleCancelled() -
getHttpResponse
- Throws:
IOException
-
handleResponseAsync
- Throws:
IOException
-
closeInputStream
- Throws:
IOException
-
getInputStream
- Throws:
IOException
-
usingProxy
protected boolean usingProxy() -
getHttpsURLConnectionInfo
protected org.apache.cxf.transport.https.HttpsURLConnectionInfo getHttpsURLConnectionInfo() throws IOException- Throws:
IOException
-
getResponseCode
- Throws:
IOException
-
getResponseMessage
- Throws:
IOException
-
updateResponseHeaders
- Throws:
IOException
-
getPartialResponse
- Throws:
IOException
-
updateCookiesBeforeRetransmit
- Throws:
IOException
-
authorizationRetransmit
- Throws:
IOException
-
retransmitStream
- Throws:
IOException
-
setupNewConnection
- Throws:
IOException
-
setSSLSession
-