org.apache.tiles
public interface TilesContainer
Modifier and Type | Method and Description |
---|---|
void |
endContext(java.lang.Object... requestItems)
Ends a context, where attribute values are stored independently
from others.
It must be called after a startContext(Object...) call. |
java.lang.Object |
evaluate(Attribute attribute,
java.lang.Object... requestItems)
Evaluates the given attribute.
|
TilesApplicationContext |
getApplicationContext()
Retrieve the containers context.
|
AttributeContext |
getAttributeContext(java.lang.Object... requestItems)
Retrive the attribute context of the current request.
|
void |
init(java.util.Map<java.lang.String,java.lang.String> initParameters)
Initialize the container with the given
configuration.
|
boolean |
isValidDefinition(java.lang.String definition,
java.lang.Object... requestItems)
Determine whether or not the definition exists.
|
void |
prepare(java.lang.String preparer,
java.lang.Object... requestItems)
Executes a preparer.
|
void |
render(Attribute attribute,
java.lang.Object... requestItems)
Render the given Attribute.
|
void |
render(Attribute attribute,
java.io.Writer writer,
java.lang.Object... requestItems)
Deprecated.
|
void |
render(java.lang.String definition,
java.lang.Object... requestItems)
Render the given tiles request.
|
void |
renderContext(java.lang.Object... requestItems)
Renders the current context, as it is.
|
AttributeContext |
startContext(java.lang.Object... requestItems)
Starts a new context, where attribute values are stored independently
from others.
When the use of the contexts is finished, call endContext(Object...) |
void init(java.util.Map<java.lang.String,java.lang.String> initParameters)
initParameters
- application contextTilesApplicationContext getApplicationContext()
AttributeContext getAttributeContext(java.lang.Object... requestItems)
requestItems
- the current request objects.AttributeContext startContext(java.lang.Object... requestItems)
endContext(Object...)
requestItems
- the current request objects.void endContext(java.lang.Object... requestItems)
startContext(Object...)
call.requestItems
- the current request objects.void renderContext(java.lang.Object... requestItems)
requestItems
- the current request objects.void prepare(java.lang.String preparer, java.lang.Object... requestItems)
preparer
- The name of the preparer to execute.requestItems
- the current request objects.void render(java.lang.String definition, java.lang.Object... requestItems)
definition
- the current definition.requestItems
- the current request objects.@Deprecated void render(Attribute attribute, java.io.Writer writer, java.lang.Object... requestItems) throws java.io.IOException
render(Attribute, Object...)
.attribute
- The attribute to render.writer
- A writer. IT WON'T BE EVALUATED!!!requestItems
- the current request objects.java.io.IOException
- If something goes wrong during writing to the output.void render(Attribute attribute, java.lang.Object... requestItems) throws java.io.IOException
attribute
- The attribute to render.requestItems
- the current request objects.java.io.IOException
- If something goes wrong during writing to the output.java.lang.Object evaluate(Attribute attribute, java.lang.Object... requestItems)
attribute
- The attribute to evaluate.requestItems
- the current request objects.boolean isValidDefinition(java.lang.String definition, java.lang.Object... requestItems)
definition
- the name of the definition.requestItems
- the current request objects.