org.apache.jetspeed.portal
Class MediaType
java.lang.Object
|
+--org.apache.jetspeed.portal.MediaType
- public class MediaType
- extends java.lang.Object
Instances of the MediaType class correspond to particular
media-types that a client request, or that a portlet supports.
A media-type is
Method Summary |
boolean |
equals(java.lang.Object aObject)
Returns whether this and the given object represent the same
media-type. |
java.lang.String |
getIdentifier()
Returns the identifier of this media-type. |
protected int |
getValue()
Returns the integer value of this media-type. |
int |
hashCode()
Returns a hash code for this media-type. |
java.lang.String |
toString()
Returns the media-type as a displayable string. |
Methods inherited from class java.lang.Object |
clone,
finalize,
getClass,
notify,
notifyAll,
wait,
wait,
wait |
HTML20
public static final MediaType HTML20
HTML32
public static final MediaType HTML32
HTML40
public static final MediaType HTML40
WML11
public static final MediaType WML11
WML12
public static final MediaType WML12
VoiceXML10
public static final MediaType VoiceXML10
hashCode
public int hashCode()
- Returns a hash code for this media-type.
- Overrides:
- hashCode in class java.lang.Object
- Returns:
- the hash code
equals
public boolean equals(java.lang.Object aObject)
- Returns whether this and the given object represent the same
media-type.
- Overrides:
- equals in class java.lang.Object
- Parameters:
aObject
- the object to compare with- Returns:
- true if the objects represent the same media-type
flase otherwise
toString
public java.lang.String toString()
- Returns the media-type as a displayable string.
- Overrides:
- toString in class java.lang.Object
- Returns:
- the displayable string
getIdentifier
public java.lang.String getIdentifier()
- Returns the identifier of this media-type.
- Returns:
- the media-type
getValue
protected int getValue()
- Returns the integer value of this media-type.
- Returns:
- the integer value