InResponseStatefulObject.java
- /*
- * GovWay - A customizable API Gateway
- * https://govway.org
- *
- * Copyright (c) 2005-2025 Link.it srl (https://link.it).
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 3, as published by
- * the Free Software Foundation.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- *
- */
- package org.openspcoop2.pdd.core.transazioni;
- import java.util.ArrayList;
- import java.util.Date;
- import java.util.List;
- /**
- * InResponseStatefulObject
- *
- * @author Poli Andrea (poli@link.it)
- * @author $Author$
- * @version $Rev$, $Date$
- */
- public class InResponseStatefulObject {
- private Date dataUscitaRichiesta;
- private Date dataRichiestaInoltrata;
- private Date dataAccettazioneRisposta;
- private Date dataIngressoRisposta;
- private String returnCode;
- private String location;
- private String faultIntegrazione;
- private String formatoFaultIntegrazione;
- private String faultCooperazione;
- private String formatoFaultCooperazione;
-
- private List<String> eventiGestione = new ArrayList<>();
-
- public Date getDataRichiestaInoltrata() {
- return this.dataRichiestaInoltrata;
- }
- public void setDataRichiestaInoltrata(Date dataRichiestaInoltrata) {
- this.dataRichiestaInoltrata = dataRichiestaInoltrata;
- }
- public Date getDataAccettazioneRisposta() {
- return this.dataAccettazioneRisposta;
- }
- public void setDataAccettazioneRisposta(Date dataAccettazioneRisposta) {
- this.dataAccettazioneRisposta = dataAccettazioneRisposta;
- }
- public Date getDataIngressoRisposta() {
- return this.dataIngressoRisposta;
- }
- public void setDataIngressoRisposta(Date dataIngressoRisposta) {
- this.dataIngressoRisposta = dataIngressoRisposta;
- }
- public Date getDataUscitaRichiesta() {
- return this.dataUscitaRichiesta;
- }
- public void setDataUscitaRichiesta(Date dataUscitaRichiesta) {
- this.dataUscitaRichiesta = dataUscitaRichiesta;
- }
- public String getReturnCode() {
- return this.returnCode;
- }
- public void setReturnCode(String returnCode) {
- this.returnCode = returnCode;
- }
- public String getLocation() {
- return this.location;
- }
- public void setLocation(String location) {
- this.location = location;
- }
- public String getFaultIntegrazione() {
- return this.faultIntegrazione;
- }
- public void setFaultIntegrazione(String faultIntegrazione) {
- this.faultIntegrazione = faultIntegrazione;
- }
- public String getFaultCooperazione() {
- return this.faultCooperazione;
- }
- public void setFaultCooperazione(String faultCooperazione) {
- this.faultCooperazione = faultCooperazione;
- }
- public String getFormatoFaultIntegrazione() {
- return this.formatoFaultIntegrazione;
- }
- public void setFormatoFaultIntegrazione(String formatoFaultIntegrazione) {
- this.formatoFaultIntegrazione = formatoFaultIntegrazione;
- }
- public String getFormatoFaultCooperazione() {
- return this.formatoFaultCooperazione;
- }
- public void setFormatoFaultCooperazione(String formatoFaultCooperazione) {
- this.formatoFaultCooperazione = formatoFaultCooperazione;
- }
- public List<String> getEventiGestione() {
- return this.eventiGestione;
- }
- public void addEventoGestione(String evento) {
- if(evento.contains(",")){
- throw new RuntimeException("EventoGestione ["+evento+"] non deve contenere il carattere ','");
- }
- this.eventiGestione.add(evento);
- }
-
- }