This project has retired. For details please refer to its Attic page.
CookieInformation xref
View Javadoc
1   package org.apache.archiva.web.model;
2   /*
3    * Licensed to the Apache Software Foundation (ASF) under one
4    * or more contributor license agreements.  See the NOTICE file
5    * distributed with this work for additional information
6    * regarding copyright ownership.  The ASF licenses this file
7    * to you under the Apache License, Version 2.0 (the
8    * "License"); you may not use this file except in compliance
9    * with the License.  You may obtain a copy of the License at
10   *
11   * http://www.apache.org/licenses/LICENSE-2.0
12   *
13   * Unless required by applicable law or agreed to in writing,
14   * software distributed under the License is distributed on an
15   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16   * KIND, either express or implied.  See the License for the
17   * specific language governing permissions and limitations
18   * under the License.
19   */
20  
21  import java.io.Serializable;
22  
23  /**
24   * @author Olivier Lamy
25   * @since 1.4-M4
26   */
27  public class CookieInformation
28      implements Serializable
29  {
30      private String path;
31  
32      private String domain;
33  
34      private String secure;
35  
36      private String timeout;
37  
38      private boolean rememberMeEnabled;
39  
40      public CookieInformation()
41      {
42          // no op
43      }
44  
45      public String getPath()
46      {
47          return path;
48      }
49  
50      public void setPath( String path )
51      {
52          this.path = path;
53      }
54  
55      public String getDomain()
56      {
57          return domain;
58      }
59  
60      public void setDomain( String domain )
61      {
62          this.domain = domain;
63      }
64  
65      public String getSecure()
66      {
67          return secure;
68      }
69  
70      public void setSecure( String secure )
71      {
72          this.secure = secure;
73      }
74  
75      public String getTimeout()
76      {
77          return timeout;
78      }
79  
80      public void setTimeout( String timeout )
81      {
82          this.timeout = timeout;
83      }
84  
85      public boolean isRememberMeEnabled()
86      {
87          return rememberMeEnabled;
88      }
89  
90      public void setRememberMeEnabled( boolean rememberMeEnabled )
91      {
92          this.rememberMeEnabled = rememberMeEnabled;
93      }
94  
95      @Override
96      public String toString()
97      {
98          final StringBuilder sb = new StringBuilder();
99          sb.append( "CookieInformation" );
100         sb.append( "{path='" ).append( path ).append( '\'' );
101         sb.append( ", domain='" ).append( domain ).append( '\'' );
102         sb.append( ", secure='" ).append( secure ).append( '\'' );
103         sb.append( ", timeout='" ).append( timeout ).append( '\'' );
104         sb.append( ", rememberMeEnabled=" ).append( rememberMeEnabled );
105         sb.append( '}' );
106         return sb.toString();
107     }
108 }