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
|
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 java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
HTML
public static final PortalComponentContentType HTML
WML
public static final PortalComponentContentType WML
RSS
public static final PortalComponentContentType RSS
XML
public static final PortalComponentContentType XML
PortalComponentContentType
public PortalComponentContentType(java.lang.String type)
- Construct a content type. The type string should follow the MIME format.
- Parameters:
type - the type string
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.