|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||

public interface TilesContainer
An encapsulation of the tiles framework. This interface is used to expose tiles features to frameworks which leverage it as a plugin. It can alternately be used by web applications which would like a programmatic interface.
| Method Summary | |
|---|---|
void |
endContext(java.lang.Object request,
java.lang.Object response)
Ends a context, where attribute values are stored independently from others. It must be called after a startContext(Object, Object) call. |
void |
endContext(javax.servlet.jsp.PageContext context)
Ends a context, where attribute values are stored independently from others. It must be called after a startContext(PageContext) call. |
TilesApplicationContext |
getApplicationContext()
Retrieve the containers context. |
ComponentContext |
getComponentContext(java.lang.Object request,
java.lang.Object response)
Retrive the component context of the current request. |
ComponentContext |
getComponentContext(javax.servlet.jsp.PageContext context)
Retrieve the component 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.Object request,
java.lang.Object response,
java.lang.String definition)
Determine whether or not the definition exists. |
boolean |
isValidDefinition(javax.servlet.jsp.PageContext pageContext,
java.lang.String definition)
Determine whether or not the definition exists. |
void |
prepare(java.lang.Object request,
java.lang.Object response,
java.lang.String definition)
|
void |
prepare(javax.servlet.jsp.PageContext pageContext,
java.lang.String definition)
|
void |
render(java.lang.Object request,
java.lang.Object response,
java.lang.String definition)
Render the given tiles request |
void |
render(javax.servlet.jsp.PageContext pageContext,
ComponentAttribute attribute)
Render the given ComponentAttribute. |
void |
render(javax.servlet.jsp.PageContext pageContext,
java.lang.String definition)
|
ComponentContext |
startContext(java.lang.Object request,
java.lang.Object response)
Starts a new context, where attribute values are stored independently from others. When the use of the contexts is finished, call endContext(Object, Object) |
ComponentContext |
startContext(javax.servlet.jsp.PageContext context)
Starts a new context, where attribute values are stored independently from others. When the use of the contexts is finished, call endContext(PageContext) |
| Method Detail |
|---|
void init(java.util.Map<java.lang.String,java.lang.String> initParameters)
throws TilesException
initParameters - application context
TilesException - when an initialization error occursTilesApplicationContext getApplicationContext()
ComponentContext getComponentContext(java.lang.Object request,
java.lang.Object response)
request - the current request.response - the current reponse.
ComponentContext getComponentContext(javax.servlet.jsp.PageContext context)
context - the current request.
ComponentContext startContext(java.lang.Object request,
java.lang.Object response)
endContext(Object, Object)
request - the current request.response - the current reponse.
ComponentContext startContext(javax.servlet.jsp.PageContext context)
endContext(PageContext)
context - the current request.
void endContext(java.lang.Object request,
java.lang.Object response)
startContext(Object, Object) call.
request - the current request.response - the current reponse.void endContext(javax.servlet.jsp.PageContext context)
startContext(PageContext) call.
context - the current request.
void prepare(java.lang.Object request,
java.lang.Object response,
java.lang.String definition)
throws TilesException
request - the current requestresponse - the current responsedefinition - the requested definition
TilesException - is processing fails.
void prepare(javax.servlet.jsp.PageContext pageContext,
java.lang.String definition)
throws TilesException
pageContext - the current pageContextdefinition - the current definition
TilesException - is processing fails.
void render(java.lang.Object request,
java.lang.Object response,
java.lang.String definition)
throws TilesException
request - the current requestresponse - the current responsedefinition - the current definition
TilesException - is processing fails.
void render(javax.servlet.jsp.PageContext pageContext,
java.lang.String definition)
throws TilesException
pageContext - the current pageContext.definition - the requested definition.
TilesException - is processing fails.
void render(javax.servlet.jsp.PageContext pageContext,
ComponentAttribute attribute)
throws TilesException,
java.io.IOException
pageContext - attribute -
TilesException
java.io.IOException
boolean isValidDefinition(javax.servlet.jsp.PageContext pageContext,
java.lang.String definition)
pageContext - the current page contextdefinition - the name of the definition.
boolean isValidDefinition(java.lang.Object request,
java.lang.Object response,
java.lang.String definition)
request - the current requestresponse - the current responsedefinition - the name of the definition.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||