public interface HttpEntityWrapper extends HttpEntity
This interface implements HttpEntity methods by forwarding the calls
to the origin entity.
A subclass needs to implement getOriginEntity()
,
and selectively override some HttpEntity methods.
Abstract Method | |
---|---|
HttpEntity |
getOriginEntity()
The origin entity.
|
Default Methods | |
ByteSource |
body()
Equivalent to
getOriginEntity().body() by default. |
ContentType |
contentType()
Equivalent to
getOriginEntity().contentType() by default. |
Long |
contentLength()
Equivalent to
getOriginEntity().contentLength() by default. |
String |
contentEncoding()
Equivalent to
getOriginEntity().contentEncoding() by default. |
Instant |
lastModified()
Equivalent to
getOriginEntity().lastModified() by default. |
Instant |
expires()
Equivalent to
getOriginEntity().expires() by default. |
String |
etag()
Equivalent to
getOriginEntity().etag() by default. |
boolean |
etagIsWeak()
Equivalent to
getOriginEntity().etagIsWeak() by default. |
bodyBytes, bodyString
HttpEntity getOriginEntity()
default ByteSource body()
getOriginEntity().body()
by default.body
in interface HttpEntity
default ContentType contentType()
getOriginEntity().contentType()
by default.contentType
in interface HttpEntity
default Long contentLength()
getOriginEntity().contentLength()
by default.contentLength
in interface HttpEntity
default String contentEncoding()
getOriginEntity().contentEncoding()
by default.contentEncoding
in interface HttpEntity
default Instant lastModified()
getOriginEntity().lastModified()
by default.lastModified
in interface HttpEntity
default Instant expires()
getOriginEntity().expires()
by default.expires
in interface HttpEntity
default String etag()
getOriginEntity().etag()
by default.etag
in interface HttpEntity
default boolean etagIsWeak()
getOriginEntity().etagIsWeak()
by default.etagIsWeak
in interface HttpEntity