InoltroBusteMessage.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.mdb;

  21. import org.openspcoop2.pdd.config.RichiestaDelegata;
  22. import org.openspcoop2.pdd.core.PdDContext;
  23. import org.openspcoop2.pdd.core.state.OpenSPCoopStateless;
  24. import org.openspcoop2.protocol.sdk.Busta;

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

  35. public class InoltroBusteMessage implements GenericMessage {

  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.     /** Busta da Spedire */
  42.     private Busta busta;  
  43.     /** Identificatore della Porta Delegata */
  44.     private RichiestaDelegata richiestaDelegata;  
  45.     /** Indicazione se siamo in modalita oneway11 */
  46.     private boolean oneWayVersione11;
  47.     /** OpenSPCoop Stateless */
  48.     private OpenSPCoopStateless openspcoopstate = null;
  49.    
  50.     /** Tipologia di porta di domino del soggetto mittente */
  51.     private String implementazionePdDSoggettoMittente;
  52.     /** Tipologia di porta di domino del soggetto destinatario */
  53.     private String implementazionePdDSoggettoDestinatario;
  54.    
  55.     /** PdDContext */
  56.     private PdDContext pddContext;
  57.    

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

  59.     /**
  60.      * Costruttore.
  61.      *
  62.      *
  63.      */
  64.     public InoltroBusteMessage(){
  65.     }





  66.     /* ********  S E T T E R   ******** */

  67.     /**
  68.      * Imposta l'identificatore della Porta Delegata di tipo {@link org.openspcoop2.pdd.config.RichiestaDelegata}
  69.      *
  70.      * @param idpd Identificatore della Porta Delegata
  71.      *
  72.      */
  73.     public void setRichiestaDelegata(RichiestaDelegata idpd){
  74.         this.richiestaDelegata = idpd;
  75.     }

  76.     /**
  77.      * Imposta la busta da inoltrare.
  78.      *
  79.      * @param busta Busta da inviare.
  80.      *
  81.      */
  82.     public void setBusta(Busta busta){
  83.         this.busta = busta;
  84.     }
  85.    
  86.     /**
  87.      * @param oneWayVersione11
  88.      */
  89.     public void setOneWayVersione11(boolean oneWayVersione11) {
  90.         this.oneWayVersione11 = oneWayVersione11;
  91.     }
  92.    
  93.     public void setOpenspcoopstate(OpenSPCoopStateless openspcoopstate) {
  94.         this.openspcoopstate = openspcoopstate;
  95.     }
  96.    
  97.    
  98.    


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


  100.     /**
  101.      * Ritorna l'identificatore della Porta Delegata
  102.      *
  103.      * @return Identificatore della Porta Delegata
  104.      *
  105.      */
  106.     public RichiestaDelegata getRichiestaDelegata(){
  107.         return this.richiestaDelegata;
  108.     }
  109.     /**
  110.      * Ritorna la busta da inoltrare.
  111.      *
  112.      * @return Busta da inviare.
  113.      *
  114.      */
  115.     public Busta getBusta(){
  116.         return this.busta;
  117.     }


  118.     public OpenSPCoopStateless getOpenspcoopstate() {
  119.         return this.openspcoopstate;
  120.     }
  121.     /**
  122.      * @return indicazione se stiamo gestendo oneway in modalita stateless 1.4
  123.      */
  124.     public boolean isOneWayVersione11() {
  125.         return this.oneWayVersione11;
  126.     }
  127.    
  128.    
  129.    
  130.     public String getImplementazionePdDSoggettoMittente() {
  131.         return this.implementazionePdDSoggettoMittente;
  132.     }

  133.     public void setImplementazionePdDSoggettoMittente(
  134.             String implementazionePdDSoggettoMittente) {
  135.         this.implementazionePdDSoggettoMittente = implementazionePdDSoggettoMittente;
  136.     }

  137.     public String getImplementazionePdDSoggettoDestinatario() {
  138.         return this.implementazionePdDSoggettoDestinatario;
  139.     }

  140.     public void setImplementazionePdDSoggettoDestinatario(
  141.             String implementazionePdDSoggettoDestinatario) {
  142.         this.implementazionePdDSoggettoDestinatario = implementazionePdDSoggettoDestinatario;
  143.     }
  144.    
  145.     @Override
  146.     public PdDContext getPddContext() {
  147.         return this.pddContext;
  148.     }

  149.     public void setPddContext(PdDContext pddContext) {
  150.         this.pddContext = pddContext;
  151.     }
  152. }