예제 #1
0
 public void setAttribute(String name, Object value) {
   if (name == null) {
     throw new NullPointerException("null name parameter");
   }
   if (attributes == null) {
     attributes = getHttpContext().getAttributes();
   }
   attributes.put(name, value);
 }
예제 #2
0
 public Object getAttribute(String name) {
   if (name == null) {
     throw new NullPointerException("null name parameter");
   }
   if (attributes == null) {
     attributes = getHttpContext().getAttributes();
   }
   return attributes.get(name);
 }