TilesContainer
CachingTilesContainer
public class TilesContainerWrapper extends java.lang.Object implements TilesContainer
Modifier and Type | Field | Description |
---|---|---|
protected TilesContainer |
container |
The container to wrap.
|
Constructor | Description |
---|---|
TilesContainerWrapper(TilesContainer container) |
Constructor.
|
Modifier and Type | Method | Description |
---|---|---|
void |
endContext(org.apache.tiles.request.Request request) |
Ends a context, where attribute values are stored independently
from others.
It must be called after a TilesContainer.startContext(Request) call. |
java.lang.Object |
evaluate(Attribute attribute,
org.apache.tiles.request.Request request) |
Evaluates the given attribute.
|
org.apache.tiles.request.ApplicationContext |
getApplicationContext() |
Retrieve the containers context.
|
AttributeContext |
getAttributeContext(org.apache.tiles.request.Request request) |
Retrive the attribute context of the current request.
|
Definition |
getDefinition(java.lang.String definitionName,
org.apache.tiles.request.Request request) |
Returns a definition specifying its name.
|
TilesContainer |
getWrappedContainer() |
Returns the wrapped container.
|
boolean |
isValidDefinition(java.lang.String definition,
org.apache.tiles.request.Request request) |
Determine whether or not the definition exists.
|
void |
prepare(java.lang.String preparer,
org.apache.tiles.request.Request request) |
Executes a preparer.
|
void |
render(java.lang.String definition,
org.apache.tiles.request.Request request) |
Render the given tiles request.
|
void |
render(Attribute attribute,
org.apache.tiles.request.Request request) |
Render the given Attribute.
|
void |
render(Definition definition,
org.apache.tiles.request.Request request) |
Renders the specified definition.
|
void |
renderContext(org.apache.tiles.request.Request request) |
Renders the current context, as it is.
|
AttributeContext |
startContext(org.apache.tiles.request.Request request) |
Starts a new context, where attribute values are stored independently
from 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 TilesContainer getWrappedContainer()
public void endContext(org.apache.tiles.request.Request request)
TilesContainer
TilesContainer.startContext(Request)
call.endContext
in interface TilesContainer
request
- The request.public java.lang.Object evaluate(Attribute attribute, org.apache.tiles.request.Request request)
TilesContainer
evaluate
in interface TilesContainer
attribute
- The attribute to evaluate.request
- The request.public org.apache.tiles.request.ApplicationContext getApplicationContext()
TilesContainer
getApplicationContext
in interface TilesContainer
public AttributeContext getAttributeContext(org.apache.tiles.request.Request request)
TilesContainer
getAttributeContext
in interface TilesContainer
request
- The request.public Definition getDefinition(java.lang.String definitionName, org.apache.tiles.request.Request request)
TilesContainer
getDefinition
in interface TilesContainer
definitionName
- The name of the definition to find.request
- The request context.public boolean isValidDefinition(java.lang.String definition, org.apache.tiles.request.Request request)
TilesContainer
isValidDefinition
in interface TilesContainer
definition
- the name of the definition.request
- The request.public void prepare(java.lang.String preparer, org.apache.tiles.request.Request request)
TilesContainer
prepare
in interface TilesContainer
preparer
- The name of the preparer to execute.request
- The request.public void render(java.lang.String definition, org.apache.tiles.request.Request request)
TilesContainer
render
in interface TilesContainer
definition
- the current definition.request
- The request.public void render(Definition definition, org.apache.tiles.request.Request request)
TilesContainer
render
in interface TilesContainer
definition
- The definition to render.request
- The request context.public void render(Attribute attribute, org.apache.tiles.request.Request request) throws java.io.IOException
TilesContainer
render
in interface TilesContainer
attribute
- The attribute to render.request
- The request.java.io.IOException
- If something goes wrong during writing to the output.public void renderContext(org.apache.tiles.request.Request request)
TilesContainer
renderContext
in interface TilesContainer
request
- The request.public AttributeContext startContext(org.apache.tiles.request.Request request)
TilesContainer
TilesContainer.endContext(Request)
startContext
in interface TilesContainer
request
- The request.Copyright © 2018. All rights reserved.