public interface HttpEntityContainer
HttpEntity
.Modifier and Type | Method and Description |
---|---|
HttpEntity |
getEntity()
Obtains the message entity, if available.
|
void |
setEntity(HttpEntity entity)
Sets an entity for this message.
|
HttpEntity getEntity()
null
if not availablevoid setEntity(HttpEntity entity)
Please note that if an entity has already been set it is responsibility of the caller to ensure release of the resources that may be associated with that entity.
entity
- the entity to set of this message, or null
to unset