IntegrationManagerBaseContext.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.PdDContext;
  24. import org.openspcoop2.pdd.services.skeleton.Operazione;
  25. import org.openspcoop2.protocol.sdk.IProtocolFactory;

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

  33. public abstract class IntegrationManagerBaseContext {

  34.     /** Operazione Richiesta */
  35.     private Operazione tipoOperazione;
  36.    
  37.     /** ID del messaggio richiesto */
  38.     private String idMessaggio;
  39.        
  40.     /** Tempo di richiesta dell'operazione */
  41.     private Date dataRichiestaOperazione;
  42.    
  43.     /** PdDContext */
  44.     private PdDContext pddContext;
  45.    
  46.     /** Logger */
  47.     private Logger logger;

  48.     /** ProtocolFactory */
  49.     private IProtocolFactory<?> protocolFactory;
  50.    
  51.     /** Costruttori */
  52.     public IntegrationManagerBaseContext(Date dataRichiestaOperazione,Operazione tipoOperazione,
  53.             PdDContext pddContext,Logger logger,IProtocolFactory<?> protocolFactory) {
  54.         this.dataRichiestaOperazione = dataRichiestaOperazione;
  55.         this.tipoOperazione = tipoOperazione;
  56.         this.pddContext = pddContext;  
  57.         this.logger = logger;
  58.         this.protocolFactory = protocolFactory;
  59.     }
  60.    
  61.    
  62.     public Date getDataRichiestaOperazione() {
  63.         return this.dataRichiestaOperazione;
  64.     }
  65.     public void setDataRichiestaOperazione(Date dataRichiestaOperazione) {
  66.         this.dataRichiestaOperazione = dataRichiestaOperazione;
  67.     }
  68.     public Operazione getTipoOperazione() {
  69.         return this.tipoOperazione;
  70.     }
  71.     public void setTipoOperazione(Operazione tipoOperazione) {
  72.         this.tipoOperazione = tipoOperazione;
  73.     }
  74.     public String getIdMessaggio() {
  75.         return this.idMessaggio;
  76.     }
  77.     public void setIdMessaggio(String idMessaggio) {
  78.         this.idMessaggio = idMessaggio;
  79.     }
  80.     public PdDContext getPddContext() {
  81.         return this.pddContext;
  82.     }
  83.     public void setPddContext(PdDContext pddContext) {
  84.         this.pddContext = pddContext;
  85.     }


  86.     public Logger getLogger() {
  87.         return this.logger;
  88.     }


  89.     public void setLogger(Logger logger) {
  90.         this.logger = logger;
  91.     }


  92.     public IProtocolFactory<?> getProtocolFactory() {
  93.         return this.protocolFactory;
  94.     }


  95.     public void setProtocolFactory(IProtocolFactory<?> protocolFactory) {
  96.         this.protocolFactory = protocolFactory;
  97.     }

  98. }