public class RouteDirective
extends org.apache.velocity.runtime.directive.Directive
Router| Constructor and Description |
|---|
RouteDirective() |
| Modifier and Type | Method and Description |
|---|---|
String |
getName()
Name of the Velocity directive to be called from the .vm views
#route
|
int |
getType()
This directive is a "LINE directive", meaning it has to be
written on a single line.
|
boolean |
render(org.apache.velocity.context.InternalContextAdapter context,
Writer writer,
org.apache.velocity.runtime.parser.node.Node node)
Renders the directive
|
public String getName()
getName in class org.apache.velocity.runtime.directive.Directivepublic 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,
org.apache.velocity.exception.ResourceNotFoundException,
org.apache.velocity.exception.ParseErrorException,
org.apache.velocity.exception.MethodInvocationException
render in class org.apache.velocity.runtime.directive.Directivecontext - velocity contextwriter - used for writing directive result in the viewnode - body of the directive (params, content)IOExceptionorg.apache.velocity.exception.ResourceNotFoundExceptionorg.apache.velocity.exception.ParseErrorExceptionorg.apache.velocity.exception.MethodInvocationExceptionCopyright © 2010-2014. All Rights Reserved.