public class AsyncHTTPConduit.AsyncWrappedOutputStream extends org.apache.cxf.io.AbstractThresholdOutputStream implements org.apache.cxf.io.CopyingOutputStream, WritableByteChannel
| Constructor and Description |
|---|
AsyncWrappedOutputStream(org.apache.cxf.message.Message message,
boolean needToCacheRequest,
boolean isChunking,
int chunkThreshold,
String conduitName,
URI uri) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
authorizationRetransmit() |
void |
close() |
protected void |
closeInputStream() |
protected void |
connect(boolean output) |
int |
copyFrom(InputStream in) |
org.apache.cxf.io.CachedOutputStream |
getCachedStream() |
protected org.apache.http.HttpResponse |
getHttpResponse() |
protected org.apache.cxf.transport.https.HttpsURLConnectionInfo |
getHttpsURLConnectionInfo() |
protected InputStream |
getInputStream() |
protected InputStream |
getPartialResponse() |
protected int |
getResponseCode() |
protected String |
getResponseMessage() |
protected void |
handleCancelled() |
protected void |
handleNoOutput() |
protected void |
handleResponseAsync() |
boolean |
isOpen() |
protected void |
onFirstWrite() |
boolean |
retransmitable() |
protected void |
retransmitStream() |
protected boolean |
retrySetHttpResponse(org.apache.http.HttpResponse r) |
protected void |
setException(Exception ex) |
protected void |
setFixedLengthStreamingMode(int i) |
protected void |
setHttpResponse(org.apache.http.HttpResponse r) |
protected void |
setProtocolHeaders() |
void |
setSSLSession(SSLSession sslsession) |
protected void |
setupNewConnection(String newURL) |
protected void |
setupWrappedStream() |
void |
thresholdReached() |
protected void |
updateCookiesBeforeRetransmit() |
protected void |
updateResponseHeaders(org.apache.cxf.message.Message inMessage) |
protected boolean |
usingProxy() |
int |
write(ByteBuffer src) |
public boolean retransmitable()
public org.apache.cxf.io.CachedOutputStream getCachedStream()
protected void setProtocolHeaders()
throws IOException
IOExceptionprotected void setFixedLengthStreamingMode(int i)
public void thresholdReached()
throws IOException
thresholdReached in class org.apache.cxf.io.AbstractThresholdOutputStreamIOExceptionprotected void handleNoOutput()
throws IOException
IOExceptionpublic int write(ByteBuffer src) throws IOException
write in interface WritableByteChannelIOExceptionpublic int copyFrom(InputStream in) throws IOException
copyFrom in interface org.apache.cxf.io.CopyingOutputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in interface ChannelIOExceptionprotected void onFirstWrite()
throws IOException
IOExceptionprotected void setupWrappedStream()
throws IOException
IOExceptionprotected void connect(boolean output)
throws IOException
IOExceptionprotected boolean retrySetHttpResponse(org.apache.http.HttpResponse r)
protected void setHttpResponse(org.apache.http.HttpResponse r)
protected void setException(Exception ex)
protected void handleCancelled()
protected org.apache.http.HttpResponse getHttpResponse()
throws IOException
IOExceptionprotected void handleResponseAsync()
throws IOException
IOExceptionprotected void closeInputStream()
throws IOException
IOExceptionprotected InputStream getInputStream() throws IOException
IOExceptionprotected boolean usingProxy()
protected org.apache.cxf.transport.https.HttpsURLConnectionInfo getHttpsURLConnectionInfo()
throws IOException
IOExceptionprotected int getResponseCode()
throws IOException
IOExceptionprotected String getResponseMessage() throws IOException
IOExceptionprotected void updateResponseHeaders(org.apache.cxf.message.Message inMessage)
throws IOException
IOExceptionprotected InputStream getPartialResponse() throws IOException
IOExceptionprotected void updateCookiesBeforeRetransmit()
throws IOException
IOExceptionprotected boolean authorizationRetransmit()
throws IOException
IOExceptionprotected void retransmitStream()
throws IOException
IOExceptionprotected void setupNewConnection(String newURL) throws IOException
IOExceptionpublic void setSSLSession(SSLSession sslsession)
Apache CXF