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()
EntityDetails
getContentLength
in interface EntityDetails
0
.public String getContentType()
EntityDetails
getContentType
in interface EntityDetails
null
.public String getContentEncoding()
EntityDetails
getContentEncoding
in interface EntityDetails
null
.public boolean isChunked()
EntityDetails
The behavior of wrapping entities is implementation dependent, but should respect the primary purpose.
isChunked
in interface EntityDetails
public Set<String> getTrailerNames()
EntityDetails
getTrailerNames
in interface EntityDetails
Copyright © 2005–2021 The Apache Software Foundation. All rights reserved.