public class AsyncHTTPConduit.AsyncWrappedOutputStream extends HTTPConduit.WrappedOutputStream implements CopyingOutputStream, WritableByteChannel
cachedStream, cachingForRetransmission, chunking, conduitName, outMessage, urlbuffer, thresholdallowFlush, 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, thresholdNotReachedunBuffer, write, writeallowFlush, flush, writepublic boolean retransmitable()
public CachedOutputStream getCachedStream()
protected void setProtocolHeaders()
throws IOException
setProtocolHeaders in class HTTPConduit.WrappedOutputStreamIOExceptionprotected void setFixedLengthStreamingMode(int i)
setFixedLengthStreamingMode in class HTTPConduit.WrappedOutputStreampublic void thresholdReached()
throws IOException
thresholdReached in class AbstractThresholdOutputStreamIOExceptionprotected void handleNoOutput()
throws IOException
handleNoOutput in class HTTPConduit.WrappedOutputStreamIOExceptionpublic int write(ByteBuffer src) throws IOException
write in interface WritableByteChannelIOExceptionpublic int copyFrom(InputStream in) throws IOException
copyFrom in interface CopyingOutputStreamIOExceptionpublic void close()
throws IOException
HTTPConduit.WrappedOutputStreamclose in interface Closeableclose in interface AutoCloseableclose in interface Channelclose in class HTTPConduit.WrappedOutputStreamIOExceptionprotected void onFirstWrite()
throws IOException
HTTPConduit.WrappedOutputStreamonFirstWrite in class HTTPConduit.WrappedOutputStreamIOExceptionprotected void setupWrappedStream()
throws IOException
setupWrappedStream in class HTTPConduit.WrappedOutputStreamIOExceptionprotected void connect(boolean output)
throws IOException
IOExceptionprotected 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
IOExceptionprotected void handleResponseAsync()
throws IOException
handleResponseAsync in class HTTPConduit.WrappedOutputStreamIOExceptionprotected void closeInputStream()
throws IOException
closeInputStream in class HTTPConduit.WrappedOutputStreamIOExceptionprotected InputStream getInputStream() throws IOException
getInputStream in class HTTPConduit.WrappedOutputStreamIOExceptionprotected boolean usingProxy()
usingProxy in class HTTPConduit.WrappedOutputStreamprotected HttpsURLConnectionInfo getHttpsURLConnectionInfo() throws IOException
getHttpsURLConnectionInfo in class HTTPConduit.WrappedOutputStreamIOExceptionprotected int getResponseCode()
throws IOException
getResponseCode in class HTTPConduit.WrappedOutputStreamIOExceptionprotected String getResponseMessage() throws IOException
getResponseMessage in class HTTPConduit.WrappedOutputStreamIOExceptionprotected void updateResponseHeaders(Message inMessage) throws IOException
updateResponseHeaders in class HTTPConduit.WrappedOutputStreamIOExceptionprotected InputStream getPartialResponse() throws IOException
getPartialResponse in class HTTPConduit.WrappedOutputStreamIOExceptionprotected void updateCookiesBeforeRetransmit()
throws IOException
updateCookiesBeforeRetransmit in class HTTPConduit.WrappedOutputStreamIOExceptionprotected boolean authorizationRetransmit()
throws IOException
HTTPConduit.WrappedOutputStreamauthorizationRetransmit in class HTTPConduit.WrappedOutputStreamIOExceptionprotected void retransmitStream()
throws IOException
retransmitStream in class HTTPConduit.WrappedOutputStreamIOExceptionprotected void setupNewConnection(String newURL) throws IOException
setupNewConnection in class HTTPConduit.WrappedOutputStreamIOExceptionpublic void setSSLSession(SSLSession sslsession)
Apache CXF