Package javax.portlet
Class PortletSessionUtil
- java.lang.Object
-
- javax.portlet.PortletSessionUtil
-
public class PortletSessionUtil extends java.lang.Object
ThePortletSessionUtil
class helps identify and decode attributes in thePORTLET_SCOPE
scope of the PortletSession when accessed through the HttpSession an from within calls to methods of the HttpSessionBindingListener interface.
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.String
PORTLET_SCOPE_NAMESPACE
-
Constructor Summary
Constructors Constructor Description PortletSessionUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String
decodeAttributeName(java.lang.String name)
Returns the attribute name of an attribute in thePORTLET_SCOPE
.static int
decodeScope(java.lang.String name)
Returns the portlet attribute scope from an encoded portlet attribute.
-
-
-
Field Detail
-
PORTLET_SCOPE_NAMESPACE
private static final java.lang.String PORTLET_SCOPE_NAMESPACE
- See Also:
- Constant Field Values
-
-
Method Detail
-
decodeAttributeName
public static java.lang.String decodeAttributeName(java.lang.String name)
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
public static int decodeScope(java.lang.String name)
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:
PortletSession
-
-