@ComponentPropertyType
public @interface SlingServletPaths
ServletResolverConstants
)
to register the annotated servlet component as Sling servlet for a specific path.
Preferably register Sling servlets by resource type (SlingServletResourceTypes
) though
for reasons outlined at
Caveats when binding servlets by path.ServletResolverConstants
,
Felix SCR annotationpublic abstract String[] value
SlingServletPrefix
annotation.
This annotation or SlingServletResourceTypes
should be used to properly register the servlet in Sling.
If both are set the servlet is registered using both ways.
A servlet using this property might be ignored unless its path is included
in the Execution Paths servletresolver.paths
configuration setting of the
org.apache.sling.servlets.resolver.internal.SlingServletResolver
service.
ServletResolverConstants.SLING_SERVLET_PATHS
Copyright © 2007–2018 The Apache Software Foundation. All rights reserved.