org.apache.sling.engine
Class EngineConstants

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

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
          The name of the request attribute set by the org.apache.sling.engine.impl.auth.SlingAuthenticator when authenticating the request user (value is "javax.jcr.Session").
static java.lang.String SLING_CURRENT_SERVLET_NAME
          The name of the request attribute providing the name of the currently executing servlet (value is "sling.core.current.servletName").
static java.lang.String SLING_HOME
          The name of the framework property defining the Sling home directory (value is "sling.home").
static java.lang.String SLING_HOME_URL
          The name of the framework property defining the Sling home directory as an URL (value is "sling.home.url").
static java.lang.String SLING_SERLVET_NAME
          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").
 
Constructor Summary
EngineConstants()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SLING_HOME

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

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

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

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

public static final java.lang.String SESSION
The name of the request attribute set by the org.apache.sling.engine.impl.auth.SlingAuthenticator when authenticating the request user (value is "javax.jcr.Session"). Existence of this attribute in the request, provided it is a JCR Session, signals that authentication has already taken place. This may be used when including through the servlet container.

See Also:
Constant Field Values
Constructor Detail

EngineConstants

public EngineConstants()


Copyright © 2007-2009. All Rights Reserved.