Class RequestTypeChecker
java.lang.Object
org.jolokia.server.core.restrictor.policy.AbstractChecker<RequestType>
org.jolokia.server.core.restrictor.policy.RequestTypeChecker
Checks for a certain requst type which are specified within a
<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.
Example:
<commands> <command>read</command> <command>list</command> </commands>
- Since:
- 02.09.11
- Author:
- roland
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancheck(RequestType pType) Return true if either no<commands>section was in the policy or the given type was mentioned as allowed commandMethods inherited from class org.jolokia.server.core.restrictor.policy.AbstractChecker
assertNodeName
-
Constructor Details
-
RequestTypeChecker
Checker for requests types- Parameters:
pDoc- document to examine for declared restrictions
-
-
Method Details
-
check
Return true if either no<commands>section was in the policy or the given type was mentioned as allowed command- Specified by:
checkin classAbstractChecker<RequestType>- Parameters:
pType- the type to check- Returns:
- true if the condition above is true
-