01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: */
17: package org.apache.cocoon.environment.mock;
18:
19: import org.apache.cocoon.environment.Cookie;
20:
21: public class MockCookie implements Cookie {
22:
23: private String comment;
24: private String domain;
25: private int maxage;
26: private String path;
27: private boolean secure;
28: private String name;
29: private String value;
30: private int version;
31:
32: public void setComment(String comment) {
33: this .comment = comment;
34: }
35:
36: public String getComment() {
37: return comment;
38: }
39:
40: public void setDomain(String domain) {
41: this .domain = domain;
42: }
43:
44: public String getDomain() {
45: return domain;
46: }
47:
48: public void setMaxAge(int maxage) {
49: this .maxage = maxage;
50: }
51:
52: public int getMaxAge() {
53: return maxage;
54: }
55:
56: public void setPath(String path) {
57: this .path = path;
58: }
59:
60: public String getPath() {
61: return path;
62: }
63:
64: public void setSecure(boolean secure) {
65: this .secure = secure;
66: }
67:
68: public boolean getSecure() {
69: return secure;
70: }
71:
72: public void setName(String name) {
73: this .name = name;
74: }
75:
76: public String getName() {
77: return name;
78: }
79:
80: public void setValue(String value) {
81: this .value = value;
82: }
83:
84: public String getValue() {
85: return value;
86: }
87:
88: public int getVersion() {
89: return version;
90: }
91:
92: public void setVersion(int version) {
93: this.version = version;
94: }
95: }
|