ConnectorDispatcherInfo.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.services.connector;

  21. import java.util.List;
  22. import java.util.Map;

  23. import org.openspcoop2.message.OpenSPCoop2Message;
  24. import org.openspcoop2.protocol.sdk.builder.EsitoTransazione;

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

  33.     public static ConnectorDispatcherInfo getGeneric(OpenSPCoop2Message message,int status, String contentType, Map<String, List<String>> trasporto,EsitoTransazione esito) throws Exception {
  34.         ConnectorDispatcherInfo c = new ConnectorDispatcherInfo();
  35.         c.setMessage(message);
  36.         c.setEsitoTransazione(esito);
  37.         c.setStatus(status);
  38.         c.setContentType(contentType);
  39.         c.setTrasporto(trasporto);
  40.         return c;
  41.     }

  42.     protected ConnectorDispatcherInfo() {
  43.        
  44.     }

  45.     private OpenSPCoop2Message message;
  46.     private EsitoTransazione esitoTransazione;
  47.     private int status;
  48.     private String contentType;
  49.     private Map<String, List<String>> trasporto;
  50.    
  51.     public Map<String, List<String>> getTrasporto() {
  52.         return this.trasporto;
  53.     }
  54.     public void setTrasporto(Map<String, List<String>> trasporto) {
  55.         this.trasporto = trasporto;
  56.     }
  57.     public OpenSPCoop2Message getMessage() {
  58.         return this.message;
  59.     }
  60.     public void setMessage(OpenSPCoop2Message message) {
  61.         this.message = message;
  62.     }
  63.     public EsitoTransazione getEsitoTransazione() {
  64.         return this.esitoTransazione;
  65.     }
  66.     public void setEsitoTransazione(EsitoTransazione esitoTransazione) {
  67.         this.esitoTransazione = esitoTransazione;
  68.     }
  69.     public int getStatus() {
  70.         return this.status;
  71.     }
  72.     public void setStatus(int status) {
  73.         this.status = status;
  74.     }
  75.     public String getContentType() {
  76.         return this.contentType;
  77.     }
  78.     public void setContentType(String contentType) {
  79.         this.contentType = contentType;
  80.     }
  81. }