org.apache.tiles.velocity.template
Class AddAttributeVModel

Package class diagram package AddAttributeVModel
java.lang.Object
  extended by org.apache.tiles.velocity.template.AddAttributeVModel
All Implemented Interfaces:
BodyExecutable, Executable

public class AddAttributeVModel
extends Object
implements Executable, BodyExecutable

Wraps AddAttributeModel to be used in Velocity. For the list of parameters, see AddAttributeModel#start(java.util.Stack), AddAttributeModel#end(java.util.Stack, Object, String, String, String, String) and AddAttributeModel#execute(java.util.Stack, Object, String, String, String, String)

Since:
2.2.0
Version:
$Rev: 787736 $ $Date: 2009-06-23 17:52:08 +0200 (mar, 23 giu 2009) $

Constructor Summary
AddAttributeVModel(AddAttributeModel model)
          Constructor.
 
Method Summary
 org.apache.velocity.runtime.Renderable end(HttpServletRequest request, HttpServletResponse response, org.apache.velocity.context.Context velocityContext)
          Ends the execution of the commands.
 org.apache.velocity.runtime.Renderable execute(HttpServletRequest request, HttpServletResponse response, org.apache.velocity.context.Context velocityContext, Map<String,Object> params)
          Executes the command.
 void start(HttpServletRequest request, HttpServletResponse response, org.apache.velocity.context.Context velocityContext, Map<String,Object> params)
          Starts the execution of the commands.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AddAttributeVModel

public AddAttributeVModel(AddAttributeModel model)
Constructor.

Parameters:
model - The template model.
Since:
2.2.0
Method Detail

execute

public org.apache.velocity.runtime.Renderable execute(HttpServletRequest request,
                                                      HttpServletResponse response,
                                                      org.apache.velocity.context.Context velocityContext,
                                                      Map<String,Object> params)
Executes the command.

Specified by:
execute in interface Executable
Parameters:
request - The HTTP request.
response - The HTTP response-
velocityContext - The Velocity context.
params - The map of the parameters.
Returns:
A renderable object. It does not necessary render anything.

end

public org.apache.velocity.runtime.Renderable end(HttpServletRequest request,
                                                  HttpServletResponse response,
                                                  org.apache.velocity.context.Context velocityContext)
Ends the execution of the commands.

Specified by:
end in interface BodyExecutable
Parameters:
request - The HTTP request.
response - The HTTP response-
velocityContext - The Velocity context.
Returns:
A renderable object. It does not necessary render anything.

start

public void start(HttpServletRequest request,
                  HttpServletResponse response,
                  org.apache.velocity.context.Context velocityContext,
                  Map<String,Object> params)
Starts the execution of the commands.

Specified by:
start in interface BodyExecutable
Parameters:
request - The HTTP request.
response - The HTTP response-
velocityContext - The Velocity context.
params - The map of the parameters.


Copyright © 2001-2009 Apache Software Foundation. All Rights Reserved.