Costanti.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.message.constants;

  21. import org.openspcoop2.utils.Map;
  22. import org.openspcoop2.utils.MapKey;
  23. import org.openspcoop2.utils.transport.http.HttpConstants;

  24. /**
  25.  * Costanti
  26.  *
  27.  *
  28.  * @author Poli Andrea (apoli@link.it)
  29.  * @author $Author$
  30.  * @version $Rev$, $Date$
  31.  */
  32. public class Costanti {
  33.        
  34.     /** SOAP MESSAGE PROPERTY */
  35.     public static final String SOAP_MESSAGE_PROPERTY_MESSAGE_TYPE = "OP2_MESSAGE_TYPE";
  36.    
  37.     /** ContentType Speciali */
  38.     public static final String CONTENT_TYPE_ALL = "*";
  39.     public static final String CONTENT_TYPE_NOT_DEFINED = "NotDefined";
  40.    
  41.     /** SOAP Action */
  42.     public static final String SOAP11_MANDATORY_HEADER_HTTP_SOAP_ACTION = HttpConstants.SOAP11_MANDATORY_HEADER_HTTP_SOAP_ACTION;
  43.     public static final String SOAP12_OPTIONAL_CONTENT_TYPE_PARAMETER_SOAP_ACTION = HttpConstants.SOAP12_OPTIONAL_CONTENT_TYPE_PARAMETER_SOAP_ACTION;
  44.    
  45.     /** SOAP Envelope namespace */
  46.     public static final String SOAP_ENVELOPE_NAMESPACE = "http://schemas.xmlsoap.org/soap/envelope/";
  47.     public static final String SOAP12_ENVELOPE_NAMESPACE = "http://www.w3.org/2003/05/soap-envelope";
  48.    
  49.     /** SOAP Fault Code */
  50.     public static final String SOAP11_FAULT_CODE_SEPARATOR = ".";
  51.     public static final String SOAP11_FAULT_CODE_SERVER = "Server";
  52.     public static final String SOAP11_FAULT_CODE_CLIENT = "Client";
  53.     public static final String SOAP12_FAULT_CODE_SERVER = "Receiver";
  54.     public static final String SOAP12_FAULT_CODE_CLIENT = "Sender";
  55.    
  56.     /** XMLNamespace */
  57.     public static final String XMLNS_NAMESPACE = "http://www.w3.org/2000/xmlns/";
  58.     public static final String XMLNS_LOCAL_NAME = "xmlns";
  59.    
  60.     /** Tunnel */
  61.     public static final String SOAP_TUNNEL_NAMESPACE = "http://www.govway.org/out/xml2soap";
  62.     public static final String SOAP_TUNNEL_ATTACHMENT_ELEMENT_OPENSPCOOP2_TYPE = "SOAPTunnel";
  63.     public static final String SOAP_TUNNEL_ATTACHMENT_ELEMENT = "Attachments";
  64.    
  65.     /** Costanti per posizione errore degli id WSSecurity */
  66.     public static final String FIND_ERROR_ENCRYPTED_REFERENCES = "[WSS-Encrypt ReferencesSearch]";
  67.     public static final String FIND_ERROR_SIGNATURE_REFERENCES = "[WSS-Signature ReferencesSearch]";
  68.        
  69.     /** Context Empty */
  70.     public static final String CONTEXT_EMPTY = "@EMPTY@";
  71.    
  72.     /** SAML */
  73.     public static final String SAML_20_NAMESPACE = "urn:oasis:names:tc:SAML:2.0:assertion";
  74.     public static final String SAML_20_ASSERTION_ID = "ID";
  75.     public static final String XPATH_SAML_20_ASSERTION = "//{"+SAML_20_NAMESPACE+"}:Assertion";
  76.    
  77.     public static final String SAML_11_NAMESPACE = "urn:oasis:names:tc:SAML:1.0:assertion";
  78.     public static final String SAML_11_ASSERTION_ID = "AssertionID";
  79.     public static final String XPATH_SAML_11_ASSERTION = "//{"+SAML_11_NAMESPACE+"}:Assertion";
  80.    
  81.     /** FAULT DEFAULT */
  82.     public static final String DEFAULT_SOAP_FAULT_STRING = "InternalError";
  83.     public static final String DEFAULT_SOAP_FAULT_ACTOR = "http://govway.org/fault";
  84.    
  85.     /** PROBLEM */
  86.     public static final MapKey<String> ERRORE_GOVWAY = Map.newMapKey("ERRORE_GOVWAY");
  87.     public static final String TIPO_GOVWAY = "govway";
  88.     public static final String TIPO_RFC7807 = "rfc7807";
  89.     public static final MapKey<String> ERRORE_GOVWAY_PREFIX_CODE = Map.newMapKey("ERRORE_GOVWAY_PREFIX_CODE");
  90.     public static final MapKey<String> ERRORE_GOVWAY_CODE = Map.newMapKey("ERRORE_GOVWAY_CODE");
  91.     public static final MapKey<String> ERRORE_GOVWAY_DETAILS = Map.newMapKey("ERRORE_GOVWAY_DETAILS");
  92.    
  93.     /** WRITE MODE */
  94.     public static final String WRITE_MODE_SERIALIZE_BUFFER_WITH_HEADER = "SERIALIZE-BUFFER-WITH-HEADER";
  95.     public static final String WRITE_MODE_SERIALIZE_BUFFER = "SERIALIZE-BUFFER";
  96.     public static final String WRITE_MODE_SERIALIZE_CONTENT = "SERIALIZE-CONTENT";
  97.     public static final String WRITE_MODE_SERIALIZE_STREAM_WITH_HEADER = "SERIALIZE-STREAM-WITH-HEADER";
  98.     public static final String WRITE_MODE_SERIALIZE_STREAM = "SERIALIZE-STREAM";
  99. }