CodiceErroreIntegrazione.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.constants;

  21. import java.io.Serializable;

  22. /**
  23.  * CodiceErroreIntegrazione
  24.  *
  25.  * @author Poli Andrea (apoli@link.it)
  26.  * @author $Author$
  27.  * @version $Rev$, $Date$
  28.  */
  29. public enum CodiceErroreIntegrazione implements CodiceErrore, Serializable{
  30.    

  31.     /* ********  F I E L D S    S T A T I C    P U B L I C  ******** */
  32.    
  33.     UNKNOWN(0),
  34.    
  35.    
  36.      /* ******** MESSAGGI E CODICI 5XX  ******** */
  37.    
  38.     /** String che contiene un codice di errore OpenSPCoop: Errore di Processamento Generale, 500*/
  39.     CODICE_500_ERRORE_INTERNO(500),
  40.     /** String che contiene un codice di errore OpenSPCoop: OpenSPCoop non inizializzato, 501*/
  41.     CODICE_501_PDD_NON_INIZIALIZZATA(501),
  42.     /** String che contiene un codice di errore OpenSPCoop: ErroreProcessamento durante l'individuazione della Porta, 502*/
  43.     CODICE_502_IDENTIFICAZIONE_PORTA(502),
  44.     /** String che contiene un codice di errore OpenSPCoop: ErroreProcessamento durante il processo di autenticazione, 503*/
  45.     CODICE_503_AUTENTICAZIONE(503),
  46.     /** String che contiene un codice di errore OpenSPCoop: ErroreProcessamento durante il processo di autorizzazione, 504*/
  47.     CODICE_504_AUTORIZZAZIONE(504),
  48.     /** String che contiene un codice di errore OpenSPCoop: ErroreProcessamento durante la get di una connessione al DB, 505*/
  49.     CODICE_505_GET_DB_CONNECTION(505),
  50.     /** String che contiene un codice di errore OpenSPCoop: ErroreProcessamento durante il CommitJDBC, 506*/
  51.     CODICE_506_COMMIT_JDBC(506),
  52.     /** String che contiene un codice di errore OpenSPCoop: ErroreProcessamento durante la costruzione di un ID, 507*/
  53.     CODICE_507_COSTRUZIONE_IDENTIFICATIVO(507),
  54.     /** String che contiene un codice di errore OpenSPCoop: ErroreProcessamento durante il salvataggio della richiesta applicativa, 508*/
  55.     CODICE_508_SAVE_REQUEST_MSG(508),
  56.     /** String che contiene un codice di errore OpenSPCoop: ErroreProcessamento durante la lettura della richiesta applicativa, 509*/
  57.     CODICE_509_READ_REQUEST_MSG(509),
  58.     /** String che contiene un codice di errore OpenSPCoop: ErroreProcessamento durante il salvataggio della risposta applicativa, 510*/
  59.     CODICE_510_SAVE_RESPONSE_MSG(510),
  60.     /** String che contiene un codice di errore OpenSPCoop: ErroreProcessamento durante la lettura della risposta applicativa, 511*/
  61.     CODICE_511_READ_RESPONSE_MSG(511),
  62.     /** String che contiene un codice di errore OpenSPCoop: Errore durante l'inoltro messaggio via JMS al successivo modulo, 512*/
  63.     CODICE_512_SEND(512),
  64.     /** String che contiene un codice di errore OpenSPCoop: Errore durante la ricezione di un messaggio dal precedente modulo, 513*/
  65.     CODICE_513_RECEIVE(513),
  66.     /** String che contiene un codice di errore OpenSPCoop: Configurazione del routing errata: connettore per forward non trovato, 514*/
  67.     CODICE_514_ROUTING_CONFIGURATION_ERROR(514),
  68.     /** String che contiene un codice di errore OpenSPCoop: Errore, Connettore non registrato, 515*/
  69.     CODICE_515_CONNETTORE_NON_REGISTRATO(515),
  70.     /** String che contiene un codice di errore OpenSPCoop: Errore, Errore durante l'utilizzo del Connettore, 516*/
  71.     CODICE_516_CONNETTORE_UTILIZZO_CON_ERRORE(516),
  72.     /** String che contiene un codice di errore OpenSPCoop: Errore, Risposta non presente, 517*/
  73.     CODICE_517_RISPOSTA_RICHIESTA_NON_RITORNATA(517),
  74.     /** String che contiene un codice di errore OpenSPCoop: Errore, Risposta non presente, ma SOAP Fault presente, 518*/
  75.     CODICE_518_RISPOSTA_RICHIESTA_RITORNATA_COME_FAULT(518),
  76.     /** String che contiene un codice di errore OpenSPCoop: IntegrationManager configurato senza autenticazione, 519*/
  77.     CODICE_519_INTEGRATION_MANAGER_CONFIGURATION_ERROR(519),
  78.      /** String che contiene un codice di errore OpenSPCoop: ErroreProcessamento durante la lettura di un msg del IntegrationManager, 520*/
  79.     CODICE_520_READ_MSG_FROM_INTEGRATION_MANAGER(520),
  80.     /** String che contiene un codice di errore OpenSPCoop: ErroreProcessamento durante il save di un msg del IntegrationManager, 521*/
  81.     CODICE_521_SAVE_MSG_FROM_INTEGRATION_MANAGER(521),
  82.     /** String che contiene un codice di errore OpenSPCoop: ErroreProcessamento durante l'eliminazione di un msg (IntegrationManager) 522*/
  83.     CODICE_522_DELETE_MSG_FROM_INTEGRATION_MANAGER(522),
  84.     /** String che contiene un codice di errore OpenSPCoop: ErroreProcessamento durante la creazione di un Message 523*/
  85.     CODICE_523_CREAZIONE_PROTOCOL_MESSAGE(523),
  86.     /** String che contiene un codice di errore OpenSPCoop: ErroreProcessamento durante la creazione di un Message 524*/
  87.     CODICE_524_CREAZIONE_PROTOCOL_EXCEPTION(524),
  88.     /** String che contiene un codice di errore OpenSPCoop: ErroreProcessamento durante il salvataggio di informazioni 525*/
  89.     CODICE_525_GESTIONE_FUNZIONALITA_PROTOCOLLO(525),
  90.     /** String che contiene un codice di errore OpenSPCoop: ErroreProcessamento durante l'imbustamento 526*/
  91.     CODICE_526_GESTIONE_IMBUSTAMENTO(526),
  92.     /** String che contiene un codice di errore OpenSPCoop: ErroreProcessamento durante lo sbustamento 527*/
  93.     CODICE_527_GESTIONE_SBUSTAMENTO(527),
  94.     /** String che contiene un codice di errore OpenSPCoop: Errore, Risposta non valida, 528*/
  95.     CODICE_528_RISPOSTA_RICHIESTA_NON_VALIDA(528),
  96.     /** String che contiene un codice di errore OpenSPCoop: Errore, Correlazione Applicativa non riuscita, 529*/
  97.     CODICE_529_CORRELAZIONE_APPLICATIVA_RICHIESTA_NON_RIUSCITA(529),
  98.     /** String che contiene un codice di errore OpenSPCoop: Errore, Costruzione Interfaccia non riuscita, 530*/
  99.     CODICE_530_COSTRUZIONE_INTERFACCIA_FALLITA(530),
  100.     /** String che contiene un codice di errore OpenSPCoop: Errore, Validazione Interfaccia non riuscita, 531*/
  101.     CODICE_531_VALIDAZIONE_TRAMITE_INTERFACCIA_FALLITA(531),
  102.     /** String che contiene un codice di errore OpenSPCoop: Risorse non disponibili , 532*/
  103.     CODICE_532_RISORSE_NON_DISPONIBILI(532),
  104.     /** String che contiene un codice di errore OpenSPCoop: Risorse non disponibili , 533*/
  105.     CODICE_533_RISORSE_DISPONIBILI_LIVELLO_CRITICO(533),
  106.     /** String che contiene un codice di errore OpenSPCoop: Risorse non disponibili , 534*/
  107.     CODICE_534_REGISTRO_DEI_SERVIZI_NON_DISPONIBILE(534),
  108.     /** String che contiene un codice di errore OpenSPCoop: BustaSPcoop senza Eccezioni anche se consegna con errore , 535*/
  109.     CODICE_535_BUSTA_SENZA_ECCEZIONI_CON_UTILIZZO_CONNETTORE_CON_ERRORE(535),
  110.     /** String che contiene un codice di errore OpenSPCoop: Risorsa Configurazione non disponibili , 536*/
  111.     CODICE_536_CONFIGURAZIONE_NON_DISPONIBILE(536),
  112.     /** String che contiene un codice di errore OpenSPCoop: BustaSPCoopRicevutaPrecedentemente,537 */
  113.     CODICE_537_BUSTA_GIA_RICEVUTA(537),
  114.     /** String che contiene un codice di errore OpenSPCoop: BustaSPCoopRichiestaAsincronaAncoraInProcessamento,538 */
  115.     CODICE_538_RICHIESTA_ASINCRONA_ANCORA_IN_PROCESSAMENTO(538),
  116.     /** String che contiene un codice di errore OpenSPCoop: BustaSPCoopRicevutaRichiestaAsincronaAncoraInProcessamento,539 */
  117.     CODICE_539_RICEVUTA_RICHIESTA_ASINCRONA_ANCORA_IN_PROCESSAMENTO(539),
  118.     /** String che contiene un codice di errore OpenSPCoop: Risorse non disponibili , 540*/
  119.     CODICE_540_REGISTRO_SERVIZI_MAL_CONFIGURATO(540),
  120.     /** String che contiene un codice di errore OpenSPCoop: Gestione header integrazione , 541*/
  121.     CODICE_541_GESTIONE_HEADER_INTEGRAZIONE(541),
  122.     /** String che contiene un codice di errore OpenSPCoop: ErroreProcessamento durante il processo di autorizzazione per contenuto, 542*/
  123.     CODICE_542_AUTORIZZAZIONE_CONTENUTO(542),  
  124.     /** String che contiene un codice di errore OpenSPCoop: ErroreProcessamento durante l'invocazione dell'handler di inoltro richiesta*/
  125.     CODICE_543_HANDLER_OUT_REQUEST(543),
  126.     /** String che contiene un codice di errore OpenSPCoop: ErroreProcessamento durante l'invocazione dell'handler di ricezione risposta*/
  127.     CODICE_544_HANDLER_IN_RESPONSE(544),  
  128.     /** String che contiene un codice di errore OpenSPCoop: Risorse non disponibili , 545*/
  129.     CODICE_545_TRACCIATURA_NON_FUNZIONANTE(545),
  130.     /** String che contiene un codice di errore OpenSPCoop: Risorse non disponibili , 546*/
  131.     CODICE_546_DIAGNOSTICA_NON_FUNZIONANTE(546),
  132.     /** String che contiene un codice di errore OpenSPCoop: Risorse non disponibili , 547*/
  133.     CODICE_547_DUMP_CONTENUTI_APPLICATIVI_NON_FUNZIONANTE(547),
  134.     /** String che contiene un codice di errore OpenSPCoop: gestore credenziali , 548*/
  135.     CODICE_548_GESTORE_CREDENZIALI_NON_FUNZIONANTE(548),
  136.     /** String che contiene un codice di errore OpenSPCoop: security info reader error , 549*/
  137.     CODICE_549_SECURITY_INFO_READER_ERROR(549),
  138.     /** String che contiene un codice di errore OpenSPCoop2: PDService non attivo, 550*/
  139.     CODICE_550_PD_SERVICE_NOT_ACTIVE(550),
  140.     /** String che contiene un codice di errore OpenSPCoop2: PAService non attivo, 551*/
  141.     CODICE_551_PA_SERVICE_NOT_ACTIVE(551),
  142.     /** String che contiene un codice di errore OpenSPCoop2: IMService non attivo, 552*/
  143.     CODICE_552_IM_SERVICE_NOT_ACTIVE(552),
  144.     /** String che contiene un codice di errore OpenSPCoop: Errore, Correlazione Applicativa non riuscita, 553*/
  145.     CODICE_553_CORRELAZIONE_APPLICATIVA_RISPOSTA_NON_RIUSCITA(553),
  146.     /** String che contiene un codice di errore OpenSPCoop: Errore, Configurazione LocalForward non utilizzabile, 554*/
  147.     CODICE_554_LOCAL_FORWARD_ERROR(554),
  148.     /** String che contiene un codice di errore OpenSPCoop: Errore, Configurazione LocalForward errore durante il processamento del messaggio di richiesta, 555*/
  149.     CODICE_555_LOCAL_FORWARD_PROCESS_REQUEST_ERROR(555),
  150.     /** String che contiene un codice di errore OpenSPCoop: Errore, Configurazione LocalForward errore durante il processamento del messaggio di risposta, 556*/
  151.     CODICE_556_LOCAL_FORWARD_PROCESS_RESPONSE_ERROR(556),
  152.     /** String che contiene un codice di errore OpenSPCoop: Errore, Gestione MTOM errore durante il processamento del messaggio, 557*/
  153.     CODICE_557_MTOM_PROCESSOR_ERROR(557),
  154.     /** String che contiene un codice di errore OpenSPCoop: ErroreProcessamento durante l'invocazione dell'handler di inoltro richiesta con info di protocollo, 558*/
  155.     CODICE_558_HANDLER_IN_PROTOCOL_REQUEST(558),
  156.     /** String che contiene un codice di errore OpenSPCoop: ErroreProcessamento situazione anomala di messaggio senza fault ricevuto insieme ad un errore di trasporto, 559*/
  157.     CODICE_559_RICEVUTA_RISPOSTA_CON_ERRORE_TRASPORTO(559),
  158.     /** String che contiene un codice di errore OpenSPCoop: ErroreProcessamento situazione anomala durante la gestione token, 560*/
  159.     CODICE_560_GESTIONE_TOKEN(560),
  160.     /** String che contiene un codice di errore OpenSPCoop: ErroreProcessamento situazione anomala durante la generazione del digest della richiesta, 561*/
  161.     CODICE_561_DIGEST_REQUEST(561),
  162.     /** String che contiene un codice di errore OpenSPCoop: ErroreProcessamento situazione anomala durante la gestione della trasformazione, 562*/
  163.     CODICE_562_TRASFORMAZIONE(562),
  164.    
  165.     /** Codice di Errore Custom, 5XX*/
  166.     CODICE_5XX_CUSTOM(5),
  167.    
  168.    

  169.     /* ******** MESSAGGI E CODICI 4XX  ******** */

  170.     /** String che contiene un codice di errore OpenSPCoop: PortaDelegataInesistente,401 */
  171.     CODICE_401_PORTA_INESISTENTE(401),
  172.     /** String che contiene un codice di errore OpenSPCoop: AutenticazioneFallita, 402*/
  173.     CODICE_402_AUTENTICAZIONE_FALLITA(402),
  174.     /** String che contiene un codice di errore OpenSPCoop: IdentificazioneDinamicaAzioneFallita,403 */
  175.     CODICE_403_AZIONE_NON_IDENTIFICATA(403),
  176.     /** String che contiene un codice di errore OpenSPCoop: AutorizzazioneFallita, 404*/
  177.     CODICE_404_AUTORIZZAZIONE_FALLITA(404),
  178.     /** String che contiene un codice di errore OpenSPCoop: ServizioSPCoopNonTrovato, 405*/
  179.     CODICE_405_SERVIZIO_NON_TROVATO(405),
  180.     /** String che contiene un codice di errore OpenSPCoop: Messaggi per il servizio applicativo non trovati, 406*/
  181.     CODICE_406_INTEGRATION_MANAGER_MESSAGGI_FOR_SIL_NON_TROVATI(406),
  182.     /** String che contiene un codice di errore OpenSPCoop: Messaggio richiesto non trovato, 407*/
  183.     CODICE_407_INTEGRATION_MANAGER_MSG_RICHIESTO_NON_TROVATO(407),
  184.     /** String che contiene un codice di errore OpenSPCoop: ServizioCorrelatoNonTrovato, 408*/
  185.     CODICE_408_SERVIZIO_CORRELATO_NON_TROVATO(408),
  186.     /** String che contiene un codice di errore OpenSPCoop: ServizioCorrelatoNonTrovato, 409*/
  187.     CODICE_409_RISPOSTA_ASINCRONA_NON_CORRELATA_ALLA_RICHIESTA(409),
  188.      /** String che contiene un codice di errore OpenSPCoop: AutenticazioneFallita, 410*/
  189.     CODICE_410_AUTENTICAZIONE_RICHIESTA(410),
  190.      /** String che contiene un codice di errore OpenSPCoop: RicezioneContenutiAsincroniRichiesta, 411*/
  191.     CODICE_411_RICEZIONE_CONTENUTI_ASINCRONA_RICHIESTA(411),
  192.      /** String che contiene un codice di errore OpenSPCoop: PortaDelegata invocabile solo per riferimento, 412*/
  193.     CODICE_412_PD_INVOCABILE_SOLO_PER_RIFERIMENTO(412),
  194.      /** String che contiene un codice di errore OpenSPCoop: PortaDelegata invocabile solo senza riferimento, 413*/
  195.     CODICE_413_PD_INVOCABILE_SOLO_SENZA_RIFERIMENTO(413),
  196.      /** String che contiene un codice di errore OpenSPCoop: Funzionalità di consegna in ordine utilizzabile solo con profilo oneway, 414*/
  197.     CODICE_414_CONSEGNA_IN_ORDINE_CON_PROFILO_NO_ONEWAY(414),
  198.      /** String che contiene un codice di errore OpenSPCoop: Funzionalità di consegna in ordine non utilizzabile senza id collaborazione, 415*/
  199.     CODICE_415_CONSEGNA_IN_ORDINE_SENZA_VINCOLI_RICHIESTI(415),
  200.     /** String che contiene un codice di errore OpenSPCoop: Errore, Correlazione Applicativa errore, 416*/
  201.     CODICE_416_CORRELAZIONE_APPLICATIVA_RICHIESTA_ERRORE(416),
  202.     /** String che contiene un codice di errore OpenSPCoop: Errore, Costruzione Interfaccia non riuscita, 417*/
  203.     CODICE_417_COSTRUZIONE_VALIDATORE_TRAMITE_INTERFACCIA_FALLITA(417),
  204.     /** String che contiene un codice di errore OpenSPCoop: Errore, Validazione Interfaccia non riuscita, 418*/
  205.     CODICE_418_VALIDAZIONE_RICHIESTA_TRAMITE_INTERFACCIA_FALLITA(418),
  206.     /** String che contiene un codice di errore OpenSPCoop: Errore, Validazione Interfaccia non riuscita, 419*/
  207.     CODICE_419_VALIDAZIONE_RISPOSTA_TRAMITE_INTERFACCIA_FALLITA(419),
  208.     /** String che contiene un codice di errore OpenSPCoop: Errore, Busta presente in una richiesta applicativa, 420*/
  209.     CODICE_420_BUSTA_PRESENTE_RICHIESTA_APPLICATIVA(420),
  210.     /** String che contiene un codice di errore OpenSPCoop: Errore, Busta soap non presente in una richiesta applicativa, 421*/
  211.     CODICE_421_MSG_SOAP_NON_PRESENTE_RICHIESTA_APPLICATIVA(421),
  212.     /** String che contiene un codice di errore OpenSPCoop: Errore, Imbustamento non riuscito in una richiesta applicativa, 422*/
  213.     CODICE_422_IMBUSTAMENTO_SOAP_NON_RIUSCITO_RICHIESTA_APPLICATIVA(422),
  214.     /** String che contiene un codice di errore OpenSPCoop: ServizioSPCoopNonTrovato, 423*/
  215.     CODICE_423_SERVIZIO_CON_AZIONE_SCORRETTA(423),
  216.     /** String che contiene un codice di errore OpenSPCoop: AllegaBody non riuscito, 424*/
  217.     CODICE_424_ALLEGA_BODY(424),
  218.     /** String che contiene un codice di errore OpenSPCoop: ScartaBody non riuscito, 425*/
  219.     CODICE_425_SCARTA_BODY(425),
  220.     /** String che contiene un codice di errore OpenSPCoop: Errore della Servlet, 426*/
  221.     CODICE_426_SERVLET_ERROR(426),
  222.     /** String che contiene un codice di errore OpenSPCoop: MustUnderstand Error, 427*/
  223.     CODICE_427_MUSTUNDERSTAND_ERROR(427),
  224.     /** String che contiene un codice di errore OpenSPCoop: AutorizzazioneFallita, 428*/
  225.     CODICE_428_AUTORIZZAZIONE_CONTENUTO_FALLITA(428),
  226.     /** String che contiene un codice di errore OpenSPCoop: 429*/
  227.     CODICE_429_CONTENT_TYPE_NON_SUPPORTATO(429),
  228.     /** String che contiene un codice di errore OpenSPCoop: SOPAEnvelope namespace errato, 430*/
  229.     CODICE_430_SOAP_ENVELOPE_NAMESPACE_ERROR(430),
  230.     /** String che contiene un codice di errore OpenSPCoop: Errore generato dal gestore delle credenziali, 431*/
  231.     CODICE_431_GESTORE_CREDENZIALI_ERROR(431),
  232.     /** String che contiene un codice di errore OpenSPCoop: Errore avvenuto durante il parsing della richiesta, 432*/
  233.     CODICE_432_PARSING_EXCEPTION_RICHIESTA(432),
  234.     /** String che contiene un codice di errore OpenSPCoop: 433*/
  235.     CODICE_433_CONTENT_TYPE_NON_PRESENTE(433),
  236.     /** String che contiene un codice di errore OpenSPCoop: Errore, Correlazione Applicativa errore, 434*/
  237.     CODICE_434_CORRELAZIONE_APPLICATIVA_RISPOSTA_ERRORE(434),
  238.     /** String che contiene un codice di errore OpenSPCoop: Errore, LocalForward, 435*/
  239.     CODICE_435_LOCAL_FORWARD_CONFIG_ERROR(435),
  240.     /** String che contiene un codice di errore OpenSPCoop: Errore, TipoSoggettoFruitoreNotSupported, 436*/
  241.     CODICE_436_TIPO_SOGGETTO_FRUITORE_NOT_SUPPORTED_BY_PROTOCOL(436),
  242.     /** String che contiene un codice di errore OpenSPCoop: Errore, TipoSoggettoErogatoreNotSupported, 437*/
  243.     CODICE_437_TIPO_SOGGETTO_EROGATORE_NOT_SUPPORTED_BY_PROTOCOL(437),
  244.     /** String che contiene un codice di errore OpenSPCoop: Errore, TipoServizioNotSupported, 438*/
  245.     CODICE_438_TIPO_SERVIZIO_NOT_SUPPORTED_BY_PROTOCOL(438),
  246.     /** String che contiene un codice di errore OpenSPCoop: Errore, FunzionalitaNotSupported, 439*/
  247.     CODICE_439_FUNZIONALITA_NOT_SUPPORTED_BY_PROTOCOL(439),
  248.     /** String che contiene un codice di errore OpenSPCoop: Errore avvenuto durante il parsing della risposta, 432*/
  249.     CODICE_440_PARSING_EXCEPTION_RISPOSTA(440),
  250.     /** String che contiene un codice di errore OpenSPCoop: PortaDelegataNonInvocabile,441 */
  251.     CODICE_441_PORTA_NON_INVOCABILE_DIRETTAMENTE(441),
  252.     /** String che contiene un codice di errore OpenSPCoop: PortaDelegataNonInvocabileSenzaFornireRiferimentoIdMessaggio,442 */
  253.     CODICE_442_RIFERIMENTO_ID_MESSAGGIO(442),
  254.     /** String che contiene un codice di errore OpenSPCoop: PortaDelegataNonInvocabileSenzaFornireRiferimentoIdMessaggio,443 */
  255.     CODICE_443_TOKEN_NON_PRESENTE(443),
  256.     /** String che contiene un codice di errore OpenSPCoop: PortaDelegataNonInvocabileSenzaFornireRiferimentoIdMessaggio,444 */
  257.     CODICE_444_TOKEN_NON_VALIDO(444),
  258.     /** String che contiene un codice di errore OpenSPCoop: PortaDelegataNonInvocabileSenzaFornireRiferimentoIdMessaggio,445 */
  259.     CODICE_445_TOKEN_AUTORIZZAZIONE_FALLITA(445),
  260.     /** String che contiene un codice di errore OpenSPCoop: Porta Sospesa,446 */
  261.     CODICE_446_SUSPEND(446),
  262.     /** String che contiene un codice di errore OpenSPCoop: Api non invocabile sul contesto utilizzato,447 */
  263.     CODICE_447_API_NON_INVOCABILE_CONTESTO_UTILIZZATO(447),
  264.     /** String che contiene un codice di errore OpenSPCoop: Api non invocabile sul tipo utilizzato,448 */
  265.     CODICE_448_API_NON_INVOCABILE_TIPO_SERVIZIO_UTILIZZATO(448),
  266.     /** String che contiene un codice di errore OpenSPCoop: Errore, TipoSoggettoFruitoreNotSupported, 449*/
  267.     CODICE_449_TIPO_SOGGETTO_APPLICATIVO_TOKEN_NOT_SUPPORTED_BY_PROTOCOL(449),
  268.    
  269.     // errori spediti in buste errore
  270.    
  271.     /** String che contiene un codice di errore OpenSPCoop: PortaApplicativaInesistente,450 */
  272.     CODICE_450_PA_INESISTENTE(450),
  273.     /** String che contiene un codice di errore OpenSPCoop: SoggettoInesistente,451 */
  274.     CODICE_451_SOGGETTO_INESISTENTE(451),
  275.     /** String che contiene un codice di errore OpenSPCoop: BustaSPCoopRicevutaPrecedentemente,452 */
  276.     CODICE_452_BUSTA_GIA_RICEVUTA(452),
  277.     /** String che contiene un codice di errore OpenSPCoop: PortaApplicativaInesistente,453 */
  278.     CODICE_453_SA_INESISTENTE(453),
  279.     /** String che contiene un codice di errore OpenSPCoop: Messaggio di risposta con busta nell'header,454 */
  280.     CODICE_454_BUSTA_PRESENTE_RISPOSTA_APPLICATIVA(454),
  281.     /** String che contiene un codice di errore OpenSPCoop: Messaggio di risposta con busta nell'header,455 */
  282.     CODICE_455_DATI_BUSTA_DIFFERENTI_PA_INVOCATA(455),

  283.     /** Codice di Errore Custom, 4XX*/
  284.     CODICE_4XX_CUSTOM(4);
  285.    
  286.    
  287.    
  288.     private final int codice;
  289.    
  290.     private CodiceErroreIntegrazione(int codice) {
  291.         this.codice = codice;
  292.     }
  293.    
  294.    
  295.     @Override
  296.     public int getCodice() {
  297.         return this.codice;
  298.     }
  299.    
  300.     @Override
  301.     public String toString() {
  302.         throw new RuntimeException("Not Implemented");
  303.     }
  304.    
  305.     public boolean equals(int codice){
  306.         return this.getCodice() == codice;
  307.     }
  308.    
  309. //  public static CodiceErroreIntegrazione toCodiceErroreIntegrazione(String codiceString) {
  310. //       int codice = Integer.parseInt(codiceString.substring(codiceString.length() - 3));
  311. //       return toCodiceErroreIntegrazione(codice);
  312. //  } USARE IL TRADUTTORE!!!
  313.     public static CodiceErroreIntegrazione toCodiceErroreIntegrazione(int codice) {
  314.         // recupero il codice
  315.         try{
  316.             switch (codice) {
  317.                 case 401: return CodiceErroreIntegrazione.CODICE_401_PORTA_INESISTENTE;
  318.                 case 402: return CodiceErroreIntegrazione.CODICE_402_AUTENTICAZIONE_FALLITA;
  319.                 case 403: return CodiceErroreIntegrazione.CODICE_403_AZIONE_NON_IDENTIFICATA;
  320.                 case 404: return CodiceErroreIntegrazione.CODICE_404_AUTORIZZAZIONE_FALLITA;
  321.                 case 405: return CodiceErroreIntegrazione.CODICE_405_SERVIZIO_NON_TROVATO;
  322.                 case 406: return CodiceErroreIntegrazione.CODICE_406_INTEGRATION_MANAGER_MESSAGGI_FOR_SIL_NON_TROVATI;
  323.                 case 407: return CodiceErroreIntegrazione.CODICE_407_INTEGRATION_MANAGER_MSG_RICHIESTO_NON_TROVATO;
  324.                 case 408: return CodiceErroreIntegrazione.CODICE_408_SERVIZIO_CORRELATO_NON_TROVATO;
  325.                 case 409: return CodiceErroreIntegrazione.CODICE_409_RISPOSTA_ASINCRONA_NON_CORRELATA_ALLA_RICHIESTA;
  326.                 case 410: return CodiceErroreIntegrazione.CODICE_410_AUTENTICAZIONE_RICHIESTA;
  327.                 case 411: return CodiceErroreIntegrazione.CODICE_411_RICEZIONE_CONTENUTI_ASINCRONA_RICHIESTA;
  328.                 case 412: return CodiceErroreIntegrazione.CODICE_412_PD_INVOCABILE_SOLO_PER_RIFERIMENTO;
  329.                 case 413: return CodiceErroreIntegrazione.CODICE_413_PD_INVOCABILE_SOLO_SENZA_RIFERIMENTO;
  330.                 case 414: return CodiceErroreIntegrazione.CODICE_414_CONSEGNA_IN_ORDINE_CON_PROFILO_NO_ONEWAY;
  331.                 case 415: return CodiceErroreIntegrazione.CODICE_415_CONSEGNA_IN_ORDINE_SENZA_VINCOLI_RICHIESTI;
  332.                 case 416: return CodiceErroreIntegrazione.CODICE_416_CORRELAZIONE_APPLICATIVA_RICHIESTA_ERRORE;
  333.                 case 417: return CodiceErroreIntegrazione.CODICE_417_COSTRUZIONE_VALIDATORE_TRAMITE_INTERFACCIA_FALLITA;
  334.                 case 418: return CodiceErroreIntegrazione.CODICE_418_VALIDAZIONE_RICHIESTA_TRAMITE_INTERFACCIA_FALLITA;
  335.                 case 419: return CodiceErroreIntegrazione.CODICE_419_VALIDAZIONE_RISPOSTA_TRAMITE_INTERFACCIA_FALLITA;
  336.                 case 420: return CodiceErroreIntegrazione.CODICE_420_BUSTA_PRESENTE_RICHIESTA_APPLICATIVA;
  337.                 case 421: return CodiceErroreIntegrazione.CODICE_421_MSG_SOAP_NON_PRESENTE_RICHIESTA_APPLICATIVA;
  338.                 case 422: return CodiceErroreIntegrazione.CODICE_422_IMBUSTAMENTO_SOAP_NON_RIUSCITO_RICHIESTA_APPLICATIVA;
  339.                 case 423: return CodiceErroreIntegrazione.CODICE_423_SERVIZIO_CON_AZIONE_SCORRETTA;
  340.                 case 424: return CodiceErroreIntegrazione.CODICE_424_ALLEGA_BODY;
  341.                 case 425: return CodiceErroreIntegrazione.CODICE_425_SCARTA_BODY;
  342.                 case 426: return CodiceErroreIntegrazione.CODICE_426_SERVLET_ERROR;
  343.                 case 427: return CodiceErroreIntegrazione.CODICE_427_MUSTUNDERSTAND_ERROR;
  344.                 case 428: return CodiceErroreIntegrazione.CODICE_428_AUTORIZZAZIONE_CONTENUTO_FALLITA;
  345.                 case 429: return CodiceErroreIntegrazione.CODICE_429_CONTENT_TYPE_NON_SUPPORTATO;
  346.                 case 430: return CodiceErroreIntegrazione.CODICE_430_SOAP_ENVELOPE_NAMESPACE_ERROR;
  347.                 case 431: return CodiceErroreIntegrazione.CODICE_431_GESTORE_CREDENZIALI_ERROR;
  348.                 case 432: return CodiceErroreIntegrazione.CODICE_432_PARSING_EXCEPTION_RICHIESTA;
  349.                 case 433: return CodiceErroreIntegrazione.CODICE_433_CONTENT_TYPE_NON_PRESENTE;
  350.                 case 434: return CodiceErroreIntegrazione.CODICE_434_CORRELAZIONE_APPLICATIVA_RISPOSTA_ERRORE;
  351.                 case 435: return CodiceErroreIntegrazione.CODICE_435_LOCAL_FORWARD_CONFIG_ERROR;
  352.                 case 436: return CodiceErroreIntegrazione.CODICE_436_TIPO_SOGGETTO_FRUITORE_NOT_SUPPORTED_BY_PROTOCOL;
  353.                 case 437: return CodiceErroreIntegrazione.CODICE_437_TIPO_SOGGETTO_EROGATORE_NOT_SUPPORTED_BY_PROTOCOL;
  354.                 case 438: return CodiceErroreIntegrazione.CODICE_438_TIPO_SERVIZIO_NOT_SUPPORTED_BY_PROTOCOL;
  355.                 case 439: return CodiceErroreIntegrazione.CODICE_439_FUNZIONALITA_NOT_SUPPORTED_BY_PROTOCOL;
  356.                 case 440: return CodiceErroreIntegrazione.CODICE_440_PARSING_EXCEPTION_RISPOSTA;
  357.                 case 441: return CodiceErroreIntegrazione.CODICE_441_PORTA_NON_INVOCABILE_DIRETTAMENTE;
  358.                 case 442: return CodiceErroreIntegrazione.CODICE_442_RIFERIMENTO_ID_MESSAGGIO;
  359.                 case 443: return CodiceErroreIntegrazione.CODICE_443_TOKEN_NON_PRESENTE;
  360.                 case 444: return CodiceErroreIntegrazione.CODICE_444_TOKEN_NON_VALIDO;
  361.                 case 445: return CodiceErroreIntegrazione.CODICE_445_TOKEN_AUTORIZZAZIONE_FALLITA;
  362.                 case 446: return CodiceErroreIntegrazione.CODICE_446_SUSPEND;
  363.                 case 447: return CodiceErroreIntegrazione.CODICE_447_API_NON_INVOCABILE_CONTESTO_UTILIZZATO;
  364.                 case 448: return CodiceErroreIntegrazione.CODICE_448_API_NON_INVOCABILE_TIPO_SERVIZIO_UTILIZZATO;
  365.                 case 449: return CodiceErroreIntegrazione.CODICE_449_TIPO_SOGGETTO_APPLICATIVO_TOKEN_NOT_SUPPORTED_BY_PROTOCOL;
  366.                 case 450: return CodiceErroreIntegrazione.CODICE_450_PA_INESISTENTE;
  367.                 case 451: return CodiceErroreIntegrazione.CODICE_451_SOGGETTO_INESISTENTE;
  368.                 case 452: return CodiceErroreIntegrazione.CODICE_452_BUSTA_GIA_RICEVUTA;
  369.                 case 453: return CodiceErroreIntegrazione.CODICE_453_SA_INESISTENTE;
  370.                 case 454: return CodiceErroreIntegrazione.CODICE_454_BUSTA_PRESENTE_RISPOSTA_APPLICATIVA;
  371.                
  372.                 case 4: return CodiceErroreIntegrazione.CODICE_4XX_CUSTOM;
  373.                
  374.                 case 500: return CodiceErroreIntegrazione.CODICE_500_ERRORE_INTERNO;
  375.                 case 501: return CodiceErroreIntegrazione.CODICE_501_PDD_NON_INIZIALIZZATA;
  376.                 case 502: return CodiceErroreIntegrazione.CODICE_502_IDENTIFICAZIONE_PORTA;
  377.                 case 503: return CodiceErroreIntegrazione.CODICE_503_AUTENTICAZIONE;
  378.                 case 504: return CodiceErroreIntegrazione.CODICE_504_AUTORIZZAZIONE;
  379.                 case 505: return CodiceErroreIntegrazione.CODICE_505_GET_DB_CONNECTION;
  380.                 case 506: return CodiceErroreIntegrazione.CODICE_506_COMMIT_JDBC;
  381.                 case 507: return CodiceErroreIntegrazione.CODICE_507_COSTRUZIONE_IDENTIFICATIVO;
  382.                 case 508: return CodiceErroreIntegrazione.CODICE_508_SAVE_REQUEST_MSG;
  383.                 case 509: return CodiceErroreIntegrazione.CODICE_509_READ_REQUEST_MSG;
  384.                 case 510: return CodiceErroreIntegrazione.CODICE_510_SAVE_RESPONSE_MSG;
  385.                 case 511: return CodiceErroreIntegrazione.CODICE_511_READ_RESPONSE_MSG;
  386.                 case 512: return CodiceErroreIntegrazione.CODICE_512_SEND;
  387.                 case 513: return CodiceErroreIntegrazione.CODICE_513_RECEIVE;
  388.                 case 514: return CodiceErroreIntegrazione.CODICE_514_ROUTING_CONFIGURATION_ERROR;
  389.                 case 515: return CodiceErroreIntegrazione.CODICE_515_CONNETTORE_NON_REGISTRATO;
  390.                 case 516: return CodiceErroreIntegrazione.CODICE_516_CONNETTORE_UTILIZZO_CON_ERRORE;
  391.                 case 517: return CodiceErroreIntegrazione.CODICE_517_RISPOSTA_RICHIESTA_NON_RITORNATA;
  392.                 case 518: return CodiceErroreIntegrazione.CODICE_518_RISPOSTA_RICHIESTA_RITORNATA_COME_FAULT;
  393.                 case 519: return CodiceErroreIntegrazione.CODICE_519_INTEGRATION_MANAGER_CONFIGURATION_ERROR;
  394.                 case 520: return CodiceErroreIntegrazione.CODICE_520_READ_MSG_FROM_INTEGRATION_MANAGER;
  395.                 case 521: return CodiceErroreIntegrazione.CODICE_521_SAVE_MSG_FROM_INTEGRATION_MANAGER;
  396.                 case 522: return CodiceErroreIntegrazione.CODICE_522_DELETE_MSG_FROM_INTEGRATION_MANAGER;
  397.                 case 523: return CodiceErroreIntegrazione.CODICE_523_CREAZIONE_PROTOCOL_MESSAGE;
  398.                 case 524: return CodiceErroreIntegrazione.CODICE_524_CREAZIONE_PROTOCOL_EXCEPTION;
  399.                 case 525: return CodiceErroreIntegrazione.CODICE_525_GESTIONE_FUNZIONALITA_PROTOCOLLO;
  400.                 case 526: return CodiceErroreIntegrazione.CODICE_526_GESTIONE_IMBUSTAMENTO;
  401.                 case 527: return CodiceErroreIntegrazione.CODICE_527_GESTIONE_SBUSTAMENTO;
  402.                 case 528: return CodiceErroreIntegrazione.CODICE_528_RISPOSTA_RICHIESTA_NON_VALIDA;
  403.                 case 529: return CodiceErroreIntegrazione.CODICE_529_CORRELAZIONE_APPLICATIVA_RICHIESTA_NON_RIUSCITA;
  404.                 case 530: return CodiceErroreIntegrazione.CODICE_530_COSTRUZIONE_INTERFACCIA_FALLITA;
  405.                 case 531: return CodiceErroreIntegrazione.CODICE_531_VALIDAZIONE_TRAMITE_INTERFACCIA_FALLITA;
  406.                 case 532: return CodiceErroreIntegrazione.CODICE_532_RISORSE_NON_DISPONIBILI;
  407.                 case 533: return CodiceErroreIntegrazione.CODICE_533_RISORSE_DISPONIBILI_LIVELLO_CRITICO;
  408.                 case 534: return CodiceErroreIntegrazione.CODICE_534_REGISTRO_DEI_SERVIZI_NON_DISPONIBILE;
  409.                 case 535: return CodiceErroreIntegrazione.CODICE_535_BUSTA_SENZA_ECCEZIONI_CON_UTILIZZO_CONNETTORE_CON_ERRORE;
  410.                 case 536: return CodiceErroreIntegrazione.CODICE_536_CONFIGURAZIONE_NON_DISPONIBILE;
  411.                 case 537: return CodiceErroreIntegrazione.CODICE_537_BUSTA_GIA_RICEVUTA;
  412.                 case 538: return CodiceErroreIntegrazione.CODICE_538_RICHIESTA_ASINCRONA_ANCORA_IN_PROCESSAMENTO;
  413.                 case 539: return CodiceErroreIntegrazione.CODICE_539_RICEVUTA_RICHIESTA_ASINCRONA_ANCORA_IN_PROCESSAMENTO;
  414.                 case 540: return CodiceErroreIntegrazione.CODICE_540_REGISTRO_SERVIZI_MAL_CONFIGURATO;
  415.                 case 541: return CodiceErroreIntegrazione.CODICE_541_GESTIONE_HEADER_INTEGRAZIONE;
  416.                 case 542: return CodiceErroreIntegrazione.CODICE_542_AUTORIZZAZIONE_CONTENUTO;
  417.                 case 543: return CodiceErroreIntegrazione.CODICE_543_HANDLER_OUT_REQUEST;
  418.                 case 544: return CodiceErroreIntegrazione.CODICE_544_HANDLER_IN_RESPONSE;
  419.                 case 545: return CodiceErroreIntegrazione.CODICE_545_TRACCIATURA_NON_FUNZIONANTE;
  420.                 case 546: return CodiceErroreIntegrazione.CODICE_546_DIAGNOSTICA_NON_FUNZIONANTE;
  421.                 case 547: return CodiceErroreIntegrazione.CODICE_547_DUMP_CONTENUTI_APPLICATIVI_NON_FUNZIONANTE;
  422.                 case 548: return CodiceErroreIntegrazione.CODICE_548_GESTORE_CREDENZIALI_NON_FUNZIONANTE;
  423.                 case 549: return CodiceErroreIntegrazione.CODICE_549_SECURITY_INFO_READER_ERROR;
  424.                 case 550: return CodiceErroreIntegrazione.CODICE_550_PD_SERVICE_NOT_ACTIVE;
  425.                 case 551: return CodiceErroreIntegrazione.CODICE_551_PA_SERVICE_NOT_ACTIVE;
  426.                 case 552: return CodiceErroreIntegrazione.CODICE_552_IM_SERVICE_NOT_ACTIVE;
  427.                 case 553: return CodiceErroreIntegrazione.CODICE_553_CORRELAZIONE_APPLICATIVA_RISPOSTA_NON_RIUSCITA;
  428.                 case 554: return CodiceErroreIntegrazione.CODICE_554_LOCAL_FORWARD_ERROR;
  429.                 case 555: return CodiceErroreIntegrazione.CODICE_555_LOCAL_FORWARD_PROCESS_REQUEST_ERROR;
  430.                 case 556: return CodiceErroreIntegrazione.CODICE_556_LOCAL_FORWARD_PROCESS_RESPONSE_ERROR;
  431.                 case 557: return CodiceErroreIntegrazione.CODICE_557_MTOM_PROCESSOR_ERROR;
  432.                 case 558: return CodiceErroreIntegrazione.CODICE_558_HANDLER_IN_PROTOCOL_REQUEST;
  433.                 case 559: return CodiceErroreIntegrazione.CODICE_559_RICEVUTA_RISPOSTA_CON_ERRORE_TRASPORTO;
  434.                 case 560: return CodiceErroreIntegrazione.CODICE_560_GESTIONE_TOKEN;
  435.                 case 561: return CodiceErroreIntegrazione.CODICE_561_DIGEST_REQUEST;
  436.                
  437.                 case 5: return CodiceErroreIntegrazione.CODICE_5XX_CUSTOM;
  438.             default:
  439.                 return CodiceErroreIntegrazione.CODICE_500_ERRORE_INTERNO;
  440.             }
  441.         } catch (Exception e) {
  442.             return UNKNOWN;
  443.         }
  444.     }
  445. }