Package org.apache.tiles.api
Class TilesContainerWrapper
java.lang.Object
org.apache.tiles.api.TilesContainerWrapper
- All Implemented Interfaces:
- TilesContainer
- Direct Known Subclasses:
- CachingTilesContainer
Wraps a Tiles container to allow easy decoration.
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidendContext(Request request) Ends a context, where attribute values are stored independently of others.
 It must be called after aTilesContainer.startContext(Request)call.Evaluates the given attribute.Retrieve the container's context.getAttributeContext(Request request) Retrieve the attribute context of the current request.getDefinition(String definitionName, Request request) Returns a definition specifying its name.booleanisValidDefinition(String definition, Request request) Determine whether the definition exists.voidExecutes a preparer.voidRender the given tiles request.voidRender the given Attribute.voidrender(Definition definition, Request request) Renders the specified definition.voidrenderContext(Request request) Renders the current context, as it is.startContext(Request request) Starts a new context, where attribute values are stored independently of others.
 When the use of the contexts is finished, callTilesContainer.endContext(Request)
- 
Field Details- 
containerThe container to wrap.
 
- 
- 
Constructor Details- 
TilesContainerWrapperConstructor.- Parameters:
- container- The container to wrap.
 
 
- 
- 
Method Details- 
endContextDescription copied from interface:TilesContainerEnds a context, where attribute values are stored independently of others.
 It must be called after aTilesContainer.startContext(Request)call.- Specified by:
- endContextin interface- TilesContainer
- Parameters:
- request- The request.
 
- 
evaluateDescription copied from interface:TilesContainerEvaluates the given attribute.- Specified by:
- evaluatein interface- TilesContainer
- Parameters:
- attribute- The attribute to evaluate.
- request- The request.
- Returns:
- The evaluated object.
 
- 
getApplicationContextDescription copied from interface:TilesContainerRetrieve the container's context.- Specified by:
- getApplicationContextin interface- TilesContainer
- Returns:
- current application context
 
- 
getAttributeContextDescription copied from interface:TilesContainerRetrieve the attribute context of the current request.- Specified by:
- getAttributeContextin interface- TilesContainer
- Parameters:
- request- The request.
- Returns:
- map of the attributes in the current attribute context.
 
- 
getDefinitionDescription copied from interface:TilesContainerReturns a definition specifying its name.- Specified by:
- getDefinitionin interface- TilesContainer
- Parameters:
- definitionName- The name of the definition to find.
- request- The request context.
- Returns:
- The definition, if found.
 
- 
isValidDefinitionDescription copied from interface:TilesContainerDetermine whether the definition exists.- Specified by:
- isValidDefinitionin interface- TilesContainer
- Parameters:
- definition- the name of the definition.
- request- The request.
- Returns:
- true if the definition is found.
 
- 
prepareDescription copied from interface:TilesContainerExecutes a preparer.- Specified by:
- preparein interface- TilesContainer
- Parameters:
- preparer- The name of the preparer to execute.
- request- The request.
 
- 
renderDescription copied from interface:TilesContainerRender the given tiles request.- Specified by:
- renderin interface- TilesContainer
- Parameters:
- definition- the current definition.
- request- The request.
 
- 
renderDescription copied from interface:TilesContainerRenders the specified definition.- Specified by:
- renderin interface- TilesContainer
- Parameters:
- definition- The definition to render.
- request- The request context.
 
- 
renderDescription copied from interface:TilesContainerRender the given Attribute.- Specified by:
- renderin interface- TilesContainer
- Parameters:
- attribute- The attribute to render.
- request- The request.
- Throws:
- IOException- If something goes wrong during writing to the output.
 
- 
renderContextDescription copied from interface:TilesContainerRenders the current context, as it is.- Specified by:
- renderContextin interface- TilesContainer
- Parameters:
- request- The request.
 
- 
startContextDescription copied from interface:TilesContainerStarts a new context, where attribute values are stored independently of others.
 When the use of the contexts is finished, callTilesContainer.endContext(Request)- Specified by:
- startContextin interface- TilesContainer
- Parameters:
- request- The request.
- Returns:
- The newly created context.
 
 
-