InRequestContext.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.pdd.core.connettori.InfoConnettoreIngresso;
  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 InRequestContext extends BaseContext {

  35.     public InRequestContext(Logger logger,IProtocolFactory<?> protocolFactory, IState state){
  36.         super.setLogCore(logger);
  37.         super.setProtocolFactory(protocolFactory);
  38.         super.setStato(state);
  39.     }
  40.    
  41.     /** Informazioni sul connettore di ingresso */
  42.     private InfoConnettoreIngresso connettore;

  43.     /** Data accettazione Richiesta */
  44.     private Date dataAccettazioneRichiesta;
  45.    
  46.     public Date getDataAccettazioneRichiesta() {
  47.         return this.dataAccettazioneRichiesta;
  48.     }

  49.     public void setDataAccettazioneRichiesta(Date dataAccettazioneRichiesta) {
  50.         this.dataAccettazioneRichiesta = dataAccettazioneRichiesta;
  51.     }

  52.     public InfoConnettoreIngresso getConnettore() {
  53.         return this.connettore;
  54.     }

  55.     public void setConnettore(InfoConnettoreIngresso connettore) {
  56.         this.connettore = connettore;
  57.     }
  58.    
  59. }