]> WPIA git - gigi.git/blob - lib/servlet-api/javax/servlet/SessionCookieConfig.java
adding servlet api (from tomcat)
[gigi.git] / lib / servlet-api / javax / servlet / SessionCookieConfig.java
1 /*
2  * Licensed to the Apache Software Foundation (ASF) under one or more
3  * contributor license agreements.  See the NOTICE file distributed with
4  * this work for additional information regarding copyright ownership.
5  * The ASF licenses this file to You under the Apache License, Version 2.0
6  * (the "License"); you may not use this file except in compliance with
7  * the License.  You may obtain a copy of the License at
8  *
9  *      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 javax.servlet;
18
19 /**
20  *
21  * TODO SERVLET3 - Add comments
22  * @since Servlet 3.0
23  */
24 public interface SessionCookieConfig {
25
26     /**
27      *
28      * @param name
29      * @throws IllegalStateException
30      */
31     public void setName(String name);
32
33     public String getName();
34
35     /**
36      *
37      * @param domain
38      * @throws IllegalStateException
39      */
40     public void setDomain(String domain);
41
42     public String getDomain();
43
44     /**
45      *
46      * @param path
47      * @throws IllegalStateException
48      */
49     public void setPath(String path);
50
51     public String getPath();
52
53     /**
54      *
55      * @param comment
56      * @throws IllegalStateException
57      */
58     public void setComment(String comment);
59
60     public String getComment();
61
62     /**
63      *
64      * @param httpOnly
65      * @throws IllegalStateException
66      */
67     public void setHttpOnly(boolean httpOnly);
68
69     public boolean isHttpOnly();
70
71     /**
72      *
73      * @param secure
74      * @throws IllegalStateException
75      */
76     public void setSecure(boolean secure);
77
78     public boolean isSecure();
79
80     /**
81      * Sets the maximum age.
82      *
83      * @param MaxAge the maximum age to set
84      * @throws IllegalStateException
85      */
86     public void setMaxAge(int MaxAge);
87
88     public int getMaxAge();
89
90 }