org.apache.cxf.transport.http.asyncclient
Class AsyncHTTPConduit.AsyncWrappedOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by org.apache.cxf.io.AbstractWrappedOutputStream
          extended by org.apache.cxf.io.AbstractThresholdOutputStream
              extended by org.apache.cxf.transport.http.asyncclient.AsyncHTTPConduit.AsyncWrappedOutputStream
All Implemented Interfaces:
Closeable, Flushable, 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, threshold
 
Fields inherited from class org.apache.cxf.io.AbstractWrappedOutputStream
allowFlush, wrappedStream, written
 
Constructor Summary
AsyncHTTPConduit.AsyncWrappedOutputStream(org.apache.cxf.message.Message message, boolean needToCacheRequest, boolean isChunking, int chunkThreshold, String conduitName, URI uri)
           
 
Method Summary
 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 handleNoOutput()
           
protected  void handleResponseAsync()
           
 boolean isOpen()
           
 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(org.apache.cxf.message.Message inMessage)
           
protected  boolean usingProxy()
           
 int write(ByteBuffer src)
           
 
Methods inherited from class org.apache.cxf.io.AbstractThresholdOutputStream
unBuffer, write, write
 
Methods inherited from class org.apache.cxf.io.AbstractWrappedOutputStream
allowFlush, flush, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AsyncHTTPConduit.AsyncWrappedOutputStream

public AsyncHTTPConduit.AsyncWrappedOutputStream(org.apache.cxf.message.Message message,
                                                 boolean needToCacheRequest,
                                                 boolean isChunking,
                                                 int chunkThreshold,
                                                 String conduitName,
                                                 URI uri)
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:
thresholdReached in class org.apache.cxf.io.AbstractThresholdOutputStream
Throws:
IOException

handleNoOutput

protected void handleNoOutput()
                       throws IOException
Throws:
IOException

isOpen

public boolean isOpen()
Specified by:
isOpen in interface Channel

write

public int write(ByteBuffer src)
          throws IOException
Specified by:
write in interface WritableByteChannel
Throws:
IOException

copyFrom

public int copyFrom(InputStream in)
             throws IOException
Specified by:
copyFrom in interface org.apache.cxf.io.CopyingOutputStream
Throws:
IOException

close

public void close()
           throws IOException
Specified by:
close in interface Closeable
Specified by:
close in interface Channel
Throws:
IOException

setupWrappedStream

protected void setupWrappedStream()
                           throws IOException
Throws:
IOException

connect

protected void connect(boolean output)
                throws IOException
Throws:
IOException

retrySetHttpResponse

protected void retrySetHttpResponse(org.apache.http.HttpResponse r)

setHttpResponse

protected void setHttpResponse(org.apache.http.HttpResponse r)

setException

protected void setException(Exception ex)

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

retransmitStream

protected void retransmitStream()
                         throws IOException
Throws:
IOException

setupNewConnection

protected void setupNewConnection(String newURL)
                           throws IOException
Throws:
IOException

setSSLSession

public void setSSLSession(SSLSession sslsession)


Apache CXF