org.apache.http.conn
Class BasicManagedEntity
java.lang.Object
org.apache.http.entity.HttpEntityWrapper
org.apache.http.conn.BasicManagedEntity
- All Implemented Interfaces:
- ConnectionReleaseTrigger, EofSensorWatcher, HttpEntity
public class BasicManagedEntity
- extends HttpEntityWrapper
- implements HttpEntity, ConnectionReleaseTrigger, EofSensorWatcher
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
managedConn
protected ManagedClientConnection managedConn
attemptReuse
protected boolean attemptReuse
BasicManagedEntity
public BasicManagedEntity(HttpEntity entity,
ManagedClientConnection conn,
boolean reuse)
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
Please submit a feedback, bug or feature