SogliaDimensioneMessaggio.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.  * SoglieDimensioneMessaggi
  24.  *
  25.  * @author Poli Andrea (apoli@link.it)
  26.  * @author $Author$
  27.  * @version $Rev$, $Date$
  28.  */
  29. public class SogliaDimensioneMessaggio implements Serializable {

  30.     /**
  31.      *
  32.      */
  33.     private static final long serialVersionUID = 1L;
  34.    
  35.     private boolean policyGlobale = false;
  36.     private long sogliaKb = -1;
  37.     private String nomePolicy;
  38.     private String idPolicyConGruppo;
  39.     private String configurazione;
  40.     private boolean useContentLengthHeader = true;
  41.     private boolean useContentLengthHeaderAcceptZeroValue = true;
  42.    
  43.     public boolean isUseContentLengthHeader() {
  44.         return this.useContentLengthHeader;
  45.     }
  46.     public void setUseContentLengthHeader(boolean useContentLengthHeader) {
  47.         this.useContentLengthHeader = useContentLengthHeader;
  48.     }
  49.     public boolean isUseContentLengthHeaderAcceptZeroValue() {
  50.         return this.useContentLengthHeaderAcceptZeroValue;
  51.     }
  52.     public void setUseContentLengthHeaderAcceptZeroValue(boolean useContentLengthHeaderAcceptZeroValue) {
  53.         this.useContentLengthHeaderAcceptZeroValue = useContentLengthHeaderAcceptZeroValue;
  54.     }
  55.     public boolean isPolicyGlobale() {
  56.         return this.policyGlobale;
  57.     }
  58.     public void setPolicyGlobale(boolean policyGlobale) {
  59.         this.policyGlobale = policyGlobale;
  60.     }
  61.     public long getSogliaKb() {
  62.         return this.sogliaKb;
  63.     }
  64.     public void setSogliaKb(long sogliaKb) {
  65.         this.sogliaKb = sogliaKb;
  66.     }
  67.     public String getNomePolicy() {
  68.         return this.nomePolicy;
  69.     }
  70.     public void setNomePolicy(String nomePolicy) {
  71.         this.nomePolicy = nomePolicy;
  72.     }
  73.     public String getIdPolicyConGruppo() {
  74.         return this.idPolicyConGruppo;
  75.     }
  76.     public void setIdPolicyConGruppo(String idPolicyConGruppo) {
  77.         this.idPolicyConGruppo = idPolicyConGruppo;
  78.     }
  79.     public String getConfigurazione() {
  80.         return this.configurazione;
  81.     }
  82.     public void setConfigurazione(String configurazione) {
  83.         this.configurazione = configurazione;
  84.     }
  85. }