Package javax.portlet
Class PortletSessionUtil
java.lang.Object
javax.portlet.PortletSessionUtil
The
PortletSessionUtil
class helps identify and decode
attributes in the PORTLET_SCOPE
scope of the PortletSession
when accessed through the HttpSession an from within calls to methods
of the HttpSessionBindingListener interface.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
decodeAttributeName
(String name) Returns the attribute name of an attribute in thePORTLET_SCOPE
.static int
decodeScope
(String name) Returns the portlet attribute scope from an encoded portlet attribute.
-
Field Details
-
PORTLET_SCOPE_NAMESPACE
- See Also:
-
-
Constructor Details
-
PortletSessionUtil
public PortletSessionUtil()
-
-
Method Details
-
decodeAttributeName
Returns the attribute name of an attribute in thePORTLET_SCOPE
. If the attribute is in theAPPLICATION_SCOPE
it returns the attribute name unchanged.- Parameters:
name
- a string specifying the name of the encoded portlet attribute- Returns:
- the decoded attribute name
-
decodeScope
Returns the portlet attribute scope from an encoded portlet attribute.
Possible return values are:PortletSession.APPLICATION_SCOPE
PortletSession.PORTLET_SCOPE
- Parameters:
name
- a string specifying the name of the encoded portlet attribute- Returns:
- the decoded attribute scope
- See Also:
-