|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.portal.common.net.media.TypeDef
public final class TypeDef
A top level media type definition defined by RFC2046 section 2).
| Field Summary | |
|---|---|
static TypeDef |
APPLICATION
. |
static TypeDef |
AUDIO
. |
static TypeDef |
IMAGE
. |
static TypeDef |
MESSAGE
. |
static TypeDef |
MULTIPART
. |
static TypeDef |
TEXT
. |
static TypeDef |
VIDEO
. |
| Method Summary | |
|---|---|
static TypeDef |
create(java.lang.String typeName)
Returns the corresponding type definition for the given top level type name. |
java.lang.String |
getDescription()
|
java.lang.String |
getName()
|
boolean |
isComposite()
|
boolean |
isDiscrete()
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final TypeDef TEXT
public static final TypeDef IMAGE
public static final TypeDef AUDIO
public static final TypeDef VIDEO
public static final TypeDef APPLICATION
public static final TypeDef MULTIPART
public static final TypeDef MESSAGE
| Method Detail |
|---|
public static TypeDef create(java.lang.String typeName)
throws java.lang.IllegalArgumentException
typeName - the name of the type def
java.lang.IllegalArgumentException - if the type name is nullpublic java.lang.String getName()
public java.lang.String getDescription()
public boolean isComposite()
public boolean isDiscrete()
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||