KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > cocoon > environment > mock > MockCookie


1 /*
2  * Copyright 1999-2004 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

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 JavaDoc comment;
23     private String JavaDoc domain;
24     private int maxage;
25     private String JavaDoc path;
26     private boolean secure;
27     private String JavaDoc name;
28     private String JavaDoc value;
29     private int version;
30
31     public void setComment(String JavaDoc comment) {
32         this.comment = comment;
33     }
34
35     public String JavaDoc getComment() {
36         return comment;
37     }
38
39     public void setDomain(String JavaDoc domain) {
40         this.domain = domain;
41     }
42
43     public String JavaDoc 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 JavaDoc path) {
56         this.path = path;
57     }
58
59     public String JavaDoc 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 JavaDoc name) {
72         this.name= name;
73     }
74
75     public String JavaDoc getName() {
76         return name;
77     }
78
79     public void setValue(String JavaDoc value) {
80         this.value = value;
81     }
82
83     public String JavaDoc 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