public abstract class BlockDirective
extends org.apache.velocity.runtime.directive.Directive
Constructor and Description |
---|
BlockDirective() |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
end(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)
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.Directive
public 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.Directive
IOException
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)
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, 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.request
- The HTTP request.response
- The HTTP response.servletContext
- The servlet context.IOException
- If something goes wrong when finishing this directive.Copyright © 2017. All rights reserved.