org.apache.http.entity
public class: HttpEntityWrapper [javadoc |
source]
java.lang.Object
org.apache.http.entity.HttpEntityWrapper
All Implemented Interfaces:
HttpEntity
Direct Known Subclasses:
BufferedHttpEntity, GzipDecompressingEntity, GzipCompressingEntity, ConsumingNHttpEntityTemplate, NHttpEntityWrapper, BufferingNHttpEntity
Base class for wrapping entities.
Keeps a
wrappedEntity and delegates all
calls to it. Implementations of wrapping entities can derive
from this class and need to override only those methods that
should not be delegated to the wrapped entity.
- version:
$ - Revision: 496070 $
- since:
4.0 -
| Field Summary |
|---|
| protected HttpEntity | wrappedEntity | The wrapped entity. |
| Constructor: |
public HttpEntityWrapper(HttpEntity wrapped) {
super();
if (wrapped == null) {
throw new IllegalArgumentException
("wrapped entity must not be null");
}
wrappedEntity = wrapped;
}
Creates a new entity wrapper. Parameters:
wrapped - the entity to wrap
|
| Methods from java.lang.Object: |
|---|
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |