| 程序包 | 说明 |
|---|---|
| cn.ipokerface.weixin.model.media | |
| cn.ipokerface.weixin.request.http | |
| cn.ipokerface.weixin.request.http.apache | |
| cn.ipokerface.weixin.request.http.entity |
| 限定符和类型 | 方法和说明 |
|---|---|
ContentType |
MediaDownloadResult.getContentType() |
| 构造器和说明 |
|---|
MediaDownloadResult(byte[] content,
ContentType contentType,
String fileName) |
| 限定符和类型 | 字段和说明 |
|---|---|
static ContentType |
ContentType.APPLICATION_FORM_URLENCODED |
static ContentType |
ContentType.APPLICATION_JSON |
static ContentType |
ContentType.DEFAULT_BINARY |
static ContentType |
ContentType.DEFAULT_TEXT |
static ContentType |
ContentType.MULTIPART_FORM_DATA |
| 限定符和类型 | 方法和说明 |
|---|---|
static ContentType |
ContentType.create(MimeType mimeType,
Charset charset) |
static ContentType |
ContentType.create(String mimeType) |
static ContentType |
ContentType.create(String mimeType,
Charset charset) |
static ContentType |
ContentType.create(String mimeType,
NameValue... params)
Creates a new instance of
ContentType with the given parameters. |
static ContentType |
ContentType.create(String mimeType,
String charset) |
ContentType |
ContentType.withParameters(NameValue... params)
Creates a new instance with this MIME type and the given parameters.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
HttpHeaders.setContentType(ContentType contentType)
Set the media type of the body, as specified by
the
Content-Type header. |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
HttpHeaders.setAccept(List<ContentType> acceptableMediaTypes)
Set the list of acceptable , as
specified by the
Accept header. |
static String |
ContentType.toString(List<ContentType> contentTypes) |
| 限定符和类型 | 方法和说明 |
|---|---|
ContentType |
MultipartFormEntity.getContentType() |
ContentType |
AbstractContentBody.getContentType() |
| 限定符和类型 | 方法和说明 |
|---|---|
MultipartEntityBuilder |
MultipartEntityBuilder.addBinaryBody(String name,
byte[] b,
ContentType contentType,
String filename) |
MultipartEntityBuilder |
MultipartEntityBuilder.addBinaryBody(String name,
File file,
ContentType contentType,
String filename) |
MultipartEntityBuilder |
MultipartEntityBuilder.addBinaryBody(String name,
InputStream stream,
ContentType contentType,
String filename) |
MultipartEntityBuilder |
MultipartEntityBuilder.addTextBody(String name,
String text,
ContentType contentType) |
MultipartEntityBuilder |
MultipartEntityBuilder.seContentType(ContentType contentType)
已过时。
(4.5) Use
|
MultipartEntityBuilder |
MultipartEntityBuilder.setContentType(ContentType contentType) |
| 构造器和说明 |
|---|
AbstractContentBody(ContentType contentType) |
ByteArrayBody(byte[] data,
ContentType contentType,
String filename) |
FileBody(File file,
ContentType contentType) |
FileBody(File file,
ContentType contentType,
String filename) |
InputStreamBody(InputStream in,
ContentType contentType) |
InputStreamBody(InputStream in,
ContentType contentType,
String filename) |
StringBody(String text,
ContentType contentType) |
| 限定符和类型 | 方法和说明 |
|---|---|
ContentType |
ByteArrayEntity.getContentType() |
ContentType |
FileEntity.getContentType() |
ContentType |
HttpEntity.getContentType() |
ContentType |
StringEntity.getContentType() |
| 构造器和说明 |
|---|
ByteArrayEntity(byte[] content,
ContentType contentType) |
ByteArrayEntity(byte[] content,
int off,
int len,
ContentType contentType) |
FileEntity(File file,
ContentType contentType) |
StringEntity(String body,
ContentType contentType) |
Copyright © 2019. All rights reserved.