public final class PortletUtil extends Object
Modifier and Type | Method and Description |
---|---|
static ArrayStack<Object> |
getComposeStack(javax.portlet.PortletRequest request)
Returns the compose stack, that is used by the tags to compose
definitions, attributes, etc.
|
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.
|
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.public static ArrayStack<Object> getComposeStack(javax.portlet.PortletRequest request)
request
- The portlet request.Copyright © 2016. All rights reserved.