|
NextApp Echo3 v3.0.rc1 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnextapp.echo.webcontainer.ContentType
public class ContentType
A representation of a content-type. This object contains a MIME-type and a flag indicating whether the content-type is used exclusively for binary data (i.e., indicating whether a character encoding needs to be specified).
| Field Summary | |
|---|---|
static ContentType |
APPLICATION_FLASH
|
static ContentType |
IMAGE_GIF
|
static ContentType |
IMAGE_JPEG
|
static ContentType |
IMAGE_PNG
|
static ContentType |
MULTIPART_FORM_DATA
|
static ContentType |
TEXT_CSS
|
static ContentType |
TEXT_HTML
|
static ContentType |
TEXT_JAVASCRIPT
|
static ContentType |
TEXT_PLAIN
|
static ContentType |
TEXT_XML
|
| Constructor Summary | |
|---|---|
ContentType(java.lang.String mimeType,
boolean binary)
Creates a new content type. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object o)
|
java.lang.String |
getMimeType()
Returns the MIME type. |
boolean |
isBinary()
Determines if the content type is used exclusively for binary data, i.e., it does not require any character encoding |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final ContentType IMAGE_GIF
public static final ContentType IMAGE_PNG
public static final ContentType IMAGE_JPEG
public static final ContentType MULTIPART_FORM_DATA
public static final ContentType TEXT_HTML
public static final ContentType TEXT_JAVASCRIPT
public static final ContentType TEXT_PLAIN
public static final ContentType TEXT_XML
public static final ContentType TEXT_CSS
public static final ContentType APPLICATION_FLASH
| Constructor Detail |
|---|
public ContentType(java.lang.String mimeType,
boolean binary)
mimeType - The MIME type of the content type.binary - True if the content type is used exclusively for binary
data, i.e., it does not require any character encoding| Method Detail |
|---|
public boolean equals(java.lang.Object o)
equals in class java.lang.ObjectObject.equals(Object)public java.lang.String getMimeType()
public boolean isBinary()
public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()
|
NextApp Echo3 v3.0.rc1 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||