OutRequestContext.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 org.slf4j.Logger;
  22. import org.openspcoop2.pdd.core.ProtocolContext;
  23. import org.openspcoop2.core.transazioni.TransazioneApplicativoServer;
  24. import org.openspcoop2.pdd.core.IntegrationContext;
  25. import org.openspcoop2.pdd.core.connettori.InfoConnettoreUscita;
  26. import org.openspcoop2.protocol.sdk.IProtocolFactory;
  27. import org.openspcoop2.protocol.sdk.state.IState;

  28. /**
  29.  * OutRequestContext
  30.  *
  31.  *
  32.  * @author Poli Andrea (apoli@link.it)
  33.  * @author $Author$
  34.  * @version $Rev$, $Date$
  35.  */
  36. public class OutRequestContext extends BaseContext {

  37.     public OutRequestContext(Logger logger,IProtocolFactory<?> protocolFactory, IState state){
  38.         super.setLogCore(logger);
  39.         super.setProtocolFactory(protocolFactory);
  40.         super.setStato(state);
  41.     }
  42.    
  43.     /** Informazioni sul connettore di uscita */
  44.     private InfoConnettoreUscita connettore;
  45.    
  46.     /** Informazioni protocollo */
  47.     private ProtocolContext protocollo;
  48.    
  49.     /** Informazioni di integrazione */
  50.     private IntegrationContext integrazione;

  51.     /** Servizio Applicativo Erogatore */
  52.     private TransazioneApplicativoServer transazioneApplicativoServer = null;
  53.    
  54.     public TransazioneApplicativoServer getTransazioneApplicativoServer() {
  55.         return this.transazioneApplicativoServer;
  56.     }

  57.     public void setTransazioneApplicativoServer(TransazioneApplicativoServer transazioneApplicativoServer) {
  58.         this.transazioneApplicativoServer = transazioneApplicativoServer;
  59.     }

  60.     public InfoConnettoreUscita getConnettore() {
  61.         return this.connettore;
  62.     }

  63.     public void setConnettore(InfoConnettoreUscita connettore) {
  64.         this.connettore = connettore;
  65.     }

  66.     public ProtocolContext getProtocollo() {
  67.         return this.protocollo;
  68.     }

  69.     public void setProtocollo(ProtocolContext p) {
  70.         this.protocollo = p;
  71.     }

  72.     public IntegrationContext getIntegrazione() {
  73.         return this.integrazione;
  74.     }

  75.     public void setIntegrazione(IntegrationContext integrazione) {
  76.         this.integrazione = integrazione;
  77.     }
  78.    

  79. }