BaseContext.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.constants.TipoPdD;
  24. import org.openspcoop2.message.OpenSPCoop2Message;
  25. import org.openspcoop2.pdd.core.PdDContext;
  26. import org.openspcoop2.protocol.sdk.IProtocolFactory;
  27. import org.openspcoop2.protocol.sdk.state.IState;

  28. /**
  29.  * BaseContext
  30.  *
  31.  *
  32.  * @author Poli Andrea (apoli@link.it)
  33.  * @author $Author$
  34.  * @version $Rev$, $Date$
  35.  */
  36. public abstract class BaseContext {
  37.    
  38.     /** Data */
  39.     private Date dataElaborazioneMessaggio;
  40.    
  41.     /** Messaggio */
  42.     private OpenSPCoop2Message messaggio;

  43.     /** Tipo porta di dominio */
  44.     private TipoPdD tipoPorta;
  45.    
  46.     /** IDModulo */
  47.     private String idModulo;
  48.    
  49.     /** PdDContext */
  50.     private PdDContext pddContext;
  51.    
  52.     /** ProtocolFactory */
  53.     private IProtocolFactory<?> protocolFactory;
  54.    
  55.     /** Logger */
  56.     private Logger logCore;
  57.    
  58.     /** Stato */
  59.     private IState stato;
  60.    
  61.     public IState getStato() {
  62.         return this.stato;
  63.     }

  64.     public void setStato(IState stato) {
  65.         this.stato = stato;
  66.     }

  67.     public OpenSPCoop2Message getMessaggio() {
  68.         return this.messaggio;
  69.     }

  70.     public void setMessaggio(OpenSPCoop2Message messaggio) {
  71.         this.messaggio = messaggio;
  72.     }

  73.     public Date getDataElaborazioneMessaggio() {
  74.         return this.dataElaborazioneMessaggio;
  75.     }

  76.     public void setDataElaborazioneMessaggio(Date dataElaborazioneMessaggio) {
  77.         this.dataElaborazioneMessaggio = dataElaborazioneMessaggio;
  78.     }

  79.     public TipoPdD getTipoPorta() {
  80.         return this.tipoPorta;
  81.     }

  82.     public void setTipoPorta(TipoPdD tipoPorta) {
  83.         this.tipoPorta = tipoPorta;
  84.     }

  85.     public PdDContext getPddContext() {
  86.         return this.pddContext;
  87.     }

  88.     public void setPddContext(PdDContext pddContext) {
  89.         this.pddContext = pddContext;
  90.     }

  91.     public Logger getLogCore() {
  92.         return this.logCore;
  93.     }

  94.     public void setLogCore(Logger logger) {
  95.         this.logCore = logger;
  96.     }

  97.     public IProtocolFactory<?> getProtocolFactory() {
  98.         return this.protocolFactory;
  99.     }

  100.     public void setProtocolFactory(IProtocolFactory<?> protocolFactory) {
  101.         this.protocolFactory = protocolFactory;
  102.     }
  103.    
  104.     public String getIdModulo() {
  105.         return this.idModulo;
  106.     }

  107.     public void setIdModulo(String idModulo) {
  108.         this.idModulo = idModulo;
  109.     }
  110. }