/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License.
*/ package org.apache.catalina;
/** * Global constants that are applicable to multiple packages within Catalina. * * @author Craig R. McClanahan
*/ publicfinalclass Globals {
/** * The request attribute under which we store the servlet name on a * named dispatcher request.
*/ publicstaticfinal String NAMED_DISPATCHER_ATTR = "org.apache.catalina.NAMED";
/** * The request attribute that is set to {@code Boolean.TRUE} if some request * parameters have been ignored during request parameters parsing. It can * happen, for example, if there is a limit on the total count of parseable * parameters, or if parameter cannot be decoded, or any other error * happened during parameter parsing.
*/ publicstaticfinal String PARAMETER_PARSE_FAILED_ATTR = "org.apache.catalina.parameter_parse_failed";
/** * The reason that the parameter parsing failed.
*/ publicstaticfinal String PARAMETER_PARSE_FAILED_REASON_ATTR = "org.apache.catalina.parameter_parse_failed_reason";
/** * The request attribute set by the RemoteIpFilter, RemoteIpValve (and may * be set by other similar components) that identifies for the connector the * remote IP address claimed to be associated with this request when a * request is received via one or more proxies. It is typically provided via * the X-Forwarded-For HTTP header. * * Duplicated here for neater code in the catalina packages.
*/ publicstaticfinal String REMOTE_ADDR_ATTRIBUTE = org.apache.coyote.Constants.REMOTE_ADDR_ATTRIBUTE;
/** * The request attribute that is set to the value of {@code Boolean.TRUE} * by the RemoteIpFilter, RemoteIpValve (and other similar components) that identifies * a request which been forwarded via one or more proxies.
*/ publicstaticfinal String REQUEST_FORWARDED_ATTRIBUTE = "org.apache.tomcat.request.forwarded";
/** * The request attribute that is set to the value of {@code Boolean.TRUE} * if connector processing this request supports use of sendfile. * * Duplicated here for neater code in the catalina packages.
*/ publicstaticfinal String SENDFILE_SUPPORTED_ATTR = org.apache.coyote.Constants.SENDFILE_SUPPORTED_ATTR;
/** * The request attribute that is set to the value of {@code Boolean.TRUE} * if {@link org.apache.catalina.filters.RemoteIpFilter} determines * that this request was submitted via a secure channel.
*/ publicstaticfinal String REMOTE_IP_FILTER_SECURE = "org.apache.catalina.filters.RemoteIpFilter.secure";
/** * The request attribute that can be used by a servlet to pass * to the connector the name of the file that is to be served * by sendfile. The value should be {@code String} * that is {@code File.getCanonicalPath()} of the file to be served. * * Duplicated here for neater code in the catalina packages.
*/ publicstaticfinal String SENDFILE_FILENAME_ATTR = org.apache.coyote.Constants.SENDFILE_FILENAME_ATTR;
/** * The request attribute that can be used by a servlet to pass * to the connector the start offset of the part of a file * that is to be served by sendfile. The value should be * {@code Long}. To serve complete file * the value should be {@code Long.valueOf(0)}. * * Duplicated here for neater code in the catalina packages.
*/ publicstaticfinal String SENDFILE_FILE_START_ATTR = org.apache.coyote.Constants.SENDFILE_FILE_START_ATTR;
/** * The request attribute that can be used by a servlet to pass * to the connector the end offset (not including) of the part * of a file that is to be served by sendfile. The value should be * {@code java.lang.Long}. To serve complete file * the value should be equal to the length of the file. * * Duplicated here for neater code in the catalina packages.
*/ publicstaticfinal String SENDFILE_FILE_END_ATTR = org.apache.coyote.Constants.SENDFILE_FILE_END_ATTR;
/** * The request attribute under which we store the array of X509Certificate * objects representing the certificate chain presented by our client, * if any.
*/ publicstaticfinal String CERTIFICATES_ATTR = "jakarta.servlet.request.X509Certificate";
/** * The request attribute under which we store the name of the cipher suite * being used on an SSL connection (as an object of type {@link String}).
*/ publicstaticfinal String CIPHER_SUITE_ATTR = "jakarta.servlet.request.cipher_suite";
/** * The request attribute under which we store the key size being used for * this SSL connection (as an object of type {@link Integer}).
*/ publicstaticfinal String KEY_SIZE_ATTR = "jakarta.servlet.request.key_size";
/** * The request attribute under which we store the session id being used * for this SSL connection (as an object of type {@link String}).
*/ publicstaticfinal String SSL_SESSION_ID_ATTR = "jakarta.servlet.request.ssl_session_id";
/** * The request attribute key for the session manager. * This one is a Tomcat extension to the Servlet spec.
*/ publicstaticfinal String SSL_SESSION_MGR_ATTR = "jakarta.servlet.request.ssl_session_mgr";
/** * The servlet context attribute under which we store the alternate * deployment descriptor for this web application
*/ publicstaticfinal String ALT_DD_ATTR = "org.apache.catalina.deploy.alt_dd";
/** * The servlet context attribute under which we store the class path * for our application class loader (as an object of type String), * delimited with the appropriate path delimiter for this platform.
*/ publicstaticfinal String CLASS_PATH_ATTR = "org.apache.catalina.jsp_classpath";
/** * Name of the ServletContext attribute under which we store the context * Realm's CredentialHandler (if both the Realm and the CredentialHandler * exist).
*/ publicstaticfinal String CREDENTIAL_HANDLER = "org.apache.catalina.CredentialHandler";
/** * The WebResourceRoot which is associated with the context. This can be * used to manipulate static files.
*/ publicstaticfinal String RESOURCES_ATTR = "org.apache.catalina.resources";
/** * Name of the ServletContext attribute under which we store the web * application version string (the text that appears after ## when parallel * deployment is used).
*/ publicstaticfinal String WEBAPP_VERSION = "org.apache.catalina.webappVersion";
/** * Name of the ServletContext init-param that determines if the JSP engine * should validate *.tld files when parsing them. * <p> * This must be kept in sync with org.apache.jasper.Constants
*/ publicstaticfinal String JASPER_XML_VALIDATION_TLD_INIT_PARAM = "org.apache.jasper.XML_VALIDATE_TLD";
/** * Name of the ServletContext init-param that determines if the JSP engine * will block external entities from being used in *.tld, *.jspx, *.tagx and * tagplugin.xml files. * <p> * This must be kept in sync with org.apache.jasper.Constants
*/ publicstaticfinal String JASPER_XML_BLOCK_EXTERNAL_INIT_PARAM = "org.apache.jasper.XML_BLOCK_EXTERNAL";
// --------------------------------------------------- System property names
/** * Name of the system property containing * the tomcat product installation path
*/ publicstaticfinal String CATALINA_HOME_PROP = org.apache.catalina.startup.Constants.CATALINA_HOME_PROP;
/** * Name of the system property containing * the tomcat instance installation path
*/ publicstaticfinal String CATALINA_BASE_PROP = org.apache.catalina.startup.Constants.CATALINA_BASE_PROP;
// -------------------------------------------------------- Global constants
/** * The flag which controls strict servlet specification compliance. Setting * this flag to {@code true} will change the defaults for other settings.
*/ publicstaticfinalboolean STRICT_SERVLET_COMPLIANCE = Boolean.getBoolean("org.apache.catalina.STRICT_SERVLET_COMPLIANCE");
/** * Has security been turned on?
*/ publicstaticfinalboolean IS_SECURITY_ENABLED = (System.getSecurityManager() != null);
/** * Default domain for MBeans if none can be determined
*/ publicstaticfinal String DEFAULT_MBEAN_DOMAIN = "Catalina";
}
Messung V0.5
¤ Dauer der Verarbeitung: 0.16 Sekunden
(vorverarbeitet)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.