UtilsCostanti.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.web.ctrlstat.servlet.utils;

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

  23. import org.openspcoop2.web.lib.mvc.Costanti;

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

  35.     /* SERVLET NAME  */
  36.    
  37.     public static final String SERVLET_NAME_INFORMAZIONI_UTILIZZO_OGGETTO = "informazioniUtilizzoOggettoRegistro";
  38.    
  39.     public static final String SERVLET_NAME_PROPRIETA_OGGETTO = "proprietaOggettoRegistro";
  40.    
  41.     public static final String SERVLET_NAME_SECRET_DECODER = "secretDecoder";
  42.    
  43.     public static final String SERVLET_NAME_VERIFICA_CERTIFICATI = "verificaCertificati";
  44.    
  45.     public static final String SERVLET_NAME_CACHE_MANAGER = "cacheManager";
  46.    
  47.     private static final List<String> SERVLET_UTILS = new ArrayList<>();
  48.     public static List<String> getServletUtils() {
  49.         return SERVLET_UTILS;
  50.     }
  51.     static{
  52.         SERVLET_UTILS.add(SERVLET_NAME_INFORMAZIONI_UTILIZZO_OGGETTO);
  53.         SERVLET_UTILS.add(SERVLET_NAME_PROPRIETA_OGGETTO);
  54.         SERVLET_UTILS.add(SERVLET_NAME_SECRET_DECODER);
  55.         SERVLET_UTILS.add(SERVLET_NAME_VERIFICA_CERTIFICATI);
  56.         SERVLET_UTILS.add(SERVLET_NAME_CACHE_MANAGER);
  57.     }
  58.    
  59.     /* PARAMETRI */
  60.    
  61.     public static final String PARAMETRO_RESET_CACHE_TIPO_OGGETTO = Costanti.PARAMETRO_RESET_CACHE_TIPO_OGGETTO;
  62.    
  63.     public static final String PARAMETRO_VERIFICA_CERTIFICATI_TIPO_OGGETTO = Costanti.PARAMETRO_VERIFICA_CERTIFICATI_TIPO_OGGETTO;
  64.    
  65.     public static final String PARAMETRO_INFORMAZIONI_UTILIZZO_OGGETTO_URL = Costanti.PARAMETRO_INFORMAZIONI_UTILIZZO_OGGETTO_URL;
  66.     public static final String PARAMETRO_INFORMAZIONI_UTILIZZO_OGGETTO_ID_OGGETTO = Costanti.PARAMETRO_INFORMAZIONI_UTILIZZO_OGGETTO_ID_OGGETTO;
  67.     public static final String PARAMETRO_INFORMAZIONI_UTILIZZO_OGGETTO_TIPO_OGGETTO = Costanti.PARAMETRO_INFORMAZIONI_UTILIZZO_OGGETTO_TIPO_OGGETTO;
  68.     public static final String PARAMETRO_INFORMAZIONI_UTILIZZO_OGGETTO_TIPO_RISPOSTA = Costanti.PARAMETRO_INFORMAZIONI_UTILIZZO_OGGETTO_TIPO_RISPOSTA;
  69.    
  70.     public static final String VALUE_PARAMETRO_INFORMAZIONI_UTILIZZO_OGGETTO_TIPO_RISPOSTA_TEXT= Costanti.VALUE_PARAMETRO_INFORMAZIONI_UTILIZZO_OGGETTO_TIPO_RISPOSTA_TEXT;
  71.     public static final String VALUE_PARAMETRO_INFORMAZIONI_UTILIZZO_OGGETTO_TIPO_RISPOSTA_JSON = Costanti.VALUE_PARAMETRO_INFORMAZIONI_UTILIZZO_OGGETTO_TIPO_RISPOSTA_JSON;
  72.    
  73.    
  74.    
  75.     public static final String PARAMETRO_PROPRIETA_OGGETTO_URL = Costanti.PARAMETRO_INFORMAZIONI_UTILIZZO_OGGETTO_URL;
  76.     public static final String PARAMETRO_PROPRIETA_OGGETTO_ID_OGGETTO = Costanti.PARAMETRO_INFORMAZIONI_UTILIZZO_OGGETTO_ID_OGGETTO;
  77.     public static final String PARAMETRO_PROPRIETA_OGGETTO_TIPO_OGGETTO = Costanti.PARAMETRO_INFORMAZIONI_UTILIZZO_OGGETTO_TIPO_OGGETTO;
  78.     public static final String PARAMETRO_PROPRIETA_OGGETTO_TIPO_RISPOSTA = Costanti.PARAMETRO_INFORMAZIONI_UTILIZZO_OGGETTO_TIPO_RISPOSTA;
  79.    
  80.     public static final String VALUE_PARAMETRO_PROPRIETA_OGGETTO_TIPO_RISPOSTA_TEXT= Costanti.VALUE_PARAMETRO_INFORMAZIONI_UTILIZZO_OGGETTO_TIPO_RISPOSTA_TEXT;
  81.     public static final String VALUE_PARAMETRO_PROPRIETA_OGGETTO_TIPO_RISPOSTA_JSON = Costanti.VALUE_PARAMETRO_INFORMAZIONI_UTILIZZO_OGGETTO_TIPO_RISPOSTA_JSON;
  82.    
  83.    
  84.    
  85.     public static final String KEY_JSON_RISPOSTA_USO = "uso";
  86.    
  87.    
  88.     public static final String PARAMETRO_SECRET_TO_UNWRAP = "secret";
  89.     public static final String MESSAGGIO_ERRORE_UNWRAP = "Si &egrave; verificato un errore durante la decodifica. Si prega di riprovare pi&ugrave; tardi.";
  90.     public static final String MESSAGGIO_ERRORE_ELIMINAZIONE_ELEMENTO_CACHE = "Si &egrave; verificato un errore durante la rimozione dell'elemento dalla cache. Si prega di riprovare pi&ugrave; tardi.";
  91.     public static final String MESSAGGIO_ERRORE_VERIFICA_CERTIFICATI = "Si &egrave; verificato un errore durante la verifica dei certificati. Si prega di riprovare pi&ugrave; tardi.";
  92.     public static final String MESSAGGIO_INFORMATIVO_VERIFICA_CERTIFICATI_NON_ESEGUITA = "Verifica dei certificati non eseguita";
  93.    
  94.     public static final String KEY_ESITO = Costanti.KEY_ESITO_JSON;
  95.     public static final String KEY_DETTAGLIO_ESITO = Costanti.KEY_DETTAGLIO_ESITO_JSON;
  96. }