public class AsyncHTTPConduit.AsyncWrappedOutputStream extends HTTPConduit.WrappedOutputStream implements CopyingOutputStream, WritableByteChannel
cachedStream, cachingForRetransmission, chunking, conduitName, outMessage, url
buffer, threshold
allowFlush, wrappedStream, written
Constructor and Description |
---|
AsyncHTTPConduit.AsyncWrappedOutputStream(Message message,
boolean needToCacheRequest,
boolean isChunking,
int chunkThreshold,
String conduitName,
URI uri) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
authorizationRetransmit()
This method performs a retransmit for authorization information.
|
void |
close()
Perform any actions required on stream closure (handle response etc.)
|
protected void |
closeInputStream() |
protected void |
connect(boolean output) |
int |
copyFrom(InputStream in) |
CachedOutputStream |
getCachedStream() |
protected org.apache.http.HttpResponse |
getHttpResponse() |
protected HttpsURLConnectionInfo |
getHttpsURLConnectionInfo() |
protected InputStream |
getInputStream() |
protected InputStream |
getPartialResponse() |
protected int |
getResponseCode() |
protected String |
getResponseMessage() |
protected void |
handleNoOutput() |
protected void |
handleResponseAsync() |
boolean |
isOpen() |
protected void |
onFirstWrite()
Perform any actions required on stream flush (freeze headers,
reset output stream ...
|
boolean |
retransmitable() |
protected void |
retransmitStream() |
protected void |
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(Message inMessage) |
protected boolean |
usingProxy() |
int |
write(ByteBuffer src) |
getMethod, handleHeadersTrustCaching, handleHttpRetryException, handleResponse, handleResponseInternal, handleResponseOnWorkqueue, handleRetransmits, makeTrustDecision, processRetransmit, propagateConduit, redirectRetransmit, retransmit, thresholdNotReached
unBuffer, write, write
allowFlush, flush, write
public boolean retransmitable()
public CachedOutputStream getCachedStream()
protected void setProtocolHeaders() throws IOException
setProtocolHeaders
in class HTTPConduit.WrappedOutputStream
IOException
protected void setFixedLengthStreamingMode(int i)
setFixedLengthStreamingMode
in class HTTPConduit.WrappedOutputStream
public void thresholdReached() throws IOException
thresholdReached
in class AbstractThresholdOutputStream
IOException
protected void handleNoOutput() throws IOException
handleNoOutput
in class HTTPConduit.WrappedOutputStream
IOException
public int write(ByteBuffer src) throws IOException
write
in interface WritableByteChannel
IOException
public int copyFrom(InputStream in) throws IOException
copyFrom
in interface CopyingOutputStream
IOException
public void close() throws IOException
HTTPConduit.WrappedOutputStream
close
in interface Closeable
close
in interface AutoCloseable
close
in interface Channel
close
in class HTTPConduit.WrappedOutputStream
IOException
protected void onFirstWrite() throws IOException
HTTPConduit.WrappedOutputStream
onFirstWrite
in class HTTPConduit.WrappedOutputStream
IOException
protected void setupWrappedStream() throws IOException
setupWrappedStream
in class HTTPConduit.WrappedOutputStream
IOException
protected void connect(boolean output) throws IOException
IOException
protected void retrySetHttpResponse(org.apache.http.HttpResponse r)
protected void setHttpResponse(org.apache.http.HttpResponse r)
protected void setException(Exception ex)
protected org.apache.http.HttpResponse getHttpResponse() throws IOException
IOException
protected void handleResponseAsync() throws IOException
handleResponseAsync
in class HTTPConduit.WrappedOutputStream
IOException
protected void closeInputStream() throws IOException
closeInputStream
in class HTTPConduit.WrappedOutputStream
IOException
protected InputStream getInputStream() throws IOException
getInputStream
in class HTTPConduit.WrappedOutputStream
IOException
protected boolean usingProxy()
usingProxy
in class HTTPConduit.WrappedOutputStream
protected HttpsURLConnectionInfo getHttpsURLConnectionInfo() throws IOException
getHttpsURLConnectionInfo
in class HTTPConduit.WrappedOutputStream
IOException
protected int getResponseCode() throws IOException
getResponseCode
in class HTTPConduit.WrappedOutputStream
IOException
protected String getResponseMessage() throws IOException
getResponseMessage
in class HTTPConduit.WrappedOutputStream
IOException
protected void updateResponseHeaders(Message inMessage) throws IOException
updateResponseHeaders
in class HTTPConduit.WrappedOutputStream
IOException
protected InputStream getPartialResponse() throws IOException
getPartialResponse
in class HTTPConduit.WrappedOutputStream
IOException
protected void updateCookiesBeforeRetransmit() throws IOException
updateCookiesBeforeRetransmit
in class HTTPConduit.WrappedOutputStream
IOException
protected boolean authorizationRetransmit() throws IOException
HTTPConduit.WrappedOutputStream
authorizationRetransmit
in class HTTPConduit.WrappedOutputStream
IOException
protected void retransmitStream() throws IOException
retransmitStream
in class HTTPConduit.WrappedOutputStream
IOException
protected void setupNewConnection(String newURL) throws IOException
setupNewConnection
in class HTTPConduit.WrappedOutputStream
IOException
public void setSSLSession(SSLSession sslsession)
Apache CXF