1 16 package org.apache.cocoon.environment.mock; 17 18 import org.apache.cocoon.environment.Cookie; 19 20 public class MockCookie implements Cookie { 21 22 private String comment; 23 private String domain; 24 private int maxage; 25 private String path; 26 private boolean secure; 27 private String name; 28 private String value; 29 private int version; 30 31 public void setComment(String comment) { 32 this.comment = comment; 33 } 34 35 public String getComment() { 36 return comment; 37 } 38 39 public void setDomain(String domain) { 40 this.domain = domain; 41 } 42 43 public String getDomain() { 44 return domain; 45 } 46 47 public void setMaxAge(int maxage) { 48 this.maxage = maxage; 49 } 50 51 public int getMaxAge() { 52 return maxage; 53 } 54 55 public void setPath(String path) { 56 this.path = path; 57 } 58 59 public String getPath() { 60 return path; 61 } 62 63 public void setSecure(boolean secure) { 64 this.secure = secure; 65 } 66 67 public boolean getSecure() { 68 return secure; 69 } 70 71 public void setName(String name) { 72 this.name= name; 73 } 74 75 public String getName() { 76 return name; 77 } 78 79 public void setValue(String value) { 80 this.value = value; 81 } 82 83 public String getValue() { 84 return value; 85 } 86 87 public int getVersion() { 88 return version; 89 } 90 91 public void setVersion(int version) { 92 this.version = version; 93 } 94 } 95 96 | Popular Tags |