1 15 package org.apache.tapestry.describe; 16 17 import javax.servlet.http.Cookie ; 18 19 23 public class CookieStrategy implements DescribableStrategy 24 { 25 26 public void describeObject(Object object, DescriptionReceiver receiver) 27 { 28 Cookie cookie = (Cookie ) object; 29 30 receiver.title("Cookie: " + cookie.getName()); 31 32 receiver.property("comment", cookie.getComment()); 33 receiver.property("domain", cookie.getDomain()); 34 receiver.property("maxAge", cookie.getMaxAge()); 35 receiver.property("path", cookie.getPath()); 36 receiver.property("secure", cookie.getSecure()); 37 receiver.property("value", cookie.getValue()); 38 receiver.property("version", cookie.getVersion()); 39 } 40 41 } | Popular Tags |