public class RequestTypeChecker extends AbstractChecker<RequestType>
<commands>
section. If no such section is present, then all commands are allowed, otherwise only
the given type is allowed by this checker.
Allowed types are the names as defined in RequestType.
<commands> <command>read</command> <command>list</command> </commands>
| Constructor and Description |
|---|
RequestTypeChecker(Document pDoc)
Checker for requests types
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
check(RequestType pType)
Return true if either no
<commands> section was in the policy or
the given type was mentioned as allowed command |
assertNodeNamepublic RequestTypeChecker(Document pDoc)
pDoc - document to examine for declared restrictionspublic boolean check(RequestType pType)
<commands> section was in the policy or
the given type was mentioned as allowed commandcheck in class AbstractChecker<RequestType>pType - the type to checkCopyright © 2017. All rights reserved.