public abstract class BodyBlockDirective
extends Directive
Constructor and Description |
---|
BodyBlockDirective() |
Modifier and Type | Method and Description |
---|---|
protected abstract 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.
|
int |
getType() |
boolean |
render(InternalContextAdapter context,
java.io.Writer writer,
Node node) |
protected abstract 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.
|
public int getType()
public boolean render(InternalContextAdapter context, java.io.Writer writer, Node node) throws java.io.IOException
java.io.IOException
protected abstract void start(InternalContextAdapter context, java.io.Writer writer, java.util.Map<java.lang.String,java.lang.Object> params, HttpServletRequest request, HttpServletResponse response, ServletContext servletContext)
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.protected abstract 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) throws java.io.IOException
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.java.io.IOException
- If something goes wrong when finishing this directive.