ConfigurazioneRateLimiting.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.core.controllo_traffico;

  21. import javax.xml.bind.annotation.XmlAccessType;
  22. import javax.xml.bind.annotation.XmlAccessorType;
  23. import javax.xml.bind.annotation.XmlElement;
  24. import javax.xml.bind.annotation.XmlRootElement;
  25. import javax.xml.bind.annotation.XmlType;
  26. import java.io.Serializable;
  27. import java.util.ArrayList;
  28. import java.util.List;


  29. /** <p>Java class for configurazione-rate-limiting complex type.
  30.  *
  31.  * <p>The following schema fragment specifies the expected content contained within this class.
  32.  *
  33.  * <pre>
  34.  * &lt;complexType name="configurazione-rate-limiting"&gt;
  35.  *      &lt;sequence&gt;
  36.  *          &lt;element name="tipo-errore" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="1" maxOccurs="1" default="fault"/&gt;
  37.  *          &lt;element name="tipo-errore-includi-descrizione" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="1" maxOccurs="1" default="true"/&gt;
  38.  *          &lt;element name="proprieta" type="{http://www.openspcoop2.org/core/controllo_traffico}configurazione-rate-limiting-proprieta" minOccurs="0" maxOccurs="unbounded"/&gt;
  39.  *      &lt;/sequence&gt;
  40.  * &lt;/complexType&gt;
  41.  * </pre>
  42.  *
  43.  * @version $Rev$, $Date$
  44.  *
  45.  * @author Poli Andrea (poli@link.it)
  46.  * @author $Author$
  47.  * */

  48. @XmlAccessorType(XmlAccessType.FIELD)
  49. @XmlType(name = "configurazione-rate-limiting",
  50.   propOrder = {
  51.     "tipoErrore",
  52.     "tipoErroreIncludiDescrizione",
  53.     "proprieta"
  54.   }
  55. )

  56. @XmlRootElement(name = "configurazione-rate-limiting")

  57. public class ConfigurazioneRateLimiting extends org.openspcoop2.utils.beans.BaseBeanWithId implements Serializable , Cloneable {
  58.   public ConfigurazioneRateLimiting() {
  59.     super();
  60.   }

  61.   public java.lang.String getTipoErrore() {
  62.     return this.tipoErrore;
  63.   }

  64.   public void setTipoErrore(java.lang.String tipoErrore) {
  65.     this.tipoErrore = tipoErrore;
  66.   }

  67.   public boolean isTipoErroreIncludiDescrizione() {
  68.     return this.tipoErroreIncludiDescrizione;
  69.   }

  70.   public boolean getTipoErroreIncludiDescrizione() {
  71.     return this.tipoErroreIncludiDescrizione;
  72.   }

  73.   public void setTipoErroreIncludiDescrizione(boolean tipoErroreIncludiDescrizione) {
  74.     this.tipoErroreIncludiDescrizione = tipoErroreIncludiDescrizione;
  75.   }

  76.   public void addProprieta(ConfigurazioneRateLimitingProprieta proprieta) {
  77.     this.proprieta.add(proprieta);
  78.   }

  79.   public ConfigurazioneRateLimitingProprieta getProprieta(int index) {
  80.     return this.proprieta.get( index );
  81.   }

  82.   public ConfigurazioneRateLimitingProprieta removeProprieta(int index) {
  83.     return this.proprieta.remove( index );
  84.   }

  85.   public List<ConfigurazioneRateLimitingProprieta> getProprietaList() {
  86.     return this.proprieta;
  87.   }

  88.   public void setProprietaList(List<ConfigurazioneRateLimitingProprieta> proprieta) {
  89.     this.proprieta=proprieta;
  90.   }

  91.   public int sizeProprietaList() {
  92.     return this.proprieta.size();
  93.   }

  94.   private static final long serialVersionUID = 1L;



  95.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  96.   @XmlElement(name="tipo-errore",required=true,nillable=false,defaultValue="fault")
  97.   protected java.lang.String tipoErrore = "fault";

  98.   @javax.xml.bind.annotation.XmlSchemaType(name="boolean")
  99.   @XmlElement(name="tipo-errore-includi-descrizione",required=true,nillable=false,defaultValue="true")
  100.   protected boolean tipoErroreIncludiDescrizione = true;

  101.   @XmlElement(name="proprieta",required=true,nillable=false)
  102.   private List<ConfigurazioneRateLimitingProprieta> proprieta = new ArrayList<>();

  103.   /**
  104.    * Use method getProprietaList
  105.    * @return List&lt;ConfigurazioneRateLimitingProprieta&gt;
  106.   */
  107.   public List<ConfigurazioneRateLimitingProprieta> getProprieta() {
  108.     return this.getProprietaList();
  109.   }

  110.   /**
  111.    * Use method setProprietaList
  112.    * @param proprieta List&lt;ConfigurazioneRateLimitingProprieta&gt;
  113.   */
  114.   public void setProprieta(List<ConfigurazioneRateLimitingProprieta> proprieta) {
  115.     this.setProprietaList(proprieta);
  116.   }

  117.   /**
  118.    * Use method sizeProprietaList
  119.    * @return lunghezza della lista
  120.   */
  121.   public int sizeProprieta() {
  122.     return this.sizeProprietaList();
  123.   }

  124. }