Top Description Fields Constructors Methods
org.apache.hc.core5.http.impl

public Class IncomingEntityDetails

extends Object
implements EntityDetails
Class Inheritance
All Implemented Interfaces
org.apache.hc.core5.http.EntityDetails
Annotations
@Internal
Imports
java.util.Collections, .Set, org.apache.hc.core5.annotation.Internal, org.apache.hc.core5.http.EntityDetails, .Header, .HttpHeaders, .MessageHeaders, org.apache.hc.core5.http.message.MessageSupport, org.apache.hc.core5.util.Args

HTTP message entity details.
Since
5.0

Field Summary

Modifier and TypeField and Description
private final long
private final MessageHeaders

Constructor Summary

AccessConstructor and Description
public
IncomingEntityDetails(final MessageHeaders message, final long contentLength)

public

Method Summary

Modifier and TypeMethod and Description
public String
getContentEncoding()

Implements org.apache.hc.core5.http.EntityDetails.getContentEncoding.

Returns content encoding of the entity, if known.
public long
getContentLength()

Implements org.apache.hc.core5.http.EntityDetails.getContentLength.

Returns length of the entity, if known.
public String
getContentType()

Implements org.apache.hc.core5.http.EntityDetails.getContentType.

Returns content type of the entity, if known.
public Set<String>
getTrailerNames()

Implements org.apache.hc.core5.http.EntityDetails.getTrailerNames.

Preliminary declaration of trailing headers.
public boolean
isChunked()

Implements org.apache.hc.core5.http.EntityDetails.isChunked.

Returns chunked transfer hint for this entity.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

contentLengthback to summary
private final long contentLength
messageback to summary
private final MessageHeaders message

Constructor Detail

IncomingEntityDetailsback to summary
public IncomingEntityDetails(final MessageHeaders message, final long contentLength)
IncomingEntityDetailsback to summary
public IncomingEntityDetails(final MessageHeaders message)

Method Detail

getContentEncodingback to summary
public String getContentEncoding()

Implements org.apache.hc.core5.http.EntityDetails.getContentEncoding.

Doc from org.apache.hc.core5.http.EntityDetails.getContentEncoding.

Returns content encoding of the entity, if known.

Annotations
@Override
getContentLengthback to summary
public long getContentLength()

Implements org.apache.hc.core5.http.EntityDetails.getContentLength.

Doc from org.apache.hc.core5.http.EntityDetails.getContentLength.

Returns length of the entity, if known.

Annotations
@Override
getContentTypeback to summary
public String getContentType()

Implements org.apache.hc.core5.http.EntityDetails.getContentType.

Doc from org.apache.hc.core5.http.EntityDetails.getContentType.

Returns content type of the entity, if known.

Annotations
@Override
getTrailerNamesback to summary
public Set<String> getTrailerNames()

Implements org.apache.hc.core5.http.EntityDetails.getTrailerNames.

Doc from org.apache.hc.core5.http.EntityDetails.getTrailerNames.

Preliminary declaration of trailing headers.

Annotations
@Override
isChunkedback to summary
public boolean isChunked()

Implements org.apache.hc.core5.http.EntityDetails.isChunked.

Doc from org.apache.hc.core5.http.EntityDetails.isChunked.

Returns chunked transfer hint for this entity.

The behavior of wrapping entities is implementation dependent, but should respect the primary purpose.

Annotations
@Override