public class PortletUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
PREFIX |
static String |
SUFFIX |
| Constructor and Description |
|---|
PortletUtils() |
| Modifier and Type | Method and Description |
|---|---|
static javax.portlet.PortletMode |
decodePortletMode(String portletModeName)
Creates a
PortletMode object based on the specified name. |
static javax.portlet.WindowState |
decodeWindowState(String windowStateName)
Creates a
WindowState object based on the specified name. |
static String |
generateNamespaceFrom(String windowId)
Generates a namespace suitable for Portlet prefixing of tokens that need to be unique in an aggregated page.
|
static <U extends javax.portlet.PortletRequest> |
unwrap(javax.portlet.PortletRequest wrapped,
Class<U> unwrapped) |
static <U extends javax.portlet.PortletResponse> |
unwrap(javax.portlet.PortletResponse wrapped,
Class<U> unwrapped) |
public static final String PREFIX
public static final String SUFFIX
public static javax.portlet.WindowState decodeWindowState(String windowStateName)
WindowState object based on the specified name.windowStateName - the name of the window stateWindowStatepublic static javax.portlet.PortletMode decodePortletMode(String portletModeName)
PortletMode object based on the specified name.portletModeName - the name of the portlet modePortletModepublic static String generateNamespaceFrom(String windowId)
windowId - the window idpublic static <U extends javax.portlet.PortletRequest> U unwrap(javax.portlet.PortletRequest wrapped,
Class<U> unwrapped)
public static <U extends javax.portlet.PortletResponse> U unwrap(javax.portlet.PortletResponse wrapped,
Class<U> unwrapped)
Copyright © 2003-2018 GateIn. All Rights Reserved.