OutResponseContext.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 org.slf4j.Logger;
  22. import org.openspcoop2.pdd.core.ProtocolContext;

  23. import java.util.List;
  24. import java.util.Map;

  25. import org.openspcoop2.pdd.core.IntegrationContext;
  26. import org.openspcoop2.protocol.sdk.IProtocolFactory;
  27. import org.openspcoop2.protocol.sdk.state.IState;

  28. /**
  29.  * OutResponseContext
  30.  *
  31.  *
  32.  * @author Poli Andrea (apoli@link.it)
  33.  * @author $Author$
  34.  * @version $Rev$, $Date$
  35.  */
  36. public class OutResponseContext extends BaseContext {

  37.     public OutResponseContext(Logger logger,IProtocolFactory<?> protocolFactory, IState state){
  38.         super.setLogCore(logger);
  39.         super.setProtocolFactory(protocolFactory);
  40.         super.setStato(state);
  41.     }
  42.    
  43.     /** Informazioni protocollo */
  44.     private ProtocolContext protocollo;
  45.    
  46.     /** Informazioni di integrazione */
  47.     private IntegrationContext integrazione;

  48.     /** Proprieta' di trasporto della risposta */
  49.     private Map<String, List<String>> responseHeaders;
  50.    
  51.     public ProtocolContext getProtocollo() {
  52.         return this.protocollo;
  53.     }

  54.     public void setProtocollo(ProtocolContext p) {
  55.         this.protocollo = p;
  56.     }

  57.     public IntegrationContext getIntegrazione() {
  58.         return this.integrazione;
  59.     }

  60.     public void setIntegrazione(IntegrationContext integrazione) {
  61.         this.integrazione = integrazione;
  62.     }

  63.     public Map<String, List<String>> getResponseHeaders() {
  64.         return this.responseHeaders;
  65.     }

  66.     public void setResponseHeaders(
  67.             Map<String, List<String>> propertiesRispostaTrasporto) {
  68.         this.responseHeaders = propertiesRispostaTrasporto;
  69.     }
  70. }