Deprecated
(4.3) do not use.
HttpEntityEnclosingRequests that can
be used to change properties of the current request without
modifying the original object.
This class is also capable of resetting the request headers to the state of the original request.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv class |
| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private HttpEntity |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | expectContinue()
Implements org. |
| public HttpEntity | getEntity()
Implements org. |
| public boolean | |
| public void | setEntity(final HttpEntity
the entity to send. entity)Implements org. |
| consumed | back to summary |
|---|---|
| private boolean consumed | |
| entity | back to summary |
|---|---|
| private HttpEntity entity | |
| EntityEnclosingRequestWrapper | back to summary |
|---|---|
| public EntityEnclosingRequestWrapper(final HttpEntityEnclosingRequest request) throws ProtocolException | |
| expectContinue | back to summary |
|---|---|
| public boolean expectContinue() Implements org. Doc from org. Tells if this request should use the expect-continue handshake. The expect continue handshake gives the server a chance to decide whether to accept the entity enclosing request before the possibly lengthy entity is sent across the wire.
| |
| getEntity | back to summary |
|---|---|
| public HttpEntity getEntity() Implements org. Doc from org. Returns the entity associated with this request.
| |
| isRepeatable | back to summary |
|---|---|
| public boolean isRepeatable() Overrides org.
| |
| setEntity | back to summary |
|---|---|
| public void setEntity(final HttpEntity entity) Implements org. Doc from org. Associates the entity with this request.
| |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | consumeContent()
Overrides org. Implements org. |
| public InputStream | getContent()
Overrides org. Implements org. |
| public void | writeTo(final OutputStream
the output stream to write entity content to outStream)Overrides org. Implements org. |
| EntityWrapper | back to summary |
|---|---|
| pack-priv EntityWrapper(final HttpEntity entity) | |
| consumeContent | back to summary |
|---|---|
| public void consumeContent() throws IOException Overrides org. Implements org. Doc from org. This method is deprecated since version 4.1. Please use standard
java convention to ensure resource deallocation by calling
This method is called to indicate that the content of this entity is no longer required. All entity implementations are expected to release all allocated resources as a result of this method invocation. Content streaming entities are also expected to dispose of the remaining content, if any. Wrapping entities should delegate this call to the wrapped entity.
This method is of particular importance for entities being
received from a
| |
| getContent | back to summary |
|---|---|
| public InputStream getContent() throws IOException Overrides org. Implements org. Doc from org. Returns a content stream of the entity.
Important Note Please note all entity implementations must ensure that
all allocated resources are properly deallocated after
the
| |
| writeTo | back to summary |
|---|---|
| public void writeTo(final OutputStream outStream) throws IOException Overrides org. Implements org. Doc from org. Writes the entity content out to the output stream. Important Note Please note all entity implementations must ensure that all allocated resources are properly deallocated when this method returns.
| |