Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * 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(s):
Craig R. McClanahan
Version:
$Revision: 2020 $ $Date: 2012-04-12 17:02:30 +0200 (Thu, 12 Apr 2012) $
 
 
 public final class Globals {

    
The servlet context attribute under which we store the alternate deployment descriptor for this web application
 
     public static final String ALT_DD_ATTR = 
         "org.apache.catalina.deploy.alt_dd";

    
The request attribute under which we store the array of X509Certificate objects representing the certificate chain presented by our client, if any.
 
     public static final String CERTIFICATES_ATTR =
         "javax.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 java.lang.String).
 
     public static final String CIPHER_SUITE_ATTR =
         "javax.servlet.request.cipher_suite";


    
Request dispatcher state.
 
     public static final String DISPATCHER_TYPE_ATTR = 
         "org.apache.catalina.core.DISPATCHER_TYPE";

    
Request dispatcher path.
 
     public static final String DISPATCHER_REQUEST_PATH_ATTR = 
         "org.apache.catalina.core.DISPATCHER_REQUEST_PATH";

    
The JNDI directory context which is associated with the context. This context can be used to manipulate static files.
 
     public static final String RESOURCES_ATTR =
         "org.apache.catalina.resources";


    
The request attribute under which we expose the value of the <jsp-file> value associated with this servlet, if any.
 
     public static final String JSP_FILE_ATTR =
         "org.apache.catalina.jsp_file";


    
The servlet context attribute under which we record the set of JSP property groups (as an object of type HashMap<String, JspPropertyGroup>) for this application.
 
     public static final String JSP_PROPERTY_GROUPS =
         "org.apache.catalina.JSP_PROPERTY_GROUPS";


    
The servlet context attribute under which we record the set of JSP tag libraries (as an object of type HashMap<String, TagLibraryInfo>) for this application.
 
     public static final String JSP_TAG_LIBRARIES =
         "org.apache.catalina.JSP_TAG_LIBRARIES";


    
The servlet context attribute under which we record the Servlet API version support declared for this webapp.
    public static final String SERVLET_VERSION =
        "org.apache.catalina.SERVLET_VERSION";


    
The request attribute under which we store the key size being used for this SSL connection (as an object of type java.lang.Integer).
    public static final String KEY_SIZE_ATTR =
        "javax.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 java.lang.String).
    public static final String SSL_SESSION_ID_ATTR =
        "javax.servlet.request.ssl_session_id";
    public static final String SSL_SESSION_ID_OLD_ATTR =
        "javax.servlet.request.ssl_session";


    
The servlet context attribute under which the managed bean Registry will be stored for privileged contexts (if enabled).
    public static final String MBEAN_REGISTRY_ATTR =
        "org.apache.catalina.Registry";


    
The request attribute under which we store the servlet name on a named dispatcher request.
    public static final String NAMED_DISPATCHER_ATTR =
        "org.apache.catalina.NAMED";


    
The name of the cookie used to pass the session identifier back and forth with the client.
    public static final String SESSION_COOKIE_NAME =
        System.getProperty("org.apache.catalina.JSESSIONID""JSESSIONID");


    
The name of the path parameter used to pass the session identifier back and forth with the client.
    public static final String SESSION_PARAMETER_NAME =
        System.getProperty("org.apache.catalina.jsessionid""jsessionid");


    
The servlet context attribute under which we store a flag used to mark this request as having been processed by the SSIServlet. We do this because of the pathInfo mangling happening when using the CGIServlet in conjunction with the SSI servlet. (value stored as an object of type String)
     public static final String SSI_FLAG_ATTR =
         "org.apache.catalina.ssi.SSIServlet";


    
The subject under which the AccessControlContext is running.
    public static final String SUBJECT_ATTR =
        "javax.security.auth.subject";

    
    
The servlet context attribute under which we record the set of welcome files (as an object of type String[]) for this application.
    public static final String WELCOME_FILES_ATTR =
        "org.apache.catalina.WELCOME_FILES";


    
The master flag which controls strict servlet specification compliance.
    public static final boolean STRICT_SERVLET_COMPLIANCE =
        Boolean.valueOf(System.getProperty("org.apache.catalina.STRICT_SERVLET_COMPLIANCE""true")).booleanValue();


    
Has security been turned on?
    public static final boolean IS_SECURITY_ENABLED =
        (System.getSecurityManager() != null);
New to GrepCode? Check out our FAQ X