| 程序包 | 说明 |
|---|---|
| cn.maarlakes.common.http | |
| cn.maarlakes.common.http.apache |
| 限定符和类型 | 字段和说明 |
|---|---|
static ContentType |
ContentType.ALL |
static ContentType |
ContentType.APPLICATION_ATOM_XML |
static ContentType |
ContentType.APPLICATION_FORM_URLENCODED |
static ContentType |
ContentType.APPLICATION_JSON |
static ContentType |
ContentType.APPLICATION_OCTET_STREAM |
static ContentType |
ContentType.APPLICATION_SVG_XML |
static ContentType |
ContentType.APPLICATION_XHTML_XML |
static ContentType |
ContentType.APPLICATION_XML |
static ContentType |
ContentType.IMAGE_GIF |
static ContentType |
ContentType.IMAGE_JPEG |
static ContentType |
ContentType.IMAGE_PNG |
static ContentType |
ContentType.IMAGE_TIFF |
static ContentType |
ContentType.IMAGE_WEBP |
static ContentType |
ContentType.MULTIPART_FORM_DATA |
static ContentType |
ContentType.TEXT_EVENT_STREAM |
static ContentType |
ContentType.TEXT_HTML |
static ContentType |
ContentType.TEXT_PLAIN |
static ContentType |
ContentType.TEXT_XML |
| 限定符和类型 | 方法和说明 |
|---|---|
static ContentType |
ContentType.create(String mediaType) |
static ContentType |
ContentType.create(String mediaType,
Charset charset) |
static ContentType |
ContentType.create(String mediaType,
Charset charset,
Collection<? extends NameValuePair> parameters) |
static ContentType |
ContentType.create(String mediaType,
Collection<? extends NameValuePair> parameters) |
static ContentType |
ContentType.create(String mediaType,
String charset) |
static ContentType |
ContentType.create(String mediaType,
String charset,
Collection<? extends NameValuePair> parameters) |
ContentType |
Request.Body.getContentType() |
ContentType |
StringBody.getContentType() |
default ContentType |
ContentType.withCharset(Charset charset) |
ContentType |
ContentType.withCharset(String charset) |
ContentType |
ContentType.withParameter(NameValuePair... params) |
default ContentType |
ContentType.withParameter(String name,
String value) |
| 限定符和类型 | 方法和说明 |
|---|---|
static String |
ContentTypes.contentTypeHeadValue(ContentType contentType) |
| 构造器和说明 |
|---|
StringBody(String value,
ContentType contentType) |
StringBody(String value,
ContentType contentType,
Header contentEncoding) |
| 限定符和类型 | 方法和说明 |
|---|---|
static org.apache.http.entity.ContentType |
ApacheHttpClient4.toApacheContentType(ContentType contentType) |
Copyright © 2024. All rights reserved.