Package org.apache.tiles.api.access
Class TilesAccess
java.lang.Object
org.apache.tiles.api.access.TilesAccess
Provides static access to the Tiles container.
- 
Field SummaryFields
- 
Method SummaryModifier and TypeMethodDescriptionstatic TilesContainergetContainer(ApplicationContext context) Returns default the container to be used in the application.static TilesContainergetContainer(ApplicationContext context, String key) Returns the container to be used in the application registered under a specific key.static TilesContainergetCurrentContainer(Request request) Returns the current container that has been set, or the default one.static voidsetContainer(ApplicationContext context, TilesContainer container, String key) Configures the container to be used in the application.static voidsetCurrentContainer(Request request, String key) Sets the current container to use in web pages.static voidsetCurrentContainer(Request request, TilesContainer container) Sets the current container to use in web pages.
- 
Field Details- 
CURRENT_CONTAINER_ATTRIBUTE_NAMEName of the attribute used to store the current used container.- See Also:
 
- 
CONTAINER_ATTRIBUTEThe name of the attribute to use when getting and setting the container object in a context.- See Also:
 
 
- 
- 
Method Details- 
setContainerConfigures the container to be used in the application.- Parameters:
- context- The Tiles application context object to use.
- container- The container object to set.
- key- The key under which the container will be stored.
- Since:
- 2.1.2
 
- 
getContainerReturns default the container to be used in the application.- Parameters:
- context- The Tiles application context object to use.
- Returns:
- The default container object.
- Since:
- 3.0.0
 
- 
getContainerReturns the container to be used in the application registered under a specific key.- Parameters:
- context- The Tiles application context object to use.
- key- The key under which the container will be stored.
- Returns:
- The container object.
- Since:
- 3.0.0
 
- 
setCurrentContainerSets the current container to use in web pages.- Parameters:
- request- The request to use.
- key- The key under which the container is stored.
- Since:
- 2.1.0
 
- 
setCurrentContainerSets the current container to use in web pages.- Parameters:
- request- The request to use.
- container- The container to use as the current container.
- Since:
- 2.1.0
 
- 
getCurrentContainerReturns the current container that has been set, or the default one.- Parameters:
- request- The request to use.
- Returns:
- The current Tiles container to use in web pages.
- Since:
- 2.1.0
 
 
-