Cookie.java

  1. /*
  2.  * GovWay - A customizable API Gateway
  3.  * https://govway.org
  4.  *
  5.  * Copyright (c) 2005-2025 Link.it srl (https://link.it).
  6.  *
  7.  * This program is free software: you can redistribute it and/or modify
  8.  * it under the terms of the GNU General Public License version 3, as published by
  9.  * the Free Software Foundation.
  10.  *
  11.  * This program is distributed in the hope that it will be useful,
  12.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14.  * GNU General Public License for more details.
  15.  *
  16.  * You should have received a copy of the GNU General Public License
  17.  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  18.  *
  19.  */

  20. package org.openspcoop2.utils.rest.entity;

  21. /**
  22.  * Cookie
  23.  *
  24.  *
  25.  * @author Poli Andrea (apoli@link.it)
  26.  * @author $Author$
  27.  * @version $Rev$, $Date$
  28.  */
  29. public class Cookie  {

  30.     private String name;
  31.     private String value;
  32.     private String domain;
  33.     private int maxAge;
  34.     private String path;
  35.     private boolean secure;
  36.     private int version;
  37.    
  38.     public Cookie(String name, String value){
  39.         this.name = name;
  40.         this.value = value;
  41.     }
  42.    
  43.     public String getName() {
  44.         return this.name;
  45.     }
  46.     public void setName(String name) {
  47.         this.name = name;
  48.     }
  49.     public String getValue() {
  50.         return this.value;
  51.     }
  52.     public void setValue(String value) {
  53.         this.value = value;
  54.     }
  55.     public String getDomain() {
  56.         return this.domain;
  57.     }
  58.     public void setDomain(String domain) {
  59.         this.domain = domain;
  60.     }
  61.     public int getMaxAge() {
  62.         return this.maxAge;
  63.     }
  64.     public void setMaxAge(int maxAge) {
  65.         this.maxAge = maxAge;
  66.     }
  67.     public String getPath() {
  68.         return this.path;
  69.     }
  70.     public void setPath(String path) {
  71.         this.path = path;
  72.     }
  73.     public boolean isSecure() {
  74.         return this.secure;
  75.     }
  76.     public void setSecure(boolean secure) {
  77.         this.secure = secure;
  78.     }
  79.     public int getVersion() {
  80.         return this.version;
  81.     }
  82.     public void setVersion(int version) {
  83.         this.version = version;
  84.     }
  85. }