1 48 49 package org.jpublish.view.velocity; 50 51 import org.apache.velocity.context.Context; 52 import org.jpublish.RequestContext; 53 54 59 60 public class VelocityViewContext implements Context { 61 62 private RequestContext context; 63 64 69 70 public VelocityViewContext(RequestContext context) { 71 this.context = context; 72 } 73 74 80 81 public Object put(String key, Object value) { 82 return context.put(key, value); 83 } 84 85 91 92 public Object get(String key) { 93 return context.get(key); 94 } 95 96 102 103 public Object remove(Object key) { 104 return context.remove(key.toString()); 105 } 106 107 113 114 public boolean containsKey(Object key) { 115 return context.containsKey(key.toString()); 116 } 117 118 123 124 public Object [] getKeys() { 125 return context.getKeys(); 126 } 127 128 } 129 | Popular Tags |