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

  21. import java.io.Serializable;

  22. /**    
  23.  * ConfigurazioneControlloTraffico
  24.  *
  25.  * @author Poli Andrea (poli@link.it)
  26.  * @author $Author$
  27.  * @version $Rev$, $Date$
  28.  */
  29. public class ConfigurazioneGatewayControlloTraffico extends org.openspcoop2.core.controllo_traffico.beans.ConfigurazioneControlloTraffico implements Serializable , Cloneable {

  30.     /**
  31.      *
  32.      */
  33.     private static final long serialVersionUID = 1L;

  34.     private String tipoDatabaseConfig;
  35.    
  36.     private boolean erroreGenerico; // indicazione se al client deve essere ritornato un errore generico
  37.    
  38.     private boolean policyReadedWithDynamicCache;
  39.        
  40.     private boolean notifierEnabled;
  41.    
  42.     private INotify notifier;
  43.    

  44.     @Override
  45.     public String toString(){
  46.         StringBuilder bf = new StringBuilder();
  47.        
  48.         bf.append("tipoDatabaseConfig="+this.tipoDatabaseConfig);
  49.                
  50.         bf.append(", ");
  51.         bf.append("erroreGenerico="+this.erroreGenerico);
  52.        
  53.         bf.append(", ");
  54.         bf.append("policyReadedWithDynamicCache="+this.policyReadedWithDynamicCache);
  55.        
  56.         bf.append(", ");
  57.         bf.append("notifierEnabled="+this.notifierEnabled);
  58.        
  59.         if(this.notifierEnabled) {
  60.             bf.append(", ");
  61.             bf.append("notifier="+this.notifier.getClass().getName());
  62.         }

  63.         bf.append(", ");
  64.         bf.append(super.toString());
  65.        
  66.         return bf.toString();
  67.     }
  68.    
  69.    
  70.     public String getTipoDatabaseConfig() {
  71.         return this.tipoDatabaseConfig;
  72.     }


  73.     public void setTipoDatabaseConfig(String tipoDatabaseConfig) {
  74.         this.tipoDatabaseConfig = tipoDatabaseConfig;
  75.     }


  76.     public boolean isErroreGenerico() {
  77.         return this.erroreGenerico;
  78.     }


  79.     public void setErroreGenerico(boolean erroreGenerico) {
  80.         this.erroreGenerico = erroreGenerico;
  81.     }


  82.     public boolean isPolicyReadedWithDynamicCache() {
  83.         return this.policyReadedWithDynamicCache;
  84.     }


  85.     public void setPolicyReadedWithDynamicCache(boolean policyReadedWithDynamicCache) {
  86.         this.policyReadedWithDynamicCache = policyReadedWithDynamicCache;
  87.     }

  88.     public boolean isNotifierEnabled() {
  89.         return this.notifierEnabled;
  90.     }

  91.     public void setNotifierEnabled(boolean notifierEnabled) {
  92.         this.notifierEnabled = notifierEnabled;
  93.     }

  94.     public INotify getNotifier() {
  95.         return this.notifier;
  96.     }

  97.     public void setNotifier(INotify notifier) {
  98.         this.notifier = notifier;
  99.     }
  100. }