public interface TilesContainer
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 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 endContext(Request) |
ApplicationContext getApplicationContext()
AttributeContext getAttributeContext(Request request)
request
- The request.AttributeContext startContext(Request request)
endContext(Request)
request
- The request.void endContext(Request request)
startContext(Request)
call.request
- The request.void renderContext(Request request)
request
- The request.void prepare(String preparer, Request request)
preparer
- The name of the preparer to execute.request
- The request.void render(String definition, Request request)
definition
- the current definition.request
- The request.void render(Definition definition, Request request)
definition
- The definition to render.request
- The request context.void render(Attribute attribute, Request request) throws IOException
attribute
- The attribute to render.request
- The request.IOException
- If something goes wrong during writing to the output.Object evaluate(Attribute attribute, Request request)
attribute
- The attribute to evaluate.request
- The request.Definition getDefinition(String definitionName, Request request)
definitionName
- The name of the definition to find.request
- The request context.Copyright © 2000–2024 Apache Software Foundation. All rights reserved.