GatewayStatus.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.monitor.engine.status;

  21. /**
  22.  * PddStatus
  23.  *
  24.  * @author Pintori Giuliano (pintori@link.it)
  25.  * @author $Author$
  26.  * @version $Rev$, $Date$
  27.  *
  28.  */
  29. public class GatewayStatus extends BaseStatus{

  30.     /**
  31.      *
  32.      */
  33.     private static final long serialVersionUID = 1L;
  34.    
  35.     private String url;
  36.     private boolean https;
  37.     private boolean https_verificaHostName;
  38.     private boolean https_autenticazioneServer;
  39.     private String https_autenticazioneServer_truststorePath;
  40.     private String https_autenticazioneServer_truststoreType;
  41.     private String https_autenticazioneServer_truststorePassword;
  42.     private int connectionTimeout = 5000; //org.openspcoop2.utils.transport.http.HttpUtilities.HTTP_CONNECTION_TIMEOUT;
  43.     // Fix: uso un tempo più basso in modo da non bloccare la console
  44.     private int readConnectionTimeout = 5000; //org.openspcoop2.utils.transport.http.HttpUtilities.HTTP_READ_CONNECTION_TIMEOUT;
  45.    
  46.     public GatewayStatus(){
  47.         super();
  48.     }
  49.    
  50.     public String getUrl() {
  51.         return this.url;
  52.     }

  53.     public void setUrl(String url) {
  54.         this.url = url;
  55.     }

  56.     public boolean isHttps() {
  57.         return this.https;
  58.     }

  59.     public void setHttps(boolean https) {
  60.         this.https = https;
  61.     }

  62.     public boolean isHttps_verificaHostName() {
  63.         return this.https_verificaHostName;
  64.     }

  65.     public void setHttps_verificaHostName(boolean https_verificaHostName) {
  66.         this.https_verificaHostName = https_verificaHostName;
  67.     }

  68.     public boolean isHttps_autenticazioneServer() {
  69.         return this.https_autenticazioneServer;
  70.     }

  71.     public void setHttps_autenticazioneServer(boolean https_autenticazioneServer) {
  72.         this.https_autenticazioneServer = https_autenticazioneServer;
  73.     }

  74.     public String getHttps_autenticazioneServer_truststorePath() {
  75.         return this.https_autenticazioneServer_truststorePath;
  76.     }

  77.     public void setHttps_autenticazioneServer_truststorePath(String https_autenticazioneServer_truststorePath) {
  78.         this.https_autenticazioneServer_truststorePath = https_autenticazioneServer_truststorePath;
  79.     }

  80.     public String getHttps_autenticazioneServer_truststoreType() {
  81.         return this.https_autenticazioneServer_truststoreType;
  82.     }

  83.     public void setHttps_autenticazioneServer_truststoreType(String https_autenticazioneServer_truststoreType) {
  84.         this.https_autenticazioneServer_truststoreType = https_autenticazioneServer_truststoreType;
  85.     }

  86.     public String getHttps_autenticazioneServer_truststorePassword() {
  87.         return this.https_autenticazioneServer_truststorePassword;
  88.     }

  89.     public void setHttps_autenticazioneServer_truststorePassword(String https_autenticazioneServer_truststorePassword) {
  90.         this.https_autenticazioneServer_truststorePassword = https_autenticazioneServer_truststorePassword;
  91.     }
  92.    
  93.     public int getConnectionTimeout() {
  94.         return this.connectionTimeout;
  95.     }

  96.     public void setConnectionTimeout(int connectionTimeout) {
  97.         this.connectionTimeout = connectionTimeout;
  98.     }

  99.     public int getReadConnectionTimeout() {
  100.         return this.readConnectionTimeout;
  101.     }

  102.     public void setReadConnectionTimeout(int readConnectionTimeout) {
  103.         this.readConnectionTimeout = readConnectionTimeout;
  104.     }
  105. }