Uses of Class
com.foxinmy.weixin4j.http.ContentType
-
-
Uses of ContentType in com.foxinmy.weixin4j.http
Fields in com.foxinmy.weixin4j.http declared as ContentType Modifier and Type Field Description 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
Methods in com.foxinmy.weixin4j.http that return ContentType Modifier and Type Method Description static ContentType
ContentType. create(MimeType mimeType, Charset charset)
static ContentType
ContentType. create(String mimeType)
static ContentType
ContentType. create(String mimeType, NameValue... params)
Creates a new instance ofContentType
with the given parameters.static ContentType
ContentType. create(String mimeType, String charset)
static ContentType
ContentType. create(String mimeType, Charset charset)
ContentType
ContentType. withParameters(NameValue... params)
Creates a new instance with this MIME type and the given parameters.Methods in com.foxinmy.weixin4j.http with parameters of type ContentType Modifier and Type Method Description void
HttpHeaders. setContentType(ContentType contentType)
Set the media type of the body, as specified by theContent-Type
header.Method parameters in com.foxinmy.weixin4j.http with type arguments of type ContentType Modifier and Type Method Description void
HttpHeaders. setAccept(List<ContentType> acceptableMediaTypes)
Set the list of acceptable media types, as specified by theAccept
header.static String
ContentType. toString(List<ContentType> contentTypes)
-
Uses of ContentType in com.foxinmy.weixin4j.http.apache.content
Methods in com.foxinmy.weixin4j.http.apache.content that return ContentType Modifier and Type Method Description ContentType
AbstractContentBody. getContentType()
Constructors in com.foxinmy.weixin4j.http.apache.content with parameters of type ContentType Constructor Description 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)
-
Uses of ContentType in com.foxinmy.weixin4j.http.apache.mime
Methods in com.foxinmy.weixin4j.http.apache.mime that return ContentType Modifier and Type Method Description ContentType
MultipartEntity. getContentType()
Methods in com.foxinmy.weixin4j.http.apache.mime with parameters of type ContentType Modifier and Type Method Description 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)
Deprecated.(4.5) Use#setContentType(org.apache.http.entity.ContentType)
.MultipartEntityBuilder
MultipartEntityBuilder. setContentType(ContentType contentType)
-
Uses of ContentType in com.foxinmy.weixin4j.http.entity
Methods in com.foxinmy.weixin4j.http.entity that return ContentType Modifier and Type Method Description ContentType
ByteArrayEntity. getContentType()
ContentType
FileEntity. getContentType()
ContentType
HttpEntity. getContentType()
ContentType
StringEntity. getContentType()
Constructors in com.foxinmy.weixin4j.http.entity with parameters of type ContentType Constructor Description ByteArrayEntity(byte[] content, int off, int len, ContentType contentType)
ByteArrayEntity(byte[] content, ContentType contentType)
FileEntity(File file, ContentType contentType)
StringEntity(String body, ContentType contentType)
-
Uses of ContentType in com.foxinmy.weixin4j.model.media
Methods in com.foxinmy.weixin4j.model.media that return ContentType Modifier and Type Method Description ContentType
MediaDownloadResult. getContentType()
Constructors in com.foxinmy.weixin4j.model.media with parameters of type ContentType Constructor Description MediaDownloadResult(byte[] content, ContentType contentType, String fileName)
-