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.sling.engine;

The CoreConstants interface provides some symbolic constants for well known constant strings in Sling. Even though these constants will never change, it is recommended that applications refer to the symbolic constants instead of code the strings themselves.

Deprecated:
All constants have alternatives to use
 
 public class EngineConstants {

    
The name of the framework property defining the Sling home directory (value is "sling.home"). This is a Platform file system directory below which all runtime data, such as the Felix bundle archives, logfiles, the repository, etc., is located.

This property is available calling the BundleContext.getProperty(String) method.

 
     @Deprecated
     public static final String SLING_HOME = "sling.home";

    
The name of the framework property defining the Sling home directory as an URL (value is "sling.home.url").

The value of this property is assigned the value of new File(${sling.home}).toURI().toString() before resolving the property variables.

This property is available calling the BundleContext.getProperty(String) method.

 
     @Deprecated
     public static final String SLING_HOME_URL = "sling.home.url";

    
The name of the request attribute providing the name of the currently executing servlet (value is "sling.core.current.servletName"). This attribute is set immediately before calling the Servlet.service() method and reset to any previously stored value after the service method returns.

 
     @Deprecated
     public static final String SLING_CURRENT_SERVLET_NAME = "sling.core.current.servletName";

    
The name of the service registration property of a Servlet registered as a service containing the name of the servlet (value is "sling.core.servletName"). If this property is missing or empty, the component.name property or the service.pid is used. If none of the three properties is defined, the Servlet is ignored.

Deprecated:
 
     @Deprecated
     public static final String SLING_SERLVET_NAME = "sling.core.servletName";

    
The javax.jcr.Session request attribute used to be set by the SlingAuthenticator upon successfull authentication. With the implementation of a separate Commons Authentication bundle, this request attribute is not supported any longer (though it may currently still be provided for backwards compatibility).

Applications using this request attribute have to be modified to call the SlingHttpServletRequest.getResourceResolver() method to get the request's resource resolver.

Deprecated:
as of bundle version 2.1
 
    @Deprecated
    public static final String SESSION = "javax.jcr.Session";
New to GrepCode? Check out our FAQ X