public interface SaferSlingPostValidator
Modifier and Type | Field and Description |
---|---|
static boolean |
ACCEPT
ACCEPT returned when a request may be accepted.
|
static java.lang.String |
POST_DEPTH_ATTRIBUTE
Attribute set on the request to indicate the depth under the target request which :applyTo should be allowed to
reference.
|
static boolean |
REJECT
REJECT returned when a request should be rejected.
|
Modifier and Type | Method and Description |
---|---|
boolean |
reject(SlingHttpServletRequest request,
java.lang.String... whitelistPatterns)
Reject any unsafe post requests.
|
static final boolean REJECT
static final boolean ACCEPT
static final java.lang.String POST_DEPTH_ATTRIBUTE
boolean reject(SlingHttpServletRequest request, java.lang.String... whitelistPatterns)
request
- the request to checkwhitelistPatterns
- additional whitelist patternsCopyright © 2010 - 2020 Adobe. All Rights Reserved