public class GetAsStringDirective extends BlockDirective
GetAsStringModel
to be used in Velocity. For the list of
parameters, see
GetAsStringModel#start(java.util.Stack, org.apache.tiles.TilesContainer, boolean,
String, String, Object, String, String, String, Attribute, Object...)
, GetAsStringModel#end(java.util.Stack, org.apache.tiles.TilesContainer, Writer, boolean, Object...)
and
GetAsStringModel.execute(TilesContainer, Writer, boolean, String,
String, Object, String, String, String, Attribute, Object...)
.Constructor and Description |
---|
GetAsStringDirective()
Default constructor.
|
GetAsStringDirective(GetAsStringModel 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,
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, render
public GetAsStringDirective()
public GetAsStringDirective(GetAsStringModel 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, HttpServletRequest request, HttpServletResponse response, ServletContext servletContext) throws java.io.IOException
end
in class BlockDirective
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.java.io.IOException
- If something goes wrong when finishing this directive.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 BlockDirective
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.