|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.portal.portlet.impl.jsr168.PortletUtils
public class PortletUtils
Field Summary | |
---|---|
static java.lang.String |
PREFIX
|
static java.lang.String |
SUFFIX
|
Constructor Summary | |
---|---|
PortletUtils()
|
Method Summary | |
---|---|
static void |
checkPortletParameterMapValidity(java.util.Map map)
Check that provided map follow the constraints : Not null Keys are non null string Values are non null string arrays If a constraint is not respected then an IllegalArgumentException is thrown. |
static void |
checkPortletParameterValidity(java.lang.String name,
java.lang.String value)
Check that the passed argument are non null otherwise throw an IllegalArgumentException. |
static void |
checkPortletParameterValidity(java.lang.String name,
java.lang.String[] values)
Check that the passed argument are non null otherwise throw an IllegalArgumentException. |
static PortletURL |
createActionURL(PortletInvocation invocation,
PortletRequest preq)
Creates an action URL. |
static PortletURL |
createRenderURL(PortletInvocation invocation,
PortletRequest preq)
Creates an render URL. |
static PortletMode |
decodePortletMode(java.lang.String portletModeName)
Creates a PortletMode object based on the specified name. |
static WindowState |
decodeWindowState(java.lang.String windowStateName)
Creates a WindowState object based on the specified name. |
static java.lang.String |
generateNamespaceFrom(java.lang.String windowId)
Generates a namespace suitable for Portlet prefixing of tokens that need to be unique in an aggregated page. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String PREFIX
public static final java.lang.String SUFFIX
Constructor Detail |
---|
public PortletUtils()
Method Detail |
---|
public static void checkPortletParameterMapValidity(java.util.Map map) throws java.lang.IllegalArgumentException
map
- the map to check
java.lang.IllegalArgumentException
public static void checkPortletParameterValidity(java.lang.String name, java.lang.String value) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
public static void checkPortletParameterValidity(java.lang.String name, java.lang.String[] values) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
public static PortletURL createActionURL(PortletInvocation invocation, PortletRequest preq)
public static PortletURL createRenderURL(PortletInvocation invocation, PortletRequest preq)
public static WindowState decodeWindowState(java.lang.String windowStateName)
WindowState
object based on the specified name.
windowStateName
- the name of the window state
WindowState
public static PortletMode decodePortletMode(java.lang.String portletModeName)
PortletMode
object based on the specified name.
portletModeName
- the name of the portlet mode
PortletMode
public static java.lang.String generateNamespaceFrom(java.lang.String windowId)
windowId
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |