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 ContentTypeContentType. APPLICATION_FORM_URLENCODEDstatic ContentTypeContentType. APPLICATION_JSONstatic ContentTypeContentType. DEFAULT_BINARYstatic ContentTypeContentType. DEFAULT_TEXTstatic ContentTypeContentType. MULTIPART_FORM_DATAMethods in com.foxinmy.weixin4j.http that return ContentType Modifier and Type Method Description static ContentTypeContentType. create(MimeType mimeType, Charset charset)static ContentTypeContentType. create(String mimeType)static ContentTypeContentType. create(String mimeType, NameValue... params)Creates a new instance ofContentTypewith the given parameters.static ContentTypeContentType. create(String mimeType, String charset)static ContentTypeContentType. create(String mimeType, Charset charset)ContentTypeContentType. 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 voidHttpHeaders. setContentType(ContentType contentType)Set the media type of the body, as specified by theContent-Typeheader.Method parameters in com.foxinmy.weixin4j.http with type arguments of type ContentType Modifier and Type Method Description voidHttpHeaders. setAccept(List<ContentType> acceptableMediaTypes)Set the list of acceptable media types, as specified by theAcceptheader.static StringContentType. 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 ContentTypeAbstractContentBody. 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 ContentTypeMultipartEntity. getContentType()Methods in com.foxinmy.weixin4j.http.apache.mime with parameters of type ContentType Modifier and Type Method Description MultipartEntityBuilderMultipartEntityBuilder. addBinaryBody(String name, byte[] b, ContentType contentType, String filename)MultipartEntityBuilderMultipartEntityBuilder. addBinaryBody(String name, File file, ContentType contentType, String filename)MultipartEntityBuilderMultipartEntityBuilder. addBinaryBody(String name, InputStream stream, ContentType contentType, String filename)MultipartEntityBuilderMultipartEntityBuilder. addTextBody(String name, String text, ContentType contentType)MultipartEntityBuilderMultipartEntityBuilder. seContentType(ContentType contentType)Deprecated.(4.5) Use#setContentType(org.apache.http.entity.ContentType).MultipartEntityBuilderMultipartEntityBuilder. 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 ContentTypeByteArrayEntity. getContentType()ContentTypeFileEntity. getContentType()ContentTypeHttpEntity. getContentType()ContentTypeStringEntity. 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 ContentTypeMediaDownloadResult. getContentType()Constructors in com.foxinmy.weixin4j.model.media with parameters of type ContentType Constructor Description MediaDownloadResult(byte[] content, ContentType contentType, String fileName)
-