public class TilesContainerWrapper extends Object implements TilesContainer
| Modifier and Type | Field and Description |
|---|---|
protected TilesContainer |
container
The container to wrap.
|
| Constructor and Description |
|---|
TilesContainerWrapper(TilesContainer container)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
endContext(Request request)
Ends a context, where attribute values are stored independently of others.
It must be called after a TilesContainer.startContext(Request) call. |
Object |
evaluate(Attribute attribute,
Request request)
Evaluates the given attribute.
|
ApplicationContext |
getApplicationContext()
Retrieve the container's context.
|
AttributeContext |
getAttributeContext(Request request)
Retrieve the attribute context of the current request.
|
Definition |
getDefinition(String definitionName,
Request request)
Returns a definition specifying its name.
|
boolean |
isValidDefinition(String definition,
Request request)
Determine whether the definition exists.
|
void |
prepare(String preparer,
Request request)
Executes a preparer.
|
void |
render(Attribute attribute,
Request request)
Render the given Attribute.
|
void |
render(Definition definition,
Request request)
Renders the specified definition.
|
void |
render(String definition,
Request request)
Render the given tiles request.
|
void |
renderContext(Request request)
Renders the current context, as it is.
|
AttributeContext |
startContext(Request request)
Starts a new context, where attribute values are stored independently of others.
When the use of the contexts is finished, call TilesContainer.endContext(Request) |
protected TilesContainer container
public TilesContainerWrapper(TilesContainer container)
container - The container to wrap.public void endContext(Request request)
TilesContainerTilesContainer.startContext(Request) call.endContext in interface TilesContainerrequest - The request.public Object evaluate(Attribute attribute, Request request)
TilesContainerevaluate in interface TilesContainerattribute - The attribute to evaluate.request - The request.public ApplicationContext getApplicationContext()
TilesContainergetApplicationContext in interface TilesContainerpublic AttributeContext getAttributeContext(Request request)
TilesContainergetAttributeContext in interface TilesContainerrequest - The request.public Definition getDefinition(String definitionName, Request request)
TilesContainergetDefinition in interface TilesContainerdefinitionName - The name of the definition to find.request - The request context.public boolean isValidDefinition(String definition, Request request)
TilesContainerisValidDefinition in interface TilesContainerdefinition - the name of the definition.request - The request.public void prepare(String preparer, Request request)
TilesContainerprepare in interface TilesContainerpreparer - The name of the preparer to execute.request - The request.public void render(String definition, Request request)
TilesContainerrender in interface TilesContainerdefinition - the current definition.request - The request.public void render(Definition definition, Request request)
TilesContainerrender in interface TilesContainerdefinition - The definition to render.request - The request context.public void render(Attribute attribute, Request request) throws IOException
TilesContainerrender in interface TilesContainerattribute - The attribute to render.request - The request.IOException - If something goes wrong during writing to the output.public void renderContext(Request request)
TilesContainerrenderContext in interface TilesContainerrequest - The request.public AttributeContext startContext(Request request)
TilesContainerTilesContainer.endContext(Request)startContext in interface TilesContainerrequest - The request.Copyright © 2000–2025 Apache Software Foundation. All rights reserved.