public static class H.Format extends Object implements Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
H.Format.Ordinal |
| Modifier and Type | Field and Description |
|---|---|
static H.Format |
AVI |
static H.Format |
BINARY |
static H.Format |
BMP |
static H.Format |
CSS
The "text/css" content format
|
static H.Format |
csv
Deprecated.
|
static H.Format |
CSV
The "text/csv" content format
|
static H.Format |
doc
Deprecated.
|
static H.Format |
DOC
The "application/vnd.ms-word" content format
|
static H.Format |
docx
Deprecated.
|
static H.Format |
DOCX
The "application/vnd.openxmlformats-officedocument.wordprocessingml.document" content format
|
static H.Format |
FLV |
static H.Format |
form_multipart_data
Deprecated.
|
static H.Format |
FORM_MULTIPART_DATA
The "multipart/form-data" content format
|
static H.Format |
form_url_encoded
Deprecated.
|
static H.Format |
FORM_URL_ENCODED
The "application/x-www-form-urlencoded" content format
|
static H.Format |
GIF |
static H.Format |
html
Deprecated.
|
static H.Format |
HTML
The "text/html" content format
|
static H.Format |
ICO |
static H.Format |
JAVASCRIPT
The "application/javascript" content format
|
static H.Format |
JPG |
static H.Format |
json
Deprecated.
|
static H.Format |
JSON
The "application/json" content format
|
static H.Format |
MOV |
static H.Format |
MP3 |
static H.Format |
MP4 |
static H.Format |
MPA |
static H.Format |
MPG |
static H.Format |
pdf
Deprecated.
|
static H.Format |
PDF
The "application/pdf" content format
|
static H.Format |
PNG |
static H.Format |
rtf
Deprecated.
|
static H.Format |
RTF
The "application/rtf" content format
|
static H.Format |
SVG |
static H.Format |
TIF |
static H.Format |
txt
Deprecated.
|
static H.Format |
TXT
The "text/plain" content format
|
static H.Format |
unknown
Deprecated.
|
static H.Format |
UNKNOWN
The "unknown" content format.
|
static H.Format |
WAV |
static H.Format |
xls
Deprecated.
|
static H.Format |
XLS
The "application/vnd.ms-excel" content format
|
static H.Format |
xlsx
Deprecated.
|
static H.Format |
XLSX
The "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" content format
|
static H.Format |
xml
Deprecated.
|
static H.Format |
XML
The "text/xml" content format
|
| Modifier and Type | Method and Description |
|---|---|
String |
contentType()
Returns the content type string
|
boolean |
equals(Object obj) |
String |
errorMessage(String message)
Returns the error message
|
String |
getContentType() |
String |
getName() |
int |
hashCode() |
boolean |
isText() |
String |
name() |
static H.Format |
of(String name) |
static H.Format |
of(String name,
String contentType) |
int |
ordinal() |
static List<H.Format> |
predefined() |
static H.Format |
resolve(H.Format def,
Iterable<String> accepts) |
static H.Format |
resolve(H.Format def,
String... accepts) |
static H.Format |
resolve(H.Format def,
String accept) |
static H.Format |
resolve(Iterable<String> accepts) |
static H.Format |
resolve(String... accepts) |
static H.Format |
resolve(String accept)
Resolve
Format instance out of an http "Accept" header. |
String |
toContentType()
Deprecated.
|
static String |
toContentType(String fmt) |
String |
toString() |
static H.Format |
valueOf(String name) |
static H.Format |
valueOf(String name,
String contentType) |
static H.Format[] |
values()
Deprecated.
|
public static final H.Format HTML
@Deprecated public static final H.Format html
HTMLpublic static final H.Format XML
@Deprecated public static final H.Format xml
XMLpublic static final H.Format JSON
@Deprecated public static final H.Format json
JSONpublic static final H.Format CSS
public static final H.Format JAVASCRIPT
public static final H.Format XLS
public static final H.Format XLSX
public static final H.Format DOC
public static final H.Format DOCX
public static final H.Format CSV
@Deprecated public static final H.Format csv
CSVpublic static final H.Format TXT
@Deprecated public static final H.Format txt
TXTpublic static final H.Format PDF
@Deprecated public static final H.Format pdf
PDFpublic static final H.Format RTF
@Deprecated public static final H.Format rtf
RTFpublic static final H.Format GIF
public static final H.Format ICO
public static final H.Format JPG
public static final H.Format BMP
public static final H.Format PNG
public static final H.Format SVG
public static final H.Format TIF
public static final H.Format MOV
public static final H.Format MP4
public static final H.Format MPG
public static final H.Format AVI
public static final H.Format FLV
public static final H.Format MP3
public static final H.Format MPA
public static final H.Format WAV
public static final H.Format FORM_URL_ENCODED
@Deprecated public static final H.Format form_url_encoded
FORM_URL_ENCODEDpublic static final H.Format FORM_MULTIPART_DATA
@Deprecated public static final H.Format form_multipart_data
FORM_MULTIPART_DATApublic static final H.Format BINARY
public static final H.Format UNKNOWN
@Deprecated public static final H.Format unknown
UNKNOWNpublic final String name()
public final int ordinal()
public String contentType()
@Deprecated public final String toContentType()
contentType()public final String getName()
public final String getContentType()
public boolean isText()
public String errorMessage(String message)
message - the messagepublic static H.Format[] values()
predefined()public static H.Format resolve(String accept)
Format instance out of an http "Accept" header.accept - the value of http "Accept" headerFormat instanceCopyright © 2017. All Rights Reserved.