ApplicativiEnv.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.core.config.rs.server.api.impl.applicativi;

  21. import javax.servlet.http.HttpServletRequest;

  22. import org.openspcoop2.core.config.rs.server.api.impl.Environment;
  23. import org.openspcoop2.utils.UtilsException;
  24. import org.openspcoop2.utils.service.beans.ProfiloEnum;
  25. import org.openspcoop2.utils.service.context.IContext;
  26. import org.openspcoop2.web.ctrlstat.servlet.pd.PorteDelegateCore;
  27. import org.openspcoop2.web.ctrlstat.servlet.sa.ServiziApplicativiCore;
  28. import org.openspcoop2.web.ctrlstat.servlet.sa.ServiziApplicativiHelper;

  29. /**
  30.  * ApplicativiEnv
  31.  *
  32.  * @author $Author$
  33.  * @version $Rev$, $Date$
  34.  *
  35.  */
  36. public class ApplicativiEnv extends Environment {
  37.    
  38.     public final ServiziApplicativiCore saCore;
  39.     public final PorteDelegateCore porteDelegateCore;
  40.     public final ServiziApplicativiHelper saHelper;
  41.    
  42.     public ApplicativiEnv(HttpServletRequest req, ProfiloEnum profilo, String soggetto, IContext ctx) throws UtilsException, Exception {
  43.         super(req,profilo,soggetto,ctx);
  44.          
  45.         this.saCore = new ServiziApplicativiCore(this.stationCore);
  46.         this.porteDelegateCore = new PorteDelegateCore(this.stationCore);
  47.         this.saHelper = new ServiziApplicativiHelper(this.stationCore, this.requestWrapper, this.pd, req.getSession());
  48.     }
  49.    
  50. }