public class InsertAttributeDirective extends BlockDirective
InsertAttributeModel to be used in Velocity. For the list of
parameters, see
InsertAttributeModel#start(java.util.Stack, org.apache.tiles.TilesContainer, boolean,
String, String, Object, String, String, String, Attribute, Object...)
, InsertAttributeModel#end(java.util.Stack, org.apache.tiles.TilesContainer, boolean, Object...) and
InsertAttributeModel.execute(org.apache.tiles.TilesContainer, boolean, String, String,
Object, String, String, String, Attribute, Object...).| Constructor and Description |
|---|
InsertAttributeDirective()
Default constructor.
|
InsertAttributeDirective(InsertAttributeModel model)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
end(org.apache.velocity.context.InternalContextAdapter context,
Writer writer,
Map<String,Object> params,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
javax.servlet.ServletContext servletContext)
Ends the directive, after evaluating the body.
|
String |
getName() |
protected void |
start(org.apache.velocity.context.InternalContextAdapter context,
Writer writer,
Map<String,Object> params,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
javax.servlet.ServletContext servletContext)
Starts the directive, before evaluating the body.
|
getType, renderpublic InsertAttributeDirective()
public InsertAttributeDirective(InsertAttributeModel model)
model - The used model.public String getName()
getName in class org.apache.velocity.runtime.directive.Directiveprotected void end(org.apache.velocity.context.InternalContextAdapter context,
Writer writer,
Map<String,Object> params,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
javax.servlet.ServletContext servletContext)
throws IOException
end in class BlockDirectivecontext - The Velocity context.writer - The writer user to write the result.params - The parameters got from the first node of the directive.request - The HTTP request.response - The HTTP response.servletContext - The servlet context.IOException - If something goes wrong when finishing this directive.protected void start(org.apache.velocity.context.InternalContextAdapter context,
Writer writer,
Map<String,Object> params,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
javax.servlet.ServletContext servletContext)
start in class BlockDirectivecontext - The Velocity context.writer - The writer user to write the result.params - The parameters got from the first node of the directive.request - The HTTP request.response - The HTTP response.servletContext - The servlet context.Copyright © 2025. All rights reserved.