NextApp Echo
App Container 1.1.4

nextapp.echoservlet.util
Class ContentType

java.lang.Object
  extended bynextapp.echoservlet.util.ContentType
All Implemented Interfaces:
java.io.Serializable

public class ContentType
extends java.lang.Object
implements java.io.Serializable

A representation of a content type.

See Also:
Serialized Form

Field Summary
static ContentType IMAGE_GIF
           
static ContentType IMAGE_JPEG
           
static ContentType IMAGE_PNG
           
static ContentType MULTIPART_FORM_DATA
           
static ContentType TEXT_HTML
           
static ContentType TEXT_JAVASCRIPT
           
static ContentType TEXT_PLAIN
           
 
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()
          Returns true if the content type is binary.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

IMAGE_GIF

public static final ContentType IMAGE_GIF

IMAGE_PNG

public static final ContentType IMAGE_PNG

IMAGE_JPEG

public static final ContentType IMAGE_JPEG

MULTIPART_FORM_DATA

public static final ContentType MULTIPART_FORM_DATA

TEXT_PLAIN

public static final ContentType TEXT_PLAIN

TEXT_HTML

public static final ContentType TEXT_HTML

TEXT_JAVASCRIPT

public static final ContentType TEXT_JAVASCRIPT
Constructor Detail

ContentType

public ContentType(java.lang.String mimeType,
                   boolean binary)
Creates a new content type.

Parameters:
mimeType - The MIME type of the content type.
binary - True if the content type is used for binary data.
Method Detail

equals

public boolean equals(java.lang.Object o)
See Also:
Object.equals(Object)

getMimeType

public java.lang.String getMimeType()
Returns the MIME type.

Returns:
The MIME type.

isBinary

public boolean isBinary()
Returns true if the content type is binary.

Returns:
True if the content type is binary.

toString

public java.lang.String toString()
See Also:
Object.toString()

NextApp Echo
App Container 1.1.4