public final class ContentType extends Object implements Serializable
| 限定符和类型 | 字段和说明 |
|---|---|
static ContentType |
APPLICATION_ATOM_XML |
static ContentType |
APPLICATION_FORM_URLENCODED |
static ContentType |
APPLICATION_JSON |
static ContentType |
APPLICATION_OCTET_STREAM |
static ContentType |
APPLICATION_SVG_XML |
static ContentType |
APPLICATION_XHTML_XML |
static ContentType |
APPLICATION_XML |
static ContentType |
DEFAULT_BINARY |
static ContentType |
DEFAULT_TEXT |
static ContentType |
MULTIPART_FORM_DATA |
static ContentType |
TEXT_HTML |
static ContentType |
TEXT_PLAIN |
static ContentType |
TEXT_XML |
static ContentType |
WILDCARD |
| 限定符和类型 | 方法和说明 |
|---|---|
static ContentType |
create(String mimeType,
Charset charset) |
static ContentType |
create(String mimeType,
String charset) |
static ContentType |
create(String mimeType,
com.luckyframework.common.TempPair<String,String>[] params) |
Charset |
getCharset() |
String |
getMimeType() |
String |
getParameter(String name) |
com.luckyframework.common.TempPair<String,String>[] |
getParams() |
String |
toString() |
public static final ContentType APPLICATION_ATOM_XML
public static final ContentType APPLICATION_FORM_URLENCODED
public static final ContentType APPLICATION_JSON
public static final ContentType APPLICATION_OCTET_STREAM
public static final ContentType APPLICATION_SVG_XML
public static final ContentType APPLICATION_XHTML_XML
public static final ContentType APPLICATION_XML
public static final ContentType MULTIPART_FORM_DATA
public static final ContentType TEXT_HTML
public static final ContentType TEXT_PLAIN
public static final ContentType TEXT_XML
public static final ContentType WILDCARD
public static final ContentType DEFAULT_TEXT
public static final ContentType DEFAULT_BINARY
public static ContentType create(String mimeType, Charset charset)
public static ContentType create(String mimeType, String charset) throws UnsupportedCharsetException
public static ContentType create(String mimeType, com.luckyframework.common.TempPair<String,String>[] params) throws UnsupportedCharsetException
public String getMimeType()
public Charset getCharset()
Copyright © 2023. All rights reserved.