public final class BasicEntityDetails extends Object implements EntityDetails
| Constructor and Description |
|---|
BasicEntityDetails(long len,
ContentType contentType) |
| Modifier and Type | Method and Description |
|---|---|
String |
getContentEncoding()
Gets content encoding of this entity, if known.
|
long |
getContentLength()
Gets length of this entity, if known.
|
String |
getContentType()
Gets content type of this entity, if known.
|
Set<String> |
getTrailerNames()
Gets the preliminary declaration of trailing headers.
|
boolean |
isChunked()
Tests the chunked transfer hint for this entity.
|
public BasicEntityDetails(long len,
ContentType contentType)
public long getContentLength()
EntityDetailsgetContentLength in interface EntityDetails0.public String getContentType()
EntityDetailsgetContentType in interface EntityDetailsnull.public String getContentEncoding()
EntityDetailsgetContentEncoding in interface EntityDetailsnull.public boolean isChunked()
EntityDetailsThe behavior of wrapping entities is implementation dependent, but should respect the primary purpose.
isChunked in interface EntityDetailspublic Set<String> getTrailerNames()
EntityDetailsgetTrailerNames in interface EntityDetailsCopyright © 2005–2021 The Apache Software Foundation. All rights reserved.