DimensioneMessaggiAttraversamentoPdD.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;

  21. import java.io.Serializable;

  22. /**
  23.  * Classe utilizzata per rappresentare le dimensioni dei messaggi che attraversamo la PdD
  24.  *
  25.  * @author Poli Andrea (apoli@link.it)
  26.  * @author Tronci Fabio (tronci@link.it)
  27.  *
  28.  * @author $Author$
  29.  * @version $Rev$, $Date$
  30.  */
  31. public class DimensioneMessaggiAttraversamentoPdD implements Serializable {

  32.     private static final long serialVersionUID = 1L;
  33.        
  34.     private Long ricezioneMsgIngresso = null ;
  35.     private Long ricezioneMsgRisposta = null ;
  36.     private Long spedizioneMessaggioIngresso = null ;
  37.    


  38.     public Long getRicezioneMsgIngresso() {
  39.         return this.ricezioneMsgIngresso;
  40.     }

  41.     public void setRicezioneMsgIngresso(Long ricezioneMsgIngresso) {
  42.         this.ricezioneMsgIngresso = ricezioneMsgIngresso;
  43.     }

  44.     public Long getRicezioneMsgRisposta() {
  45.         return this.ricezioneMsgRisposta;
  46.     }

  47.     public void setRicezioneMsgRisposta(Long ricezioneMsgRisposta) {
  48.         this.ricezioneMsgRisposta = ricezioneMsgRisposta;
  49.     }

  50.     public Long getSpedizioneMessaggioIngresso() {
  51.         return this.spedizioneMessaggioIngresso;
  52.     }

  53.     public void setSpedizioneMessaggioIngresso(
  54.             Long spedizioneMessaggioIngresso) {
  55.         this.spedizioneMessaggioIngresso = spedizioneMessaggioIngresso;
  56.     }

  57.     public DimensioneMessaggiAttraversamentoPdD(Long ricezioneMessaggioIngresso, Long spedizioneMessaggioIngresso, Long ricezioneMessaggioRisposta) {
  58.         this.ricezioneMsgIngresso = ricezioneMessaggioIngresso;
  59.         this.ricezioneMsgRisposta = ricezioneMessaggioRisposta;
  60.         this.spedizioneMessaggioIngresso = spedizioneMessaggioIngresso;
  61.     }

  62.     public DimensioneMessaggiAttraversamentoPdD() {
  63.     }

  64.     public void aggiornaDimensioneMessaggiAttraversamentoPDD(Long ricezioneMessaggioIngresso, Long spedizioneMessaggioIngresso, Long ricezioneMessaggioRisposta) {
  65.         if (ricezioneMessaggioIngresso != null )
  66.             this.ricezioneMsgIngresso = ricezioneMessaggioIngresso;
  67.         if (ricezioneMessaggioRisposta != null )
  68.             this.ricezioneMsgRisposta = ricezioneMessaggioRisposta;
  69.         if (spedizioneMessaggioIngresso != null )
  70.             this.spedizioneMessaggioIngresso = spedizioneMessaggioIngresso;
  71.     }

  72. }