Class EngineConstants
- java.lang.Object
-
- org.apache.sling.engine.EngineConstants
-
public class EngineConstants extends java.lang.ObjectTheCoreConstantsinterface 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
Fields Modifier and Type Field Description static java.lang.StringFILTER_NAMEThe name of the service to be used for registering filters with theSlingRequestProcessor.static java.lang.StringFILTER_ORDERDeprecated.Use"service.ranking"(org.osgi.framework.Constants.SERVICE_RANKING) insteadstatic java.lang.StringFILTER_SCOPEDeprecated.UseSLING_FILTER_SCOPEinsteadstatic java.lang.StringFILTER_SCOPE_COMPONENTFilter scope value identifying a component level filter.static java.lang.StringFILTER_SCOPE_ERRORFilter scope value identifying an error level filter.static java.lang.StringFILTER_SCOPE_FORWARDFilter scope value identifying a forward level filter.static java.lang.StringFILTER_SCOPE_INCLUDEFilter scope value identifying an include level filter.static java.lang.StringFILTER_SCOPE_REQUESTFilter scope value identifying a request level filter.static java.lang.StringSESSIONDeprecated.as of bundle version 2.1static java.lang.StringSLING_CURRENT_SERVLET_NAMEDeprecated.static java.lang.StringSLING_FILTER_EXTENSIONSSet of extensions enabling a filter if contains request extensionstatic java.lang.StringSLING_FILTER_METHODSSet of methods enabling a filter on contains request methodstatic java.lang.StringSLING_FILTER_PATTERNRegular expression pattern for enabling a filter on a matching path This refers to both, the request path and the resolved resource path excluding selectors, extension and suffix.static java.lang.StringSLING_FILTER_REQUEST_PATTERNRegular expression pattern for enabling a filter on a matching request path This refers to the request path excluding selectors, extension and suffix.static java.lang.StringSLING_FILTER_RESOURCE_PATTERNRegular expression pattern for enabling a filter on a matching request path This refers to the resolved resource path excluding selectors, extension and suffix.static java.lang.StringSLING_FILTER_RESOURCETYPESSet of resource types enabling a filter if contains request resource typestatic java.lang.StringSLING_FILTER_SCOPEThe name of the service registration property of ajava.servlet.Filterservice to be used as a filter by theSlingRequestProcessor.static java.lang.StringSLING_FILTER_SELECTORSSet of selectors enabling a filter if contains one or more request selectorsstatic java.lang.StringSLING_FILTER_SUFFIX_PATTERNRegular expression pattern for enabling a filter on a matching request suffixstatic java.lang.StringSLING_HOMEDeprecated.static java.lang.StringSLING_HOME_URLDeprecated.static java.lang.StringSLING_SERLVET_NAMEDeprecated.
-
Constructor Summary
Constructors Constructor Description EngineConstants()
-
-
-
Field Detail
-
SLING_HOME
@Deprecated public static final java.lang.String SLING_HOME
Deprecated.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.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.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 theServlet.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, thecomponent.nameproperty or theservice.pidis 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.1Thejavax.jcr.Sessionrequest attribute used to be set by the SlingAuthenticator upon successfull authentication. with the release of the Authentication Core 1.0.0 bundle, this request attribute is not set any more.Applications requiring access to the JCR Session must be modified to get the Resource Resolver from the Sling request (
SlingHttpServletRequest.getResourceResolver()) and adapt it to the JCR Session.- See Also:
- Constant Field Values
-
FILTER_NAME
public static final java.lang.String FILTER_NAME
The name of the service to be used for registering filters with theSlingRequestProcessor.- Since:
- 2.1, Sling Engine 2.2
- See Also:
- Constant Field Values
-
FILTER_SCOPE
@Deprecated public static final java.lang.String FILTER_SCOPE
Deprecated.UseSLING_FILTER_SCOPEinsteadThe name of the service registration property of ajava.servlet.Filterservice to be used as a filter by theSlingRequestProcessor.The specification of the
filter.scopeservice registration property is required for ajavax.servlet.Filterservice to be used as a filter by the Sling Engine.The
filter.scoperegistration property is expected to be a scalar String, an array of Strings or a Vector of Strings. Case of the value is ignored.- Since:
- 2.1, Sling Engine 2.2
- See Also:
FILTER_SCOPE_COMPONENT,FILTER_SCOPE_ERROR,FILTER_SCOPE_FORWARD,FILTER_SCOPE_INCLUDE,FILTER_SCOPE_REQUEST, Constant Field Values
-
SLING_FILTER_SCOPE
public static final java.lang.String SLING_FILTER_SCOPE
The name of the service registration property of ajava.servlet.Filterservice to be used as a filter by theSlingRequestProcessor.The specification of the
sling.filter.scopeservice registration property is required for ajavax.servlet.Filterservice to be used as a filter by the Sling Engine.The
sling.filter.scoperegistration property is expected to be a scalar String, an array of Strings or a Vector of Strings. Case of the value is ignored.- Since:
- 2.1, Sling Engine 2.2
- See Also:
FILTER_SCOPE_COMPONENT,FILTER_SCOPE_ERROR,FILTER_SCOPE_FORWARD,FILTER_SCOPE_INCLUDE,FILTER_SCOPE_REQUEST, Constant Field Values
-
SLING_FILTER_PATTERN
public static final java.lang.String SLING_FILTER_PATTERN
Regular expression pattern for enabling a filter on a matching path This refers to both, the request path and the resolved resource path excluding selectors, extension and suffix.- See Also:
- Constant Field Values
-
SLING_FILTER_RESOURCE_PATTERN
public static final java.lang.String SLING_FILTER_RESOURCE_PATTERN
Regular expression pattern for enabling a filter on a matching request path This refers to the resolved resource path excluding selectors, extension and suffix.- Since:
- 2.4.0, Sling Engine 2.7.0
- See Also:
- Constant Field Values
-
SLING_FILTER_REQUEST_PATTERN
public static final java.lang.String SLING_FILTER_REQUEST_PATTERN
Regular expression pattern for enabling a filter on a matching request path This refers to the request path excluding selectors, extension and suffix.- Since:
- 2.4.0, Sling Engine 2.7.0
- See Also:
- Constant Field Values
-
SLING_FILTER_SUFFIX_PATTERN
public static final java.lang.String SLING_FILTER_SUFFIX_PATTERN
Regular expression pattern for enabling a filter on a matching request suffix- Since:
- Sling Engine 2.7
- See Also:
- Constant Field Values
-
SLING_FILTER_SELECTORS
public static final java.lang.String SLING_FILTER_SELECTORS
Set of selectors enabling a filter if contains one or more request selectors- Since:
- Sling Engine 2.7
- See Also:
- Constant Field Values
-
SLING_FILTER_METHODS
public static final java.lang.String SLING_FILTER_METHODS
Set of methods enabling a filter on contains request method- Since:
- Sling Engine 2.7
- See Also:
- Constant Field Values
-
SLING_FILTER_RESOURCETYPES
public static final java.lang.String SLING_FILTER_RESOURCETYPES
Set of resource types enabling a filter if contains request resource type- Since:
- Sling Engine 2.7
- See Also:
- Constant Field Values
-
SLING_FILTER_EXTENSIONS
public static final java.lang.String SLING_FILTER_EXTENSIONS
Set of extensions enabling a filter if contains request extension- Since:
- Sling Engine 2.7
- See Also:
- Constant Field Values
-
FILTER_SCOPE_COMPONENT
public static final java.lang.String FILTER_SCOPE_COMPONENT
Filter scope value identifying a component level filter.Component level filters are called once at the beginning of each request (after the
FILTER_SCOPE_REQUESTfilters) and for each resource being included or forwarded. The order of calling the filters is defined by theservice.ranking(orFILTER_ORDER) property and the service registration ID.- Since:
- 2.1, Sling Engine 2.2
- See Also:
SLING_FILTER_SCOPE, Constant Field Values
-
FILTER_SCOPE_ERROR
public static final java.lang.String FILTER_SCOPE_ERROR
Filter scope value identifying an error level filter.Error level filters are called before calling the
ErrorHandlerdue to either aHttpServletResponse.sendErrorcall or due to an uncaughtThrowable. The order of calling the filters is defined by theservice.ranking(orFILTER_ORDER) property and the service registration ID.- Since:
- 2.1, Sling Engine 2.2
- See Also:
FILTER_SCOPE, Constant Field Values
-
FILTER_SCOPE_INCLUDE
public static final java.lang.String FILTER_SCOPE_INCLUDE
Filter scope value identifying an include level filter.Include level filters are called before the script handling an included resource is called. A resource is considered included if it rendered as a result of calling
RequestDispatcher.include. This may also be induced by any JSP tags causing theRequestDispatcher.includemethod being called, e.g.<sling:include>. The order of calling the filters is defined by theservice.ranking(orFILTER_ORDER) property and the service registration ID.- Since:
- 2.1, Sling Engine 2.2
- See Also:
FILTER_SCOPE, Constant Field Values
-
FILTER_SCOPE_FORWARD
public static final java.lang.String FILTER_SCOPE_FORWARD
Filter scope value identifying a forward level filter.Forward level filters are called before the script handling a forwarded resource is called. A resource is considered forwarded if it rendered as a result of calling
RequestDispatcher.forward. This may also be induced by any JSP tags causing theRequestDispatcher.forwardmethod being called, e.g.<sling:forward>. The order of calling the filters is defined by theservice.ranking(orFILTER_ORDER) property and the service registration ID.- Since:
- 2.1, Sling Engine 2.2
- See Also:
FILTER_SCOPE, Constant Field Values
-
FILTER_SCOPE_REQUEST
public static final java.lang.String FILTER_SCOPE_REQUEST
Filter scope value identifying a request level filter.Request level filters are called once at the beginning of each request. The order of calling the filters is defined by the
service.ranking(orFILTER_ORDER) property and the service registration ID.- Since:
- 2.1, Sling Engine 2.2
- See Also:
FILTER_SCOPE, Constant Field Values
-
FILTER_ORDER
@Deprecated public static final java.lang.String FILTER_ORDER
Deprecated.Use"service.ranking"(org.osgi.framework.Constants.SERVICE_RANKING) insteadThe name of the service registration property previously used to place an order amongst filters. Starting with the Sling Engine 2.2, filters should be registered with a standardservice.rankingservice property to implement filter ordering.If a service is registered with both a
service.rankingand afilter.orderproperty, theservice.rankingproperty is used for ordering. If only afilter.orderproperty is used it is currently still used.- Since:
- 2.1, Sling Engine 2.2
- See Also:
- Constant Field Values
-
-