001 package railo.runtime.type.scope; 002 003 import java.util.Iterator; 004 import java.util.Map; 005 import java.util.Set; 006 007 import railo.runtime.PageContext; 008 import railo.runtime.dump.DumpData; 009 import railo.runtime.dump.DumpProperties; 010 import railo.runtime.exp.PageException; 011 import railo.runtime.type.Collection; 012 import railo.runtime.type.dt.DateTime; 013 014 public final class VariablesAsSession implements Session { 015 016 private Session session; 017 018 public VariablesAsSession(Session session){ 019 this.session=session; 020 } 021 022 public long getLastAccess() { 023 // TODO Auto-generated method stub 024 return 0; 025 } 026 027 public long getTimeSpan() { 028 // TODO Auto-generated method stub 029 return 0; 030 } 031 032 public boolean isExpired() { 033 // TODO Auto-generated method stub 034 return false; 035 } 036 037 public void touch() { 038 // TODO Auto-generated method stub 039 040 } 041 042 public int getType() { 043 // TODO Auto-generated method stub 044 return 0; 045 } 046 047 public String getTypeAsString() { 048 // TODO Auto-generated method stub 049 return null; 050 } 051 052 public void initialize(PageContext pc) { 053 // TODO Auto-generated method stub 054 055 } 056 057 public boolean isInitalized() { 058 // TODO Auto-generated method stub 059 return false; 060 } 061 062 public void release() { 063 // TODO Auto-generated method stub 064 065 } 066 067 public void clear() { 068 // TODO Auto-generated method stub 069 070 } 071 072 public boolean containsKey(String key) { 073 // TODO Auto-generated method stub 074 return false; 075 } 076 077 public boolean containsKey(Key key) { 078 // TODO Auto-generated method stub 079 return false; 080 } 081 082 public Collection duplicate(boolean deepCopy) { 083 // TODO Auto-generated method stub 084 return null; 085 } 086 087 088 public Object get(String key) throws PageException { 089 // TODO Auto-generated method stub 090 return null; 091 } 092 093 public Object get(Key key) throws PageException { 094 // TODO Auto-generated method stub 095 return null; 096 } 097 098 public Object get(String key, Object defaultValue) { 099 // TODO Auto-generated method stub 100 return null; 101 } 102 103 public Object get(Key key, Object defaultValue) { 104 // TODO Auto-generated method stub 105 return null; 106 } 107 108 public Key[] keys() { 109 // TODO Auto-generated method stub 110 return null; 111 } 112 113 public String[] keysAsString() { 114 // TODO Auto-generated method stub 115 return null; 116 } 117 118 public Object remove(Key key) throws PageException { 119 // TODO Auto-generated method stub 120 return null; 121 } 122 123 public Object removeEL(Key key) { 124 // TODO Auto-generated method stub 125 return null; 126 } 127 128 /** 129 * @see railo.runtime.type.Collection#set(java.lang.String, java.lang.Object) 130 */ 131 public Object set(String key, Object value) throws PageException { 132 return session.set(key, value); 133 } 134 135 /** 136 * @see railo.runtime.type.Collection#set(railo.runtime.type.Collection.Key, java.lang.Object) 137 */ 138 public Object set(Key key, Object value) throws PageException { 139 return session.set(key, value); 140 } 141 142 /** 143 * @see railo.runtime.type.Collection#setEL(java.lang.String, java.lang.Object) 144 */ 145 public Object setEL(String key, Object value) { 146 return session.setEL(key, value); 147 } 148 149 /** 150 * @see railo.runtime.type.Collection#setEL(railo.runtime.type.Collection.Key, java.lang.Object) 151 */ 152 public Object setEL(Key key, Object value) { 153 return session.setEL(key, value); 154 } 155 156 /** 157 * @see railo.runtime.type.Collection#size() 158 */ 159 public int size() { 160 return session.size(); 161 } 162 163 /** 164 * @see railo.runtime.dump.Dumpable#toDumpData(railo.runtime.PageContext, int, railo.runtime.dump.DumpProperties) 165 */ 166 public DumpData toDumpData(PageContext pageContext, int maxlevel,DumpProperties properties) { 167 return session.toDumpData(pageContext, maxlevel, properties); 168 } 169 170 public Iterator iterator() { 171 return session.iterator(); 172 } 173 174 /** 175 * @see railo.runtime.type.Iteratorable#keyIterator() 176 */ 177 public Iterator keyIterator() { 178 return session.keyIterator(); 179 } 180 181 /** 182 * @see railo.runtime.type.Iteratorable#valueIterator() 183 */ 184 public Iterator valueIterator() { 185 return session.valueIterator(); 186 } 187 188 /** 189 * @see railo.runtime.op.Castable#castToBoolean(java.lang.Boolean) 190 */ 191 public Boolean castToBoolean(Boolean defaultValue) { 192 return session.castToBoolean(defaultValue); 193 } 194 195 /** 196 * @see railo.runtime.op.Castable#castToBooleanValue() 197 */ 198 public boolean castToBooleanValue() throws PageException { 199 return session.castToBooleanValue(); 200 } 201 202 /** 203 * @see railo.runtime.op.Castable#castToDateTime() 204 */ 205 public DateTime castToDateTime() throws PageException { 206 return session.castToDateTime(); 207 } 208 209 /** 210 * @see railo.runtime.op.Castable#castToDateTime(railo.runtime.type.dt.DateTime) 211 */ 212 public DateTime castToDateTime(DateTime defaultValue) { 213 return session.castToDateTime(defaultValue); 214 } 215 216 /** 217 * @see railo.runtime.op.Castable#castToDoubleValue() 218 */ 219 public double castToDoubleValue() throws PageException { 220 return session.castToDoubleValue(); 221 } 222 223 /** 224 * @see railo.runtime.op.Castable#castToDoubleValue(double) 225 */ 226 public double castToDoubleValue(double defaultValue) { 227 return session.castToDoubleValue(defaultValue); 228 } 229 230 /** 231 * @see railo.runtime.op.Castable#castToString() 232 */ 233 public String castToString() throws PageException { 234 return session.castToString(); 235 } 236 237 /** 238 * @see railo.runtime.op.Castable#castToString(java.lang.String) 239 */ 240 public String castToString(String defaultValue) { 241 return session.castToString(defaultValue); 242 } 243 244 /** 245 * @see railo.runtime.op.Castable#compareTo(java.lang.String) 246 */ 247 public int compareTo(String str) throws PageException { 248 return compareTo(str); 249 } 250 251 /** 252 * @see railo.runtime.op.Castable#compareTo(boolean) 253 */ 254 public int compareTo(boolean b) throws PageException { 255 return session.compareTo(b); 256 } 257 258 /** 259 * @see railo.runtime.op.Castable#compareTo(double) 260 */ 261 public int compareTo(double d) throws PageException { 262 return session.compareTo(d); 263 } 264 265 /** 266 * @see railo.runtime.op.Castable#compareTo(railo.runtime.type.dt.DateTime) 267 */ 268 public int compareTo(DateTime dt) throws PageException { 269 return session.compareTo(dt); 270 } 271 272 /** 273 * @see java.util.Map#containsKey(java.lang.Object) 274 */ 275 public boolean containsKey(Object key) { 276 return session.containsKey(key); 277 } 278 279 /** 280 * @see java.util.Map#containsValue(java.lang.Object) 281 */ 282 public boolean containsValue(Object value) { 283 return session.containsValue(value); 284 } 285 286 /** 287 * @see java.util.Map#entrySet() 288 */ 289 public Set entrySet() { 290 return session.entrySet(); 291 } 292 293 /** 294 * @see java.util.Map#get(java.lang.Object) 295 */ 296 public Object get(Object key) { 297 return session.get(key); 298 } 299 300 /** 301 * @see java.util.Map#isEmpty() 302 */ 303 public boolean isEmpty() { 304 return session.isEmpty(); 305 } 306 307 /** 308 * @see java.util.Map#keySet() 309 */ 310 public Set keySet() { 311 return session.keySet(); 312 } 313 314 /** 315 * @see java.util.Map#put(java.lang.Object, java.lang.Object) 316 */ 317 public Object put(Object key, Object value) { 318 return session.put(key, value); 319 } 320 321 /** 322 * @see java.util.Map#putAll(java.util.Map) 323 */ 324 public void putAll(Map m) { 325 session.putAll(m); 326 } 327 328 /** 329 * @see java.util.Map#remove(java.lang.Object) 330 */ 331 public Object remove(Object key) { 332 return session.remove(key); 333 } 334 335 /** 336 * @see java.util.Map#values() 337 */ 338 public java.util.Collection values() { 339 return session.values(); 340 } 341 342 /** 343 * @see java.lang.Object#clone() 344 */ 345 public Object clone() { 346 return duplicate(false); 347 } 348 349 }