com.foxinmy.weixin4j.http
Class ContentType

java.lang.Object
  extended by com.foxinmy.weixin4j.http.ContentType
All Implemented Interfaces:
Serializable

public final class ContentType
extends Object
implements Serializable

reference of apache pivot

Since:
JDK 1.6
Author:
jinyu(foxinmy@gmail.com)
See Also:
, Serialized Form

Field Summary
static ContentType APPLICATION_FORM_URLENCODED
           
static ContentType APPLICATION_JSON
           
static ContentType DEFAULT_BINARY
           
static ContentType DEFAULT_TEXT
           
static ContentType MULTIPART_FORM_DATA
           
 
Method Summary
static ContentType create(MimeType mimeType, Charset charset)
           
static ContentType create(String mimeType)
           
static ContentType create(String mimeType, Charset charset)
           
 Charset getCharset()
           
 MimeType getMimeType()
           
 String toString()
           
static String toString(List<ContentType> contentTypes)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

APPLICATION_JSON

public static final ContentType APPLICATION_JSON

APPLICATION_FORM_URLENCODED

public static final ContentType APPLICATION_FORM_URLENCODED

MULTIPART_FORM_DATA

public static final ContentType MULTIPART_FORM_DATA

DEFAULT_BINARY

public static final ContentType DEFAULT_BINARY

DEFAULT_TEXT

public static final ContentType DEFAULT_TEXT
Method Detail

getMimeType

public MimeType getMimeType()

getCharset

public Charset getCharset()

toString

public String toString()
Overrides:
toString in class Object

toString

public static String toString(List<ContentType> contentTypes)

create

public static ContentType create(MimeType mimeType,
                                 Charset charset)

create

public static ContentType create(String mimeType)

create

public static ContentType create(String mimeType,
                                 Charset charset)


Copyright © 2014–2017. All rights reserved.