|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exoplatform.common.util.MediaType
public class MediaType
Created by The eXo Platform SAS Author : eXoPlatform exo@exoplatform.com Jun 25, 2010
| Field Summary | |
|---|---|
static java.lang.String |
MEDIA_TYPE_WILDCARD
Wildcard type. |
static java.lang.String |
WILDCARD
|
| Constructor Summary | |
|---|---|
MediaType(java.lang.String mediaType)
Creates an instance of specified mediatype. |
|
MediaType(java.lang.String type,
java.lang.String subtype)
Creates an instance of mediatype with specified type and subtype. |
|
| Method Summary | |
|---|---|
java.lang.String |
getSubtype()
|
java.lang.String |
getType()
|
boolean |
isCompatible(MediaType other)
Check if this media type is compatible with another media type. |
void |
setSubtype(java.lang.String subtype)
|
void |
setType(java.lang.String type)
|
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 java.lang.String MEDIA_TYPE_WILDCARD
public static final java.lang.String WILDCARD
| Constructor Detail |
|---|
public MediaType(java.lang.String mediaType)
mediaType - mediatype, f.e.: text/plain
public MediaType(java.lang.String type,
java.lang.String subtype)
type - main type f.e. 'text' in 'text/xml'.subtype - subtype f.e. 'xmk' in 'text/xml'.| Method Detail |
|---|
public java.lang.String getType()
public void setType(java.lang.String type)
public java.lang.String getSubtype()
public void setSubtype(java.lang.String subtype)
public boolean isCompatible(MediaType other)
other - the media type to compare with
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 | |||||||||