Build m5-rc15

org.apache.http.conn
Class BasicManagedEntity

java.lang.Object
  extended by org.apache.http.entity.HttpEntityWrapper
      extended by org.apache.http.conn.BasicManagedEntity
All Implemented Interfaces:
ConnectionReleaseTrigger, EofSensorWatcher, HttpEntity

public class BasicManagedEntity
extends HttpEntityWrapper
implements HttpEntity, ConnectionReleaseTrigger, EofSensorWatcher


Field Summary
protected  boolean attemptReuse
           
protected  ManagedClientConnection managedConn
           
 
Fields inherited from class org.apache.http.entity.HttpEntityWrapper
wrappedEntity
 
Constructor Summary
BasicManagedEntity(HttpEntity entity, ManagedClientConnection conn, boolean reuse)
           
 
Method Summary
 void abortConnection()
           
 void consumeContent()
           
 boolean eofDetected(InputStream wrapped)
           
 InputStream getContent()
           
 boolean isRepeatable()
           
 void releaseConnection()
           
protected  void releaseManagedConnection()
           
 boolean streamAbort(InputStream wrapped)
           
 boolean streamClosed(InputStream wrapped)
           
 
Methods inherited from class org.apache.http.entity.HttpEntityWrapper
getContentEncoding, getContentLength, getContentType, isChunked, isStreaming, writeTo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.http.HttpEntity
getContentEncoding, getContentLength, getContentType, isChunked, isStreaming, writeTo
 

Field Detail

managedConn

protected ManagedClientConnection managedConn

attemptReuse

protected boolean attemptReuse
Constructor Detail

BasicManagedEntity

public BasicManagedEntity(HttpEntity entity,
                          ManagedClientConnection conn,
                          boolean reuse)
Method Detail

isRepeatable

public boolean isRepeatable()
Specified by:
isRepeatable in interface HttpEntity
Overrides:
isRepeatable in class HttpEntityWrapper

getContent

public InputStream getContent()
                       throws IOException
Specified by:
getContent in interface HttpEntity
Overrides:
getContent in class HttpEntityWrapper
Throws:
IOException

consumeContent

public void consumeContent()
                    throws IOException
Specified by:
consumeContent in interface HttpEntity
Overrides:
consumeContent in class HttpEntityWrapper
Throws:
IOException

releaseConnection

public void releaseConnection()
                       throws IOException
Specified by:
releaseConnection in interface ConnectionReleaseTrigger
Throws:
IOException

abortConnection

public void abortConnection()
                     throws IOException
Specified by:
abortConnection in interface ConnectionReleaseTrigger
Throws:
IOException

eofDetected

public boolean eofDetected(InputStream wrapped)
                    throws IOException
Specified by:
eofDetected in interface EofSensorWatcher
Throws:
IOException

streamClosed

public boolean streamClosed(InputStream wrapped)
                     throws IOException
Specified by:
streamClosed in interface EofSensorWatcher
Throws:
IOException

streamAbort

public boolean streamAbort(InputStream wrapped)
                    throws IOException
Specified by:
streamAbort in interface EofSensorWatcher
Throws:
IOException

releaseManagedConnection

protected void releaseManagedConnection()
                                 throws IOException
Throws:
IOException

Build m5-rc15

Please submit a feedback, bug or feature