StatelessMessage.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.protocol.sdk.state;

  21. import java.io.Serializable;
  22. import java.sql.Connection;

  23. import org.slf4j.Logger;
  24. import org.openspcoop2.protocol.sdk.Busta;

  25. /**
  26.  * Oggetto che rappresenta lo stato (stateless) di una busta
  27.  *
  28.  * @author Poli Andrea (apoli@link.it)
  29.  * @author Fabio Tronci (tronci@link.it)
  30.  * @author $Author$
  31.  * @version $Rev$, $Date$
  32.  */
  33. public class StatelessMessage extends StateMessage implements Serializable {

  34.     /**
  35.      *
  36.      */
  37.     private static final long serialVersionUID = 1L;
  38.    
  39.    
  40.     private Busta busta = null;
  41.    
  42.     private Busta bustaCorrelata = null; // opzionale, puo' contenere la busta di richiesta, quando viene effettuata la validazione della busta di risposta

  43.     public StatelessMessage() {
  44.    
  45.     }
  46.    
  47.     public StatelessMessage (StateMessage temp){
  48.         super(temp.getConnectionDB(), temp.getLog(), temp.getPreparedStatement());
  49.     }
  50.    
  51.     public StatelessMessage(Connection con, Logger log, Busta busta){
  52.         super(con, log);
  53.         this.busta = busta;
  54.     }
  55.    
  56.     public StatelessMessage(Connection con, Logger log){
  57.         super(con, log);
  58.     }


  59.     public Busta getBusta() {
  60.         return this.busta;
  61.     }


  62.     public void setBusta(Busta busta) {
  63.         this.busta = busta;
  64.     }

  65.     public Busta getBustaCorrelata() {
  66.         return this.bustaCorrelata;
  67.     }

  68.     public void setBustaCorrelata(Busta bustaCorrelata) {
  69.         this.bustaCorrelata = bustaCorrelata;
  70.     }

  71. }