IntegrationManagerResponseContext.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.handlers;

  21. import java.util.Date;

  22. import org.slf4j.Logger;
  23. import org.openspcoop2.core.id.IDServizioApplicativo;
  24. import org.openspcoop2.pdd.core.PdDContext;
  25. import org.openspcoop2.pdd.services.skeleton.Operazione;
  26. import org.openspcoop2.protocol.sdk.IProtocolFactory;
  27. import org.openspcoop2.protocol.sdk.builder.EsitoTransazione;

  28. /**
  29.  * Informazioni di consultazione del servizio di IntegrationManager
  30.  *
  31.  * @author Poli Andrea (apoli@link.it)
  32.  * @author $Author$
  33.  * @version $Rev$, $Date$
  34.  */

  35. public class IntegrationManagerResponseContext extends IntegrationManagerRequestContext {
  36.    
  37.     /** Servizio applicativo fruitore */
  38.     private IDServizioApplicativo servizioApplicativo;
  39.    
  40.     /** Dimensione dell'eventuale messaggio ritornato in bytes */
  41.     private Long dimensioneMessaggioBytes;

  42.     /** Esito */
  43.     private EsitoTransazione esito;
  44.    
  45.     /** Tempo di completamento dell'operazione */
  46.     private Date dataCompletamentoOperazione;

  47.     /** Costruttori */
  48.     public IntegrationManagerResponseContext(Date dataRichiestaOperazione,Operazione tipoOperazione,
  49.             PdDContext pddContext,Logger logger,IProtocolFactory<?> protocolFactory) {
  50.         super(dataRichiestaOperazione,tipoOperazione,pddContext,logger,protocolFactory);
  51.     }

  52.     public IDServizioApplicativo getServizioApplicativo() {
  53.         return this.servizioApplicativo;
  54.     }
  55.     public void setServizioApplicativo(IDServizioApplicativo nomeServizioApplicativo) {
  56.         this.servizioApplicativo = nomeServizioApplicativo;
  57.     }
  58.     public Long getDimensioneMessaggioBytes() {
  59.         return this.dimensioneMessaggioBytes;
  60.     }
  61.     public void setDimensioneMessaggioBytes(Long dimensioneMessaggioBytes) {
  62.         this.dimensioneMessaggioBytes = dimensioneMessaggioBytes;
  63.     }
  64.     public EsitoTransazione getEsito() {
  65.         return this.esito;
  66.     }
  67.     public void setEsito(EsitoTransazione esito) {
  68.         this.esito = esito;
  69.     }
  70.     public Date getDataCompletamentoOperazione() {
  71.         return this.dataCompletamentoOperazione;
  72.     }
  73.     public void setDataCompletamentoOperazione(Date dataCompletamentoOperazione) {
  74.         this.dataCompletamentoOperazione = dataCompletamentoOperazione;
  75.     }
  76. }