RicezioneBusteMessage.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.services.core;

  21. import org.openspcoop2.pdd.core.PdDContext;
  22. import org.openspcoop2.pdd.mdb.GenericMessage;
  23. import org.openspcoop2.protocol.sdk.Busta;


  24. /**
  25.  * Classe utilizzata per raccogliere informazioni incluse in un MessaggioJMS.
  26.  * Il messaggio JMS sara' poi ricevuto, attraverso una coda apposita,
  27.  * dal servizio definito nella classe {@link RicezioneBuste}.
  28.  *
  29.  *
  30.  * @author Poli Andrea (apoli@link.it)
  31.  * @author $Author$
  32.  * @version $Rev$, $Date$
  33.  */

  34. public class RicezioneBusteMessage implements GenericMessage {
  35.    
  36.      /**
  37.      * serialVersionUID
  38.      */
  39.     private static final long serialVersionUID = 1L;

  40.     /* ********  F I E L D S  P R I V A T I  ******** */
  41.    
  42.     /** Busta  della risposta  */
  43.     private Busta bustaRisposta;
  44.     /** ID per il messaggio di Sblocco*/
  45.     private String idMessaggioSblocco;

  46.     /** PdDContext */
  47.     private PdDContext pddContext;
  48.    


  49.     /* ********  C O S T R U T T O R E  ******** */

  50.     /**
  51.      * Costruttore.
  52.      *
  53.      *
  54.      */    
  55.     public RicezioneBusteMessage(){
  56.     }

  57.    

  58.    

  59.     /* ********  S E T T E R   ******** */
  60.    
  61.     /**
  62.      * Imposta la busta della risposta
  63.      *
  64.      * @param busta busta di risposta
  65.      *
  66.      */
  67.     public void setBustaRisposta(Busta busta){
  68.         this.bustaRisposta = busta;
  69.     }
  70.     public void setIdMessaggioSblocco(String idMessaggioSblocco) {
  71.         this.idMessaggioSblocco = idMessaggioSblocco;
  72.     }
  73.     public void setPddContext(PdDContext pddContext) {
  74.         this.pddContext = pddContext;
  75.     }





  76.    

  77.     /* ********  G E T T E R   ******** */
  78.    
  79.     /**
  80.      * Ritorna la busta della risposta
  81.      *
  82.      * @return busta di risposta
  83.      *
  84.      */
  85.     public Busta getBustaRisposta(){
  86.     return this.bustaRisposta;
  87.     }
  88.    
  89.     public String getIdMessaggioSblocco() {
  90.         return this.idMessaggioSblocco;
  91.     }
  92.     @Override
  93.     public PdDContext getPddContext() {
  94.         return this.pddContext;
  95.     }

  96.  
  97. }