DatiEsitoTransazione.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.logger.info;

  21. import org.openspcoop2.protocol.engine.ProtocolFactoryManager;
  22. import org.openspcoop2.protocol.sdk.IProtocolFactory;
  23. import org.openspcoop2.protocol.sdk.ProtocolException;

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

  33.     private Integer esito;
  34.     private String protocollo;
  35.     private IProtocolFactory<?> protocolFactory;
  36.    
  37.     private java.lang.String faultIntegrazione;
  38.     private java.lang.String formatoFaultIntegrazione;

  39.     private java.lang.String faultCooperazione;
  40.     private java.lang.String formatoFaultCooperazione;
  41.    
  42.     private org.openspcoop2.core.transazioni.constants.PddRuolo pddRuolo;

  43.     public Integer getEsito() {
  44.         return this.esito;
  45.     }
  46.     public void setEsito(Integer esito) {
  47.         this.esito = esito;
  48.     }
  49.     public String getProtocollo() {
  50.         return this.protocollo;
  51.     }
  52.     public IProtocolFactory<?> getProtocolFactory() throws ProtocolException {
  53.         if(this.protocolFactory!=null) {
  54.             return this.protocolFactory;
  55.         }
  56.         else if(this.protocollo!=null){
  57.             return ProtocolFactoryManager.getInstance().getProtocolFactoryByName(this.protocollo);
  58.         }
  59.         return null;
  60.     }
  61.     public void setProtocollo(String protocollo) {
  62.         this.protocollo = protocollo;
  63.     }
  64.     public void setProtocollo(IProtocolFactory<?> protocolFactory) {
  65.         this.protocolFactory = protocolFactory;
  66.         this.protocollo = this.protocolFactory.getProtocol();
  67.     }
  68.     public org.openspcoop2.core.transazioni.constants.PddRuolo getPddRuolo() {
  69.         return this.pddRuolo;
  70.     }
  71.     public void setPddRuolo(org.openspcoop2.core.transazioni.constants.PddRuolo pddRuolo) {
  72.         this.pddRuolo = pddRuolo;
  73.     }
  74.     public java.lang.String getFaultIntegrazione() {
  75.         return this.faultIntegrazione;
  76.     }
  77.     public void setFaultIntegrazione(java.lang.String faultIntegrazione) {
  78.         this.faultIntegrazione = faultIntegrazione;
  79.     }
  80.     public java.lang.String getFormatoFaultIntegrazione() {
  81.         return this.formatoFaultIntegrazione;
  82.     }
  83.     public void setFormatoFaultIntegrazione(java.lang.String formatoFaultIntegrazione) {
  84.         this.formatoFaultIntegrazione = formatoFaultIntegrazione;
  85.     }
  86.     public java.lang.String getFaultCooperazione() {
  87.         return this.faultCooperazione;
  88.     }
  89.     public void setFaultCooperazione(java.lang.String faultCooperazione) {
  90.         this.faultCooperazione = faultCooperazione;
  91.     }
  92.     public java.lang.String getFormatoFaultCooperazione() {
  93.         return this.formatoFaultCooperazione;
  94.     }
  95.     public void setFormatoFaultCooperazione(java.lang.String formatoFaultCooperazione) {
  96.         this.formatoFaultCooperazione = formatoFaultCooperazione;
  97.     }
  98.    
  99. }