UrlParameters.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.web.ctrlstat.core;

  21. import java.util.ArrayList;
  22. import java.util.List;

  23. import org.openspcoop2.web.lib.mvc.Parameter;

  24. /**
  25.  * UrlParameters
  26.  *
  27.  * @author Poli Andrea (apoli@link.it)
  28.  * @author $Author$
  29.  * @version $Rev$, $Date$
  30.  */
  31. public class UrlParameters {

  32.     private String url;
  33.     private List<Parameter> parameter = new ArrayList<>();
  34.    
  35.     public String getUrl() {
  36.         return this.url;
  37.     }
  38.     public void setUrl(String url) {
  39.         this.url = url;
  40.     }
  41.    
  42.     public int sizeParameter() {
  43.         return this.parameter.size();
  44.     }
  45.     public boolean addParameter(Parameter e) {
  46.         return this.parameter.add(e);
  47.     }
  48.     public Parameter getParameter(int index) {
  49.         return this.parameter.get(index);
  50.     }
  51.     public Parameter removeParameter(int index) {
  52.         return this.parameter.remove(index);
  53.     }
  54.     public List<Parameter> getParameter() {
  55.         return this.parameter;
  56.     }
  57.    
  58. }