com.foxinmy.weixin4j.http
Class ContentType
java.lang.Object
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
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
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.