public final class TilesAccess extends Object
Modifier and Type | Field and Description |
---|---|
static String |
CONTAINER_ATTRIBUTE
The name of the attribute to use when getting and setting the container
object in a context.
|
static String |
CURRENT_CONTAINER_ATTRIBUTE_NAME
Name of the attribute used to store the current used container.
|
Modifier and Type | Method and Description |
---|---|
static TilesContainer |
getContainer(org.apache.tiles.request.ApplicationContext context)
Returns default the container to be used in the application.
|
static TilesContainer |
getContainer(org.apache.tiles.request.ApplicationContext context,
String key)
Returns the container to be used in the application registered under a specific key.
|
static TilesContainer |
getCurrentContainer(org.apache.tiles.request.Request request)
Returns the current container that has been set, or the default one.
|
static void |
setContainer(org.apache.tiles.request.ApplicationContext context,
TilesContainer container)
Configures the default container to be used in the application.
|
static void |
setContainer(org.apache.tiles.request.ApplicationContext context,
TilesContainer container,
String key)
Configures the container to be used in the application.
|
static void |
setCurrentContainer(org.apache.tiles.request.Request request,
String key)
Sets the current container to use in web pages.
|
static void |
setCurrentContainer(org.apache.tiles.request.Request request,
TilesContainer container)
Sets the current container to use in web pages.
|
public static final String CURRENT_CONTAINER_ATTRIBUTE_NAME
public static final String CONTAINER_ATTRIBUTE
public static void setContainer(org.apache.tiles.request.ApplicationContext context, TilesContainer container)
context
- The Tiles application context object to use.container
- The container object to set.public static void setContainer(org.apache.tiles.request.ApplicationContext context, TilesContainer container, String key)
context
- The Tiles application context object to use.container
- The container object to set.key
- The key under which the container will be stored.public static TilesContainer getContainer(org.apache.tiles.request.ApplicationContext context)
context
- The Tiles application context object to use.public static TilesContainer getContainer(org.apache.tiles.request.ApplicationContext context, String key)
context
- The Tiles application context object to use.key
- The key under which the container will be stored.public static void setCurrentContainer(org.apache.tiles.request.Request request, String key)
request
- The request to use.key
- The key under which the container is stored.public static void setCurrentContainer(org.apache.tiles.request.Request request, TilesContainer container)
request
- The request to use.container
- The container to use as the current container.public static TilesContainer getCurrentContainer(org.apache.tiles.request.Request request)
request
- The request to use.Copyright © 2001-2017 The Apache Software Foundation. All Rights Reserved.