@ComponentPropertyType
public @interface SlingServletFilter
ServletResolverConstants
) to register the annotated servlet filter component as
Sling servlet filter.
service.ranking
. To set it use the annotation ServiceRanking
. Its value is used to sort the filters.
Filters with a higher order are executed before a filter with a lower order. If two filters have the same order,
the one with the lower service id is executed first.
Modifier and Type | Fields and Description |
---|---|
static java.lang.String |
PREFIX_
Prefix for every property being generated from the annotations elements (as defined in OSGi 7 Compendium, 112.8.2.1)
|
Modifier and Type | Optional Element and Description |
---|---|
java.lang.String[] |
extensions
Restrict the filter to extensions that match request's.
|
java.lang.String[] |
methods
Restrict the filter to methods that match request's.
|
java.lang.String |
pattern
Restrict the filter to request paths that match the supplied regular expression.
|
java.lang.String[] |
resourceTypes
Restrict the filter to resources that match any of the supplied resource types.
|
SlingServletFilterScope[] |
scope
The scopes of the filter.
|
java.lang.String[] |
selectors
Restrict the filter to request selectors that match any of the request's.
|
java.lang.String |
suffix_pattern
Restrict the filter to request suffixes that match the supplied regular expression.
|
public static final java.lang.String PREFIX_
public abstract SlingServletFilterScope[] scope
public abstract java.lang.String pattern
public abstract java.lang.String suffix_pattern
public abstract java.lang.String[] resourceTypes
isResourceType()
match, not a string match.
Empty value will not restrict the filter on request's resource type. Requires Sling Engine 2.7.0.public abstract java.lang.String[] methods
public abstract java.lang.String[] extensions
public abstract java.lang.String[] selectors
Copyright © 2018 The Apache Software Foundation. All rights reserved.