InResponseStatefulObject.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.transazioni;

  21. import java.util.ArrayList;
  22. import java.util.Date;
  23. import java.util.List;

  24. /**    
  25.  * InResponseStatefulObject
  26.  *
  27.  * @author Poli Andrea (poli@link.it)
  28.  * @author $Author$
  29.  * @version $Rev$, $Date$
  30.  */
  31. public class InResponseStatefulObject {

  32.     private Date dataUscitaRichiesta;
  33.     private Date dataRichiestaInoltrata;
  34.     private Date dataAccettazioneRisposta;
  35.     private Date dataIngressoRisposta;
  36.     private String returnCode;
  37.     private String location;
  38.     private String faultIntegrazione;
  39.     private String formatoFaultIntegrazione;
  40.     private String faultCooperazione;
  41.     private String formatoFaultCooperazione;
  42.    
  43.     private List<String> eventiGestione = new ArrayList<>();
  44.    
  45.     public Date getDataRichiestaInoltrata() {
  46.         return this.dataRichiestaInoltrata;
  47.     }
  48.     public void setDataRichiestaInoltrata(Date dataRichiestaInoltrata) {
  49.         this.dataRichiestaInoltrata = dataRichiestaInoltrata;
  50.     }
  51.     public Date getDataAccettazioneRisposta() {
  52.         return this.dataAccettazioneRisposta;
  53.     }
  54.     public void setDataAccettazioneRisposta(Date dataAccettazioneRisposta) {
  55.         this.dataAccettazioneRisposta = dataAccettazioneRisposta;
  56.     }
  57.     public Date getDataIngressoRisposta() {
  58.         return this.dataIngressoRisposta;
  59.     }
  60.     public void setDataIngressoRisposta(Date dataIngressoRisposta) {
  61.         this.dataIngressoRisposta = dataIngressoRisposta;
  62.     }
  63.     public Date getDataUscitaRichiesta() {
  64.         return this.dataUscitaRichiesta;
  65.     }
  66.     public void setDataUscitaRichiesta(Date dataUscitaRichiesta) {
  67.         this.dataUscitaRichiesta = dataUscitaRichiesta;
  68.     }
  69.     public String getReturnCode() {
  70.         return this.returnCode;
  71.     }
  72.     public void setReturnCode(String returnCode) {
  73.         this.returnCode = returnCode;
  74.     }
  75.     public String getLocation() {
  76.         return this.location;
  77.     }
  78.     public void setLocation(String location) {
  79.         this.location = location;
  80.     }
  81.     public String getFaultIntegrazione() {
  82.         return this.faultIntegrazione;
  83.     }
  84.     public void setFaultIntegrazione(String faultIntegrazione) {
  85.         this.faultIntegrazione = faultIntegrazione;
  86.     }
  87.     public String getFaultCooperazione() {
  88.         return this.faultCooperazione;
  89.     }
  90.     public void setFaultCooperazione(String faultCooperazione) {
  91.         this.faultCooperazione = faultCooperazione;
  92.     }
  93.     public String getFormatoFaultIntegrazione() {
  94.         return this.formatoFaultIntegrazione;
  95.     }
  96.     public void setFormatoFaultIntegrazione(String formatoFaultIntegrazione) {
  97.         this.formatoFaultIntegrazione = formatoFaultIntegrazione;
  98.     }
  99.     public String getFormatoFaultCooperazione() {
  100.         return this.formatoFaultCooperazione;
  101.     }
  102.     public void setFormatoFaultCooperazione(String formatoFaultCooperazione) {
  103.         this.formatoFaultCooperazione = formatoFaultCooperazione;
  104.     }
  105.     public List<String> getEventiGestione() {
  106.         return this.eventiGestione;
  107.     }
  108.     public void addEventoGestione(String evento) {
  109.         if(evento.contains(",")){
  110.             throw new RuntimeException("EventoGestione ["+evento+"] non deve contenere il carattere ','");
  111.         }
  112.         this.eventiGestione.add(evento);
  113.     }
  114.    
  115. }