public class MIMEUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
APPLICATION_XML |
static String |
CHARSET |
static int |
CHARSET_LENGTH |
static String |
CSS |
static String |
ECMASCRIPT |
static String |
HTML |
static String |
JAVASCRIPT |
static String |
TEXT |
static String |
UTF_8 |
static String |
XML |
| Constructor and Description |
|---|
MIMEUtils() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getCharsetFrom(String contentType) |
static boolean |
isInterpretableAsText(String contentType)
TODO: handle this better, we should probably have a class in the common module to determine if the MediaType
should be treated as a text file or as binary content.
|
static boolean |
needsRewriting(String contentType) |
public static final String UTF_8
public static final String CHARSET
public static final int CHARSET_LENGTH
public static final String JAVASCRIPT
public static final String TEXT
public static final String ECMASCRIPT
public static final String CSS
public static final String HTML
public static final String XML
public static final String APPLICATION_XML
public static boolean isInterpretableAsText(String contentType)
contentType - public static boolean needsRewriting(String contentType)
Copyright © 2006-2014 GateIn. All Rights Reserved.