com.sapportals.portal.prt.component
Class PortalComponentContentType

java.lang.Object
  |
  +--com.sapportals.portal.prt.util.Stringable
        |
        +--com.sapportals.portal.prt.component.PortalComponentContentType
All Implemented Interfaces:
java.io.Serializable

public class PortalComponentContentType
extends Stringable
implements java.io.Serializable

See Also:
IPortalComponentResponse.setContentType(com.sapportals.portal.prt.component.PortalComponentContentType), Serialized Form

Field Summary
static PortalComponentContentType HTML
           
static PortalComponentContentType RSS
           
static PortalComponentContentType WML
           
static PortalComponentContentType XML
           
 
Constructor Summary
PortalComponentContentType(java.lang.String type)
          Construct a content type.
 
Method Summary
 boolean equals(java.lang.Object o)
          Two content types are equal if they have been created with the same type string.
static PortalComponentContentType parse(java.lang.String type)
          Check if there is already a content type defined for the given type.
 
Methods inherited from class com.sapportals.portal.prt.util.Stringable
toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

HTML

public static final PortalComponentContentType HTML

WML

public static final PortalComponentContentType WML

RSS

public static final PortalComponentContentType RSS

XML

public static final PortalComponentContentType XML
Constructor Detail

PortalComponentContentType

public PortalComponentContentType(java.lang.String type)
Construct a content type. The type string should follow the MIME format.
Parameters:
type - the type string
Method Detail

parse

public static PortalComponentContentType parse(java.lang.String type)
Check if there is already a content type defined for the given type. If so, return this one.
Parameters:
type - the type string
Returns:
the content type if known, otherwise null

equals

public boolean equals(java.lang.Object o)
Two content types are equal if they have been created with the same type string.
Overrides:
equals in class java.lang.Object
Parameters:
o - an object supposed to be a PortalComponentContentType
Returns:
true if the object has the type PortalComponentContentType and equals this object Otherwise false.