ScopeEnv.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.scope;

  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.context.IContext;
  25. import org.openspcoop2.web.ctrlstat.servlet.scope.ScopeCore;
  26. import org.openspcoop2.web.ctrlstat.servlet.scope.ScopeHelper;

  27. /**
  28.  * ScopeEnv
  29.  *
  30.  * @author $Author$
  31.  * @version $Rev$, $Date$
  32.  *
  33.  */
  34. public class ScopeEnv extends Environment {

  35.     public final ScopeCore scopeCore;
  36.     public final ScopeHelper scopeHelper;
  37.    
  38.     public ScopeEnv(HttpServletRequest req, IContext context) throws UtilsException, Exception {
  39.         super(req,null,null,context);

  40.         this.scopeCore = new ScopeCore(this.stationCore);
  41.         this.scopeHelper = new ScopeHelper(this.stationCore, this.requestWrapper, this.pd, req.getSession());
  42.     }
  43. }