InfoConnettoreUscita.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.connettori;

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

  23. import org.openspcoop2.core.config.InvocazioneCredenziali;
  24. import org.openspcoop2.pdd.core.credenziali.Credenziali;

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

  34.     /** Tipo di Connettore */
  35.     private String tipoConnettore;
  36.     /** Location */
  37.     private String location;
  38.     /** Proprieta' del connettore */
  39.     private java.util.Map<String,String> properties;
  40.     /** Indicazione su di un eventuale sbustamento SOAP */
  41.     private boolean sbustamentoSoap;
  42.     /** Indicazione su di un eventuale sbustamento delle informazioni di Protocollo */
  43.     private boolean sbustamentoInformazioniProtocollo;
  44.     /** Proprieta' di trasporto che deve utilizzare il connettore */
  45.     private Map<String, List<String>> headers;
  46.     /** Proprieta' urlBased che deve utilizzare il connettore */
  47.     private Map<String, List<String>> parameters;
  48.     /** Tipo di Autenticazione */
  49.     private String tipoAutenticazione;
  50.     /** Credenziali */
  51.     private Credenziali credenziali;
  52.    
  53.     public String getTipoConnettore() {
  54.         return this.tipoConnettore;
  55.     }
  56.     public void setTipoConnettore(String tipoConnettore) {
  57.         this.tipoConnettore = tipoConnettore;
  58.     }
  59.     public String getLocation() {
  60.         return this.location;
  61.     }
  62.     public void setLocation(String location) {
  63.         this.location = location;
  64.     }
  65.     public java.util.Map<String, String> getProperties() {
  66.         return this.properties;
  67.     }
  68.     public void setProperties(java.util.Map<String, String> properties) {
  69.         this.properties = properties;
  70.     }
  71.     public boolean isSbustamentoSoap() {
  72.         return this.sbustamentoSoap;
  73.     }
  74.     public void setSbustamentoSoap(boolean sbustamentoSoap) {
  75.         this.sbustamentoSoap = sbustamentoSoap;
  76.     }
  77.     public Map<String, List<String>> getHeaders() {
  78.         return this.headers;
  79.     }
  80.     public void setHeaders(Map<String, List<String>> propertiesTrasporto) {
  81.         this.headers = propertiesTrasporto;
  82.     }
  83.     public Map<String, List<String>> getParameters() {
  84.         return this.parameters;
  85.     }
  86.     public void setParameters(Map<String, List<String>> propertiesUrlBased) {
  87.         this.parameters = propertiesUrlBased;
  88.     }
  89.     public String getTipoAutenticazione() {
  90.         return this.tipoAutenticazione;
  91.     }
  92.     public void setTipoAutenticazione(String tipoAutenticazione) {
  93.         this.tipoAutenticazione = tipoAutenticazione;
  94.     }
  95.     public Credenziali getCredenziali() {
  96.         return this.credenziali;
  97.     }
  98.     public void setCredenziali(Credenziali credenziali) {
  99.         this.credenziali = credenziali;
  100.     }
  101.     public void setCredenziali(InvocazioneCredenziali credenziali) {
  102.         if(credenziali!=null){
  103.             this.credenziali = new Credenziali();
  104.             this.credenziali.setUsername(credenziali.getUser());
  105.             this.credenziali.setPassword(credenziali.getPassword());
  106.         }
  107.     }
  108.     public boolean isSbustamentoInformazioniProtocollo() {
  109.         return this.sbustamentoInformazioniProtocollo;
  110.     }
  111.     public void setSbustamentoInformazioniProtocollo(
  112.             boolean sbustamentoInformazioniProtocollo) {
  113.         this.sbustamentoInformazioniProtocollo = sbustamentoInformazioniProtocollo;
  114.     }
  115.    
  116. }