|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectorg.apache.tiles.portlet.context.PortletUtil
public final class PortletUtil
Utilities for Tiles portlet support.
| Method Summary | |
|---|---|
static TilesContainer |
getContainer(javax.portlet.PortletContext context)
Returns the default Tiles container. |
static TilesContainer |
getContainer(javax.portlet.PortletContext context,
String key)
Returns a specific Tiles container. |
static TilesContainer |
getCurrentContainer(javax.portlet.PortletRequest request,
javax.portlet.PortletContext context)
Returns the current container that has been set, or the default one. |
static boolean |
isForceInclude(javax.portlet.PortletRequest request)
Returns true if forced include of the result is needed. |
static void |
setContainer(javax.portlet.PortletContext context,
TilesContainer container)
Configures the default container to be used in the application. |
static void |
setContainer(javax.portlet.PortletContext context,
TilesContainer container,
String key)
Configures the container to be used in the application. |
static void |
setCurrentContainer(javax.portlet.PortletRequest request,
javax.portlet.PortletContext context,
String key)
Sets the current container to use in web pages. |
static void |
setCurrentContainer(javax.portlet.PortletRequest request,
javax.portlet.PortletContext context,
TilesContainer container)
Sets the current container to use in web pages. |
static void |
setForceInclude(javax.portlet.PortletRequest request,
boolean forceInclude)
Sets the option that enables the forced include of the response. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static boolean isForceInclude(javax.portlet.PortletRequest request)
request - The portlet request.
true the include operation must be forced.
public static void setForceInclude(javax.portlet.PortletRequest request,
boolean forceInclude)
request - The portlet request.forceInclude - If true the include operation must be
forced.public static TilesContainer getContainer(javax.portlet.PortletContext context)
context - The portlet context to use.
public static TilesContainer getContainer(javax.portlet.PortletContext context,
String key)
context - The portlet context to use.key - The key under which the container is stored. If null, the
default container will be returned.
public static void setContainer(javax.portlet.PortletContext context,
TilesContainer container)
context - The portlet context object to use.container - The container object to set.
public static void setContainer(javax.portlet.PortletContext context,
TilesContainer container,
String key)
context - The portlet context object to use.container - The container object to set.key - The key under which the container will be stored.
public static void setCurrentContainer(javax.portlet.PortletRequest request,
javax.portlet.PortletContext context,
String key)
request - The request to use.context - The portlet context to use.key - The key under which the container is stored.
public static void setCurrentContainer(javax.portlet.PortletRequest request,
javax.portlet.PortletContext context,
TilesContainer container)
request - The request to use.context - The portlet context to use.container - The container to use as the current container.
public static TilesContainer getCurrentContainer(javax.portlet.PortletRequest request,
javax.portlet.PortletContext context)
request - The request to use.context - The portlet context to use.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||