ConfigurazioneUrlInvocazione.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.config;

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


  30. /** <p>Java class for configurazione-url-invocazione complex type.
  31.  *
  32.  * <p>The following schema fragment specifies the expected content contained within this class.
  33.  *
  34.  * <pre>
  35.  * &lt;complexType name="configurazione-url-invocazione"&gt;
  36.  *      &lt;sequence&gt;
  37.  *          &lt;element name="regola" type="{http://www.openspcoop2.org/core/config}configurazione-url-invocazione-regola" minOccurs="0" maxOccurs="unbounded"/&gt;
  38.  *      &lt;/sequence&gt;
  39.  *      &lt;attribute name="base-url" type="{http://www.w3.org/2001/XMLSchema}string" use="required"/&gt;
  40.  *      &lt;attribute name="base-url-fruizione" type="{http://www.w3.org/2001/XMLSchema}string" use="optional"/&gt;
  41.  * &lt;/complexType&gt;
  42.  * </pre>
  43.  *
  44.  * @version $Rev$, $Date$
  45.  *
  46.  * @author Poli Andrea (poli@link.it)
  47.  * @author $Author$
  48.  * */

  49. @XmlAccessorType(XmlAccessType.FIELD)
  50. @XmlType(name = "configurazione-url-invocazione",
  51.   propOrder = {
  52.     "regola"
  53.   }
  54. )

  55. @XmlRootElement(name = "configurazione-url-invocazione")

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

  60.   public void addRegola(ConfigurazioneUrlInvocazioneRegola regola) {
  61.     this.regola.add(regola);
  62.   }

  63.   public ConfigurazioneUrlInvocazioneRegola getRegola(int index) {
  64.     return this.regola.get( index );
  65.   }

  66.   public ConfigurazioneUrlInvocazioneRegola removeRegola(int index) {
  67.     return this.regola.remove( index );
  68.   }

  69.   public List<ConfigurazioneUrlInvocazioneRegola> getRegolaList() {
  70.     return this.regola;
  71.   }

  72.   public void setRegolaList(List<ConfigurazioneUrlInvocazioneRegola> regola) {
  73.     this.regola=regola;
  74.   }

  75.   public int sizeRegolaList() {
  76.     return this.regola.size();
  77.   }

  78.   public java.lang.String getBaseUrl() {
  79.     return this.baseUrl;
  80.   }

  81.   public void setBaseUrl(java.lang.String baseUrl) {
  82.     this.baseUrl = baseUrl;
  83.   }

  84.   public java.lang.String getBaseUrlFruizione() {
  85.     return this.baseUrlFruizione;
  86.   }

  87.   public void setBaseUrlFruizione(java.lang.String baseUrlFruizione) {
  88.     this.baseUrlFruizione = baseUrlFruizione;
  89.   }

  90.   private static final long serialVersionUID = 1L;



  91.   @XmlElement(name="regola",required=true,nillable=false)
  92.   private List<ConfigurazioneUrlInvocazioneRegola> regola = new ArrayList<>();

  93.   /**
  94.    * Use method getRegolaList
  95.    * @return List&lt;ConfigurazioneUrlInvocazioneRegola&gt;
  96.   */
  97.   public List<ConfigurazioneUrlInvocazioneRegola> getRegola() {
  98.     return this.getRegolaList();
  99.   }

  100.   /**
  101.    * Use method setRegolaList
  102.    * @param regola List&lt;ConfigurazioneUrlInvocazioneRegola&gt;
  103.   */
  104.   public void setRegola(List<ConfigurazioneUrlInvocazioneRegola> regola) {
  105.     this.setRegolaList(regola);
  106.   }

  107.   /**
  108.    * Use method sizeRegolaList
  109.    * @return lunghezza della lista
  110.   */
  111.   public int sizeRegola() {
  112.     return this.sizeRegolaList();
  113.   }

  114.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  115.   @XmlAttribute(name="base-url",required=true)
  116.   protected java.lang.String baseUrl;

  117.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  118.   @XmlAttribute(name="base-url-fruizione",required=false)
  119.   protected java.lang.String baseUrlFruizione;

  120. }