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


Field Summary
static MediaType HTML20
           
static MediaType HTML32
           
static MediaType HTML40
           
static MediaType VoiceXML10
           
static MediaType WML11
           
static MediaType WML12
           
 
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
 

Field Detail

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
Method Detail

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