public final class BasicEntityDetails extends Object implements EntityDetails
| 构造器和说明 |
|---|
BasicEntityDetails(long len,
ContentType contentType) |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getContentEncoding()
Returns content encoding of the entity, if known.
|
long |
getContentLength()
Returns length of the entity, if known.
|
String |
getContentType()
Returns content type of the entity, if known.
|
Set<String> |
getTrailerNames()
Preliminary declaration of trailing headers.
|
boolean |
isChunked()
Returns chunked transfer hint for this entity.
|
public BasicEntityDetails(long len,
ContentType contentType)
public long getContentLength()
EntityDetailsgetContentLength 在接口中 EntityDetailspublic String getContentType()
EntityDetailsgetContentType 在接口中 EntityDetailspublic String getContentEncoding()
EntityDetailsgetContentEncoding 在接口中 EntityDetailspublic boolean isChunked()
EntityDetailsThe behavior of wrapping entities is implementation dependent, but should respect the primary purpose.
isChunked 在接口中 EntityDetailspublic Set<String> getTrailerNames()
EntityDetailsgetTrailerNames 在接口中 EntityDetailsCopyright © 2023. All rights reserved.