public abstract class BodyBlockDirective
extends org.apache.velocity.runtime.directive.Directive
| Constructor and Description |
|---|
BodyBlockDirective() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract 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.
|
int |
getType() |
boolean |
render(org.apache.velocity.context.InternalContextAdapter context,
Writer writer,
org.apache.velocity.runtime.parser.node.Node node) |
protected abstract 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.
|
public int getType()
getType in class org.apache.velocity.runtime.directive.Directivepublic boolean render(org.apache.velocity.context.InternalContextAdapter context,
Writer writer,
org.apache.velocity.runtime.parser.node.Node node)
throws IOException
render in class org.apache.velocity.runtime.directive.DirectiveIOExceptionprotected abstract 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)
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(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)
throws 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.IOException - If something goes wrong when finishing this directive.Copyright © 2025. All rights reserved.