| 程序包 | 说明 |
|---|---|
| org.apache.hc.client5.http.classic.methods |
Common HTTP methods and message handlers for the classic I/O model.
|
| org.apache.hc.client5.http.entity |
Client specific HTTP entity implementations.
|
| org.apache.hc.client5.http.entity.mime |
MIME coded HTTP entity implementations.
|
| org.apache.hc.client5.http.impl.classic |
Classic HTTP client API implementation that supports HTTP/1.1 transport
only.
|
| org.apache.hc.core5.http |
Core HTTP transport component APIs.
|
| org.apache.hc.core5.http.io.entity |
HTTP message entity APIs based on the classic (blocking) I/O model.
|
| org.apache.hc.core5.http.io.support |
Support classes for the classic (blocking) I/O model.
|
| org.apache.hc.core5.http.message |
Core HTTP message components, message element parser
and writer APIs and their default implementations.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
HttpTrace.setEntity(HttpEntity entity) |
| 限定符和类型 | 类和说明 |
|---|---|
class |
BrotliDecompressingEntity
HttpEntityWrapper responsible for
handling br Content Coded responses. |
class |
DecompressingEntity
Common base class for decompressing
HttpEntity implementations. |
class |
DeflateDecompressingEntity
HttpEntityWrapper responsible for
handling deflate Content Coded responses. |
class |
GzipCompressingEntity
Wrapping entity that compresses content when
writing. |
class |
GzipDecompressingEntity
HttpEntityWrapper for handling
gzip Content Coded responses. |
class |
UrlEncodedFormEntity
An entity composed of a list of url-encoded pairs.
|
| 限定符和类型 | 方法和说明 |
|---|---|
HttpEntity |
EntityBuilder.build()
Builds a new instance of
HttpEntity based on the current state. |
| 构造器和说明 |
|---|
BrotliDecompressingEntity(HttpEntity entity)
Creates a new
DecompressingEntity. |
DecompressingEntity(HttpEntity wrapped,
InputStreamFactory inputStreamFactory)
Constructs a new
DecompressingEntity. |
DeflateDecompressingEntity(HttpEntity entity)
Creates a new
DeflateDecompressingEntity which will wrap the specified
HttpEntity. |
GzipCompressingEntity(HttpEntity entity) |
GzipDecompressingEntity(HttpEntity entity)
Creates a new
GzipDecompressingEntity which will wrap the
specified HttpEntity. |
| 限定符和类型 | 方法和说明 |
|---|---|
HttpEntity |
MultipartEntityBuilder.build() |
| 限定符和类型 | 方法和说明 |
|---|---|
HttpEntity |
CloseableHttpResponse.getEntity() |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
BasicHttpClientResponseHandler.handleEntity(HttpEntity entity)
Returns the entity as a body as a String.
|
abstract T |
AbstractHttpClientResponseHandler.handleEntity(HttpEntity entity)
Handle the response entity and transform it into the actual response
object.
|
void |
CloseableHttpResponse.setEntity(HttpEntity entity) |
| 限定符和类型 | 方法和说明 |
|---|---|
HttpEntity |
HttpEntityContainer.getEntity()
Obtains the message entity, if available.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
HttpEntityContainer.setEntity(HttpEntity entity)
Sets an entity for this message.
|
| 限定符和类型 | 类和说明 |
|---|---|
class |
AbstractHttpEntity
Abstract base class for mutable entities.
|
class |
BasicHttpEntity
A generic streamed, non-repeatable entity that obtains its content from an
InputStream. |
class |
BufferedHttpEntity
A wrapping entity that buffers it content if necessary.
|
class |
ByteArrayEntity
A self contained, repeatable entity that obtains its content from a byte array.
|
class |
ByteBufferEntity
An entity that delivers the contents of a
ByteBuffer. |
class |
EntityTemplate
Entity that delegates the process of content generation to a
IOCallback
with OutputStream as output sink. |
class |
FileEntity
A self contained, repeatable entity that obtains its content from a file.
|
class |
HttpEntityWrapper
Base class for wrapping entities that delegates all calls to the wrapped entity.
|
class |
InputStreamEntity
A streamed, non-repeatable entity that obtains its content from an
InputStream. |
class |
NullEntity
An empty entity with no content-type.
|
class |
PathEntity
A self contained, repeatable entity that obtains its content from a path.
|
class |
SerializableEntity
A streamed entity that obtains its content from a
Serializable. |
class |
StringEntity
A self contained, repeatable entity that obtains its content from a
String. |
| 限定符和类型 | 方法和说明 |
|---|---|
static HttpEntity |
HttpEntities.create(byte[] content,
ContentType contentType) |
static HttpEntity |
HttpEntities.create(byte[] content,
ContentType contentType,
Header... trailers) |
static HttpEntity |
HttpEntities.create(File content,
ContentType contentType) |
static HttpEntity |
HttpEntities.create(File content,
ContentType contentType,
Header... trailers) |
static HttpEntity |
HttpEntities.create(IOCallback<OutputStream> callback,
ContentType contentType) |
static HttpEntity |
HttpEntities.create(IOCallback<OutputStream> callback,
ContentType contentType,
Header... trailers) |
static HttpEntity |
HttpEntities.create(Path content,
ContentType contentType) |
static HttpEntity |
HttpEntities.create(Path content,
ContentType contentType,
Header... trailers) |
static HttpEntity |
HttpEntities.create(Serializable serializable,
ContentType contentType) |
static HttpEntity |
HttpEntities.create(Serializable serializable,
ContentType contentType,
Header... trailers) |
static HttpEntity |
HttpEntities.create(String content) |
static HttpEntity |
HttpEntities.create(String content,
Charset charset) |
static HttpEntity |
HttpEntities.create(String content,
Charset charset,
Header... trailers) |
static HttpEntity |
HttpEntities.create(String content,
ContentType contentType) |
static HttpEntity |
HttpEntities.create(String content,
ContentType contentType,
Header... trailers) |
static HttpEntity |
HttpEntities.create(String content,
Header... trailers) |
static HttpEntity |
HttpEntities.createGzipped(byte[] content,
ContentType contentType) |
static HttpEntity |
HttpEntities.createGzipped(File content,
ContentType contentType) |
static HttpEntity |
HttpEntities.createGzipped(IOCallback<OutputStream> callback,
ContentType contentType) |
static HttpEntity |
HttpEntities.createGzipped(Path content,
ContentType contentType) |
static HttpEntity |
HttpEntities.createGzipped(Serializable serializable,
ContentType contentType) |
static HttpEntity |
HttpEntities.createGzipped(String content) |
static HttpEntity |
HttpEntities.createGzipped(String content,
Charset charset) |
static HttpEntity |
HttpEntities.createGzipped(String content,
ContentType contentType) |
static HttpEntity |
HttpEntities.createUrlEncoded(Iterable<? extends NameValuePair> parameters,
Charset charset) |
static HttpEntity |
HttpEntities.gzip(HttpEntity entity) |
static HttpEntity |
HttpEntities.withTrailers(HttpEntity entity,
Header... trailers) |
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
EntityUtils.consume(HttpEntity entity)
Ensures that the entity content is fully consumed and the content stream, if exists,
is closed.
|
static void |
EntityUtils.consumeQuietly(HttpEntity entity)
Ensures that the entity content is fully consumed and the content stream, if exists,
is closed.
|
static HttpEntity |
HttpEntities.gzip(HttpEntity entity) |
static List<NameValuePair> |
EntityUtils.parse(HttpEntity entity)
Returns a list of
NameValuePairs as parsed from an HttpEntity. |
static List<NameValuePair> |
EntityUtils.parse(HttpEntity entity,
int maxStreamLength)
Returns a list of
NameValuePairs as parsed from an HttpEntity. |
static byte[] |
EntityUtils.toByteArray(HttpEntity entity)
Reads the contents of an entity and return it as a byte array.
|
static byte[] |
EntityUtils.toByteArray(HttpEntity entity,
int maxResultLength)
Reads the contents of an entity and return it as a byte array.
|
static String |
EntityUtils.toString(HttpEntity entity)
Reads the contents of an entity and return it as a String.
|
static String |
EntityUtils.toString(HttpEntity entity,
Charset defaultCharset)
Gets the entity content as a String, using the provided default character set
if none is found in the entity.
|
static String |
EntityUtils.toString(HttpEntity entity,
Charset defaultCharset,
int maxResultLength)
Gets the entity content as a String, using the provided default character set
if none is found in the entity.
|
static String |
EntityUtils.toString(HttpEntity entity,
int maxResultLength)
Reads the contents of an entity and return it as a String.
|
static String |
EntityUtils.toString(HttpEntity entity,
String defaultCharset)
Gets the entity content as a String, using the provided default character set
if none is found in the entity.
|
static String |
EntityUtils.toString(HttpEntity entity,
String defaultCharset,
int maxResultLength)
Gets the entity content as a String, using the provided default character set
if none is found in the entity.
|
static HttpEntity |
HttpEntities.withTrailers(HttpEntity entity,
Header... trailers) |
static void |
AbstractHttpEntity.writeTo(HttpEntity entity,
OutputStream outStream) |
| 构造器和说明 |
|---|
BufferedHttpEntity(HttpEntity entity)
Creates a new buffered entity wrapper.
|
HttpEntityWrapper(HttpEntity wrappedEntity)
Creates a new entity wrapper.
|
| 限定符和类型 | 方法和说明 |
|---|---|
protected HttpEntity |
AbstractHttpServerAuthFilter.generateResponseContent(HttpResponse unauthorized)
Generates response body for UNAUTHORIZED response.
|
protected HttpEntity |
HttpServerExpectationFilter.generateResponseContent(HttpResponse expectationFailed)
Generates response content entity for the final HTTP response with an error status
representing the cause of expectation failure.
|
HttpEntity |
ClassicRequestBuilder.getEntity() |
HttpEntity |
ClassicResponseBuilder.getEntity() |
| 限定符和类型 | 方法和说明 |
|---|---|
ClassicRequestBuilder |
ClassicRequestBuilder.setEntity(HttpEntity entity) |
ClassicResponseBuilder |
ClassicResponseBuilder.setEntity(HttpEntity entity) |
| 限定符和类型 | 方法和说明 |
|---|---|
HttpEntity |
BasicClassicHttpResponse.getEntity() |
HttpEntity |
BasicClassicHttpRequest.getEntity() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
BasicClassicHttpResponse.setEntity(HttpEntity entity) |
void |
BasicClassicHttpRequest.setEntity(HttpEntity entity) |
Copyright © 2023. All rights reserved.