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); }
public Object getAttribute(String name) { if (name == null) { throw new NullPointerException("null name parameter"); } if (attributes == null) { attributes = getHttpContext().getAttributes(); } return attributes.get(name); }