| 1 | |
package org.webslinger.template.velocity; |
| 2 | |
|
| 3 | |
import java.util.Map; |
| 4 | |
|
| 5 | |
import org.apache.velocity.VelocityContext; |
| 6 | |
|
| 7 | 5996 | public class LocalVelocityContext extends VelocityContext { |
| 8 | |
private final Object body; |
| 9 | |
|
| 10 | |
public LocalVelocityContext(Object body, Map<String, Object> context) { |
| 11 | 535 | super(context); |
| 12 | 535 | this.body = body; |
| 13 | 535 | } |
| 14 | |
|
| 15 | |
public LocalVelocityContext(Object body) { |
| 16 | 0 | super(); |
| 17 | 0 | this.body = body; |
| 18 | 0 | } |
| 19 | |
|
| 20 | |
public Object getBody() { |
| 21 | 418 | return body; |
| 22 | |
} |
| 23 | |
} |