public class AddAttributeDirective extends BodyBlockDirective
AddAttributeModel to be used in Velocity. For the list of
parameters, see AddAttributeModel#start(java.util.Stack),
AddAttributeModel#end(java.util.Stack, Object, String, String, String, String)
and AddAttributeModel#execute(java.util.Stack, Object, String, String, String, String)| Constructor and Description |
|---|
AddAttributeDirective()
Default constructor.
|
AddAttributeDirective(AddAttributeModel model)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
end(InternalContextAdapter context,
java.io.Writer writer,
java.util.Map<java.lang.String,java.lang.Object> params,
java.lang.String body,
HttpServletRequest request,
HttpServletResponse response,
ServletContext servletContext)
Ends the directive, after evaluating the body.
|
java.lang.String |
getName() |
protected void |
start(InternalContextAdapter context,
java.io.Writer writer,
java.util.Map<java.lang.String,java.lang.Object> params,
HttpServletRequest request,
HttpServletResponse response,
ServletContext servletContext)
Starts the directive, before evaluating the body.
|
getType, renderpublic AddAttributeDirective()
public AddAttributeDirective(AddAttributeModel model)
model - The used model.public java.lang.String getName()
protected void end(InternalContextAdapter context,
java.io.Writer writer,
java.util.Map<java.lang.String,java.lang.Object> params,
java.lang.String body,
HttpServletRequest request,
HttpServletResponse response,
ServletContext servletContext)
end in class BodyBlockDirectivecontext - The Velocity context.writer - The writer user to write the result.params - The parameters got from the first node of the directive.body - The body contained in this directive, as a string.request - The HTTP request.response - The HTTP response.servletContext - The servlet context.protected void start(InternalContextAdapter context,
java.io.Writer writer,
java.util.Map<java.lang.String,java.lang.Object> params,
HttpServletRequest request,
HttpServletResponse response,
ServletContext servletContext)
start in class BodyBlockDirectivecontext - 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.