Top Description Methods
org.apache.hc.core5.http

public Interface HttpEntityContainer

Known Direct Subinterfaces
org.apache.hc.core5.http.ClassicHttpRequest, org.apache.hc.core5.http.ClassicHttpResponse

Contains an HttpEntity.
Since
5.0

Method Summary

Modifier and TypeMethod and Description
public HttpEntity

Returns:

the message entity, or null if not available
getEntity
()

Obtains the message entity, if available.

public void
setEntity(HttpEntity
the entity to set of this message, or null to unset
entity
)

Sets an entity for this message.

Method Detail

getEntityback to summary
public HttpEntity getEntity()

Obtains the message entity, if available.

Returns:HttpEntity

the message entity, or null if not available

setEntityback to summary
public void setEntity(HttpEntity entity)

Sets an entity for this message.

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.

Parameters
entity:HttpEntity

the entity to set of this message, or null to unset