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 String |
getPortalContextPath(javax.servlet.http.HttpServletRequest request)
Returns the original context path before dispatch is made
This will ensure to get the original root path
in all Servlet Containers (Tomcat / JBoss / Wildfly)
|
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 String getPortalContextPath(javax.servlet.http.HttpServletRequest request)
request - HTTP Requestpublic 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-2021 GateIn. All Rights Reserved.