RicezioneContenutiApplicativiMessage.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.constants.ProfiloDiCollaborazione;



  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 RicezioneContenutiApplicativi}.
  28.  *
  29.  *
  30.  * @author Poli Andrea (apoli@link.it)
  31.  * @author $Author$
  32.  * @version $Rev$, $Date$
  33.  */

  34. public class RicezioneContenutiApplicativiMessage implements GenericMessage {
  35.    
  36.      /**
  37.      * serialVersionUID
  38.      */
  39.     private static final long serialVersionUID = 1L;
  40.    
  41.     /* ********  F I E L D S  P R I V A T I  ******** */
  42.  
  43.     /** ID associato alla sessione della risposta */
  44.     private String idRisposta;
  45.     /** IDCollaborazione (per header di integrazione-risposta) */
  46.     private String idCollaborazione;
  47.     /** ProfiloCollaborazione (per header di integrazione-risposta) */
  48.     private ProfiloDiCollaborazione profiloCollaborazione;
  49.     private String profiloCollaborazioneValue;
  50.  
  51.     /** PdDContext */
  52.     private PdDContext pddContext;

  53.    

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

  55.     /**
  56.      * Costruttore.
  57.      *
  58.      *
  59.      */
  60.     public RicezioneContenutiApplicativiMessage(){
  61.     }
  62.     /**
  63.      * Costruttore.
  64.      *
  65.      * @param aID ID associato alla sessione della risposta
  66.      *
  67.      */
  68.     public RicezioneContenutiApplicativiMessage(String aID){
  69.     this.idRisposta = aID;
  70.     }


  71.    



  72.     /* ********  S E T T E R   ******** */
  73.    
  74.     /**
  75.      * Imposta l'ID associato alla sessione della risposta.
  76.      *
  77.      * @param id ID associato alla sessione della risposta.
  78.      *
  79.      */
  80.     public void setIdBustaRisposta(String id){
  81.         this.idRisposta = id;
  82.     }
  83.     /**
  84.      * @param idCollaborazione the idCollaborazione to set
  85.      */
  86.     public void setIdCollaborazione(String idCollaborazione) {
  87.         this.idCollaborazione = idCollaborazione;
  88.     }
  89.     /**
  90.      * @param profiloCollaborazione the profiloCollaborazione to set
  91.      */
  92.     public void setProfiloCollaborazione(ProfiloDiCollaborazione profiloCollaborazione, String profiloCollaborazioneValue) {
  93.         this.profiloCollaborazione = profiloCollaborazione;
  94.         this.profiloCollaborazioneValue = profiloCollaborazioneValue;
  95.     }
  96.     public void setPddContext(PdDContext pddContext) {
  97.         this.pddContext = pddContext;
  98.     }



  99.     /* ********  G E T T E R   ******** */

  100.     /**
  101.      * Ritorna l'ID associato alla sessione della risposta.
  102.      *
  103.      * @return ID associato alla sessione della risposta.
  104.      *
  105.      */
  106.     public String getIdBustaRisposta(){
  107.         return this.idRisposta;
  108.     }
  109.     /**
  110.      * @return the idCollaborazione
  111.      */
  112.     public String getIdCollaborazione() {
  113.         return this.idCollaborazione;
  114.     }

  115.     /**
  116.      * @return the profiloCollaborazione
  117.      */
  118.     public ProfiloDiCollaborazione getProfiloCollaborazione() {
  119.         return this.profiloCollaborazione;
  120.     }
  121.     public String getProfiloCollaborazioneValue() {
  122.         return this.profiloCollaborazioneValue;
  123.     }

  124.     @Override
  125.     public PdDContext getPddContext() {
  126.         return this.pddContext;
  127.     }
  128.    
  129.  
  130. }