InRequestProtocolContext.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.pdd.core.IntegrationContext;
  24. import org.openspcoop2.protocol.sdk.IProtocolFactory;
  25. import org.openspcoop2.protocol.sdk.state.IState;

  26. /**
  27.  * InRequestContext
  28.  *
  29.  *
  30.  * @author Poli Andrea (apoli@link.it)
  31.  * @author $Author$
  32.  * @version $Rev$, $Date$
  33.  */
  34. public class InRequestProtocolContext extends InRequestContext {

  35.     public InRequestProtocolContext(Logger logger,IProtocolFactory<?> protocolFactory, IState state){
  36.         super(logger,protocolFactory,state);
  37.     }
  38.     public InRequestProtocolContext(InRequestContext inRequestContext){
  39.         super(inRequestContext.getLogCore(),inRequestContext.getProtocolFactory(),inRequestContext.getStato());
  40.         super.setConnettore(inRequestContext.getConnettore());
  41.         super.setDataAccettazioneRichiesta(inRequestContext.getDataAccettazioneRichiesta());
  42.         super.setDataElaborazioneMessaggio(inRequestContext.getDataElaborazioneMessaggio());
  43.         super.setMessaggio(inRequestContext.getMessaggio());
  44.         super.setPddContext(inRequestContext.getPddContext());
  45.         super.setTipoPorta(inRequestContext.getTipoPorta());
  46.         super.setIdModulo(inRequestContext.getIdModulo());
  47.     }
  48.    
  49.     /** Informazioni protocollo */
  50.     private ProtocolContext protocollo;
  51.    
  52.     /** Informazioni di integrazione */
  53.     private IntegrationContext integrazione;

  54.     public ProtocolContext getProtocollo() {
  55.         return this.protocollo;
  56.     }

  57.     public void setProtocollo(ProtocolContext p) {
  58.         this.protocollo = p;
  59.     }

  60.     public IntegrationContext getIntegrazione() {
  61.         return this.integrazione;
  62.     }

  63.     public void setIntegrazione(IntegrationContext integrazione) {
  64.         this.integrazione = integrazione;
  65.     }
  66.    
  67. }