org.apache.sling.engine
Class EngineConstants

java.lang.Object
  extended by org.apache.sling.engine.EngineConstants

Deprecated. All constants have alternatives to use

@Deprecated
public class EngineConstants
extends java.lang.Object

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.


Field Summary
static java.lang.String SESSION
          Deprecated. as of bundle version 2.1
static java.lang.String SLING_CURRENT_SERVLET_NAME
          Deprecated. Use SlingConstants.SLING_CURRENT_SERVLET_NAME
static java.lang.String SLING_HOME
          Deprecated. Use org.apache.sling.settings.SlingSettingsService#SLING_HOME
static java.lang.String SLING_HOME_URL
          Deprecated. Use org.apache.sling.settings.SlingSettingsService#SLING_HOME_URL
static java.lang.String SLING_SERLVET_NAME
          Deprecated.  
 
Constructor Summary
EngineConstants()
          Deprecated.  
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SLING_HOME

@Deprecated
public static final java.lang.String SLING_HOME
Deprecated. Use org.apache.sling.settings.SlingSettingsService#SLING_HOME
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.

See Also:
SLING_HOME_URL, Constant Field Values

SLING_HOME_URL

@Deprecated
public static final java.lang.String SLING_HOME_URL
Deprecated. Use org.apache.sling.settings.SlingSettingsService#SLING_HOME_URL
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.

See Also:
SLING_HOME, Constant Field Values

SLING_CURRENT_SERVLET_NAME

@Deprecated
public static final java.lang.String SLING_CURRENT_SERVLET_NAME
Deprecated. Use SlingConstants.SLING_CURRENT_SERVLET_NAME
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.

See Also:
Constant Field Values

SLING_SERLVET_NAME

@Deprecated
public static final java.lang.String SLING_SERLVET_NAME
Deprecated. 
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.

See Also:
Constant Field Values

SESSION

@Deprecated
public static final java.lang.String SESSION
Deprecated. as of bundle version 2.1
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.

See Also:
Constant Field Values
Constructor Detail

EngineConstants

public EngineConstants()
Deprecated. 


Copyright © 2007-2010 The Apache Software Foundation. All Rights Reserved.