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:
- Serializable
public class PortalComponentContentType
- extends Stringable
- implements Serializable
- See Also:
IPortalComponentResponse.setContentType(com.sapportals.portal.prt.component.PortalComponentContentType),
Serialized Form
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(String type)
- Construct a content type. The type string should follow the MIME format.
- Parameters:
type - the type string
parse
public static PortalComponentContentType parse(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(Object o)
- Two content types are equal if they have been created with the same type string.
- Overrides:
equals in class 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.
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
This class can be accessed from:
|
SC
|
DC
|
Public Part
|
ACH
|
[sap.com] EP-BASIS-API
|
[sap.com] tc/epbc/prt/api
|
api
|
EP-PIN
|
[sap.com] EP-BASIS-API
|
[sap.com] epbc.prtapi._apideprecated
|
default
|
EP-PIN-PRT
|
Copyright 2011 SAP AG Complete Copyright Notice