public class PortletSessionUtil extends 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.| Constructor and Description |
|---|
PortletSessionUtil() |
| Modifier and Type | Method and Description |
|---|---|
static String |
decodeAttributeName(String name)
Returns the attribute name of an attribute in the
PORTLET_SCOPE. |
static int |
decodeScope(String name)
Returns the portlet attribute scope from an encoded portlet
attribute.
|
public static String decodeAttributeName(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(String name)
PortletSession.APPLICATION_SCOPEPortletSession.PORTLET_SCOPEname - a string specifying the name of the
encoded portlet attributePortletSessionJava Portlet 3.0 API Specification. See the Copyright and License provided with this distribution. Use is subject to license terms.