Integrazione.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.protocol.sdk;

  21. /**
  22.  * Dati integrativi in appoggio inseriti nel repository
  23.  *  
  24.  * @author Andrea Poli (apoli@link.it)
  25.  * @author $Author$
  26.  * @version $Rev$, $Date$
  27.  */

  28. public class Integrazione {



  29.     /* ********  F I E L D S  P R I V A T I  ******** */

  30.     /** Identificatore del modulo OpenSPCoop che ha gestito la richiesta, e che sta aspettando una risposta */
  31.     private String idModuloInAttesa;
  32.     /** Nome della Porta */
  33.     private String nomePorta;
  34.     /** Nome del Servizio Applicativo che sta' richiedendo il servizio */
  35.     private String servizioApplicativo;
  36.     /** Indica il tipo di scenario di cooperazione da intraprendere. */
  37.     private String scenario;
  38.     /** Indica la modalita' di gestione stateless/stateful */
  39.     private boolean stateless = false;


  40.     /* ********  C O S T R U T T O R E  ******** */

  41.     public Integrazione(){
  42.     }
  43.     public Integrazione(String idModulo,String nomePorta, String idServizio){
  44.         this.idModuloInAttesa = idModulo;
  45.         this.nomePorta = nomePorta;
  46.         this.servizioApplicativo = idServizio;
  47.     }




  48.     /* ********  S E T T E R   ******** */
  49.     /**
  50.      * Identificatore del modulo OpenSPCoop che ha gestito la richiesta,
  51.      * e che sta aspettando una risposta.
  52.      *
  53.      * @param idModulo Identificatore del modulo OpenSPCoop che sta aspettando una risposta.
  54.      *
  55.      */
  56.     public void setIdModuloInAttesa(String idModulo){
  57.         this.idModuloInAttesa = idModulo;
  58.     }
  59.     /**
  60.      * Imposta il nome della Porta Delegata Richiesta
  61.      *
  62.      * @param nomePorta Nome della Porta Delegata.
  63.      *
  64.      */
  65.     public void setNomePorta(String nomePorta){
  66.         this.nomePorta = nomePorta;
  67.     }
  68.     /**
  69.      * Imposta il nome del Servizio Applicativo che sta' richiedendo il servizio
  70.      *
  71.      * @param idServizio Nome del Servizio Applicativo.
  72.      *
  73.      */
  74.     public void setServizioApplicativo(String idServizio){
  75.         this.servizioApplicativo = idServizio;
  76.     }
  77.     /**
  78.      * Imposta il tipo di scenario di cooperazione da intraprendere
  79.      *
  80.      * @param scenario tipo di scenario di cooperazione da intraprendere
  81.      *
  82.      */
  83.     public void setScenario(String scenario) {
  84.         this.scenario = scenario;
  85.     }

  86.     public void setStateless(boolean stateless) {
  87.         this.stateless = stateless;
  88.     }




  89.     /* ********  G E T T E R   ******** */
  90.     /**
  91.      * Ritorna l'identificatore del modulo OpenSPCoop che ha gestito la richiesta,
  92.      * e che sta aspettando una risposta.
  93.      *
  94.      * @return Identificatore del modulo OpenSPCoop che sta aspettando una risposta.
  95.      *
  96.      */
  97.     public String getIdModuloInAttesa(){
  98.         return this.idModuloInAttesa;
  99.     }
  100.     /**
  101.      * Ritorna la Location della Porta Delegata Richiesta
  102.      *
  103.      * @return Location della Porta Delegata.
  104.      *
  105.      */
  106.     public String getNomePorta(){
  107.         return this.nomePorta;
  108.     }
  109.     /**
  110.      * Ritorna il nome del Servizio Applicativo che sta' richiedendo il servizio
  111.      *
  112.      * @return Nome del Servizio Applicativo.
  113.      *
  114.      */
  115.     public String getServizioApplicativo(){
  116.         return this.servizioApplicativo;
  117.     }
  118.     /**
  119.      * Ritorna il tipo di scenario di cooperazione da intraprendere
  120.      *
  121.      * @return tipo di scenario di cooperazione da intraprendere
  122.      *
  123.      */
  124.     public String getScenario() {
  125.         return this.scenario;
  126.     }
  127.    
  128.     public boolean isStateless() {
  129.         return this.stateless;
  130.     }
  131.    
  132. }