public class PutAttributeDirective extends BodyBlockDirective
PutAttributeModel
to be used in Velocity. For the list of
parameters, see
PutAttributeModel#start(java.util.Stack)
, PutAttributeModel#end(org.apache.tiles.TilesContainer,
java.util.Stack, String, Object, String, String, String, String, boolean, Object...)
and
PutAttributeModel#execute(org.apache.tiles.TilesContainer,
java.util.Stack, String, Object, String, String, String, String, boolean, Object...)
.Constructor and Description |
---|
PutAttributeDirective()
Default constructor.
|
PutAttributeDirective(PutAttributeModel model)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
end(org.apache.velocity.context.InternalContextAdapter context,
Writer writer,
Map<String,Object> params,
String body,
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, render
public PutAttributeDirective()
public PutAttributeDirective(PutAttributeModel model)
model
- The used model.public String getName()
getName
in class org.apache.velocity.runtime.directive.Directive
protected void end(org.apache.velocity.context.InternalContextAdapter context, Writer writer, Map<String,Object> params, String body, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.ServletContext servletContext)
end
in class BodyBlockDirective
context
- 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(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 BodyBlockDirective
context
- 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 © 2016. All rights reserved.