PostOutRequestContext.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 java.util.List;
  23. import java.util.Map;

  24. import org.openspcoop2.protocol.sdk.IProtocolFactory;

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

  33.     public PostOutRequestContext(Logger logger, IProtocolFactory<?> protocolFactory){
  34.         super(logger,protocolFactory,null);
  35.     }
  36.    
  37.     public PostOutRequestContext(OutRequestContext outRequestContext){
  38.         super(outRequestContext.getLogCore(),outRequestContext.getProtocolFactory(),outRequestContext.getStato());
  39.        
  40.         this.setConnettore(outRequestContext.getConnettore());
  41.         this.setProtocollo(outRequestContext.getProtocollo());
  42.         this.setIntegrazione(outRequestContext.getIntegrazione());
  43.        
  44.         this.setDataElaborazioneMessaggio(outRequestContext.getDataElaborazioneMessaggio());
  45.         this.setMessaggio(outRequestContext.getMessaggio());
  46.         this.setTipoPorta(outRequestContext.getTipoPorta());
  47.         this.setIdModulo(outRequestContext.getIdModulo());
  48.         this.setPddContext(outRequestContext.getPddContext());

  49.     }
  50.    
  51.     /** Proprieta' di trasporto della risposta */
  52.     private Map<String, List<String>> responseHeaders;
  53.    
  54.     private int codiceTrasporto;

  55.     public Map<String, List<String>> getResponseHeaders() {
  56.         return this.responseHeaders;
  57.     }

  58.     public void setResponseHeaders(
  59.             Map<String, List<String>> propertiesRispostaTrasporto) {
  60.         this.responseHeaders = propertiesRispostaTrasporto;
  61.     }

  62.     public int getCodiceTrasporto() {
  63.         return this.codiceTrasporto;
  64.     }

  65.     public void setCodiceTrasporto(int returnCode) {
  66.         this.codiceTrasporto = returnCode;
  67.     }
  68. }