public class ContentType
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static ContentType |
APPLICATION_JAVASCRIPT |
static ContentType |
APPLICATION_JSON |
static ContentType |
APPLICATION_OCTET_STREAM |
static ContentType |
APPLICATION_XML |
java.lang.String |
mimeType |
static ContentType |
TEXT_CSS |
static ContentType |
TEXT_CSV |
static ContentType |
TEXT_HTML |
static ContentType |
TEXT_PLAIN |
Constructor and Description |
---|
ContentType(java.lang.String mimeType) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getContentTypeUTF8()
The mime type and UTF-8 character set.
|
boolean |
matches(java.lang.String accept) |
java.lang.String |
toString() |
public static final ContentType TEXT_PLAIN
public static final ContentType TEXT_HTML
public static final ContentType TEXT_CSS
public static final ContentType TEXT_CSV
public static final ContentType APPLICATION_XML
public static final ContentType APPLICATION_JSON
public static final ContentType APPLICATION_JAVASCRIPT
public static final ContentType APPLICATION_OCTET_STREAM
public final java.lang.String mimeType
@CheckReturnValue @Nonnull public java.lang.String getContentTypeUTF8()
@CheckReturnValue @Nonnull public java.lang.String toString()
toString
in class java.lang.Object
@CheckReturnValue public boolean matches(@Nonnull java.lang.String accept)
stSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.