PreInRequestContext.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.HashMap;
  22. import java.util.Map;

  23. import org.openspcoop2.pdd.core.PdDContext;
  24. import org.openspcoop2.protocol.sdk.IProtocolFactory;
  25. import org.openspcoop2.utils.io.notifier.NotifierInputStreamParams;

  26. /**
  27.  * PreInRequestContext
  28.  *
  29.  * @author Poli Andrea (apoli@link.it)
  30.  * @author $Author$
  31.  * @version $Rev$, $Date$
  32.  */
  33. public class PreInRequestContext extends PreInAcceptRequestContext {

  34.     public static final String SERVLET_REQUEST = "SERVLET_REQUEST";
  35.     public static final String SERVLET_RESPONSE = "SERVLET_RESPONSE";
  36.     public static final String CONTEXT = "CONTEXT";
  37.    
  38.     /** Trasporto */
  39.     private Map<String, Object> transportContext = new HashMap<>();

  40.     /** PdDContext */
  41.     private PdDContext pddContext = null;
  42.    
  43.     /** ProtocolFactory */
  44.     private IProtocolFactory<?> protocolFactory;
  45.    
  46.     /** NotifierInputStreamParameter */
  47.     private NotifierInputStreamParams notifierInputStreamParams;
  48.    
  49.     public PreInRequestContext(PdDContext pddContext){
  50.         this.pddContext = pddContext;
  51.     }
  52.    
  53.     public PdDContext getPddContext() {
  54.         return this.pddContext;
  55.     }

  56.     public Map<String, Object> getTransportContext() {
  57.         return this.transportContext;
  58.     }

  59.     public void setTransportContext(Map<String, Object> transportContext) {
  60.         this.transportContext = transportContext;
  61.     }

  62.     public NotifierInputStreamParams getNotifierInputStreamParams() {
  63.         return this.notifierInputStreamParams;
  64.     }

  65.     public void setNotifierInputStreamParams(
  66.             NotifierInputStreamParams notifierInputStreamParams) {
  67.         this.notifierInputStreamParams = notifierInputStreamParams;
  68.     }

  69.     public IProtocolFactory<?> getProtocolFactory() {
  70.         return this.protocolFactory;
  71.     }

  72.     public void setProtocolFactory(IProtocolFactory<?> protocolFactory) {
  73.         this.protocolFactory = protocolFactory;
  74.     }
  75.    
  76. }