public class PortletSessionUtil
extends java.lang.Object
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.Modifier and Type | Field | Description |
---|---|---|
private static java.lang.String |
PORTLET_SCOPE_NAMESPACE |
Constructor | Description |
---|---|
PortletSessionUtil() |
Modifier and Type | Method | Description |
---|---|---|
static java.lang.String |
decodeAttributeName(java.lang.String name) |
Returns the attribute name of an attribute in the
PORTLET_SCOPE . |
static int |
decodeScope(java.lang.String name) |
Returns the portlet attribute scope from an encoded portlet
attribute.
|
private static final java.lang.String PORTLET_SCOPE_NAMESPACE
public static java.lang.String decodeAttributeName(java.lang.String name)
PORTLET_SCOPE
. If the attribute is in the
APPLICATION_SCOPE
it returns the attribute name unchanged.name
- a string specifying the name of the
encoded portlet attributepublic static int decodeScope(java.lang.String name)
PortletSession.APPLICATION_SCOPE
PortletSession.PORTLET_SCOPE
name
- a string specifying the name of the
encoded portlet attributePortletSession