Class HttpMethodChecker
java.lang.Object
org.jolokia.server.core.restrictor.policy.AbstractChecker<HttpMethod>
org.jolokia.server.core.restrictor.policy.HttpMethodChecker
Checker, which extracts
http elements from the policy document which in turn
declares the allowed HTTP methods ("get" or "post").
Example for allowing only post calls:
<http>
<method>post</method>
</http>
- Since:
- 02.09.11
- Author:
- roland
-
Constructor Summary
ConstructorsConstructorDescriptionHttpMethodChecker(Document pPolicy) Create a checker which checks for certain HTTP methods -
Method Summary
Modifier and TypeMethodDescriptionbooleancheck(HttpMethod pMethod) Check whether for the given argument access is allowedMethods inherited from class org.jolokia.server.core.restrictor.policy.AbstractChecker
assertNodeName
-
Constructor Details
-
HttpMethodChecker
Create a checker which checks for certain HTTP methods- Parameters:
pPolicy- policy document
-
-
Method Details
-
check
Description copied from class:AbstractCheckerCheck whether for the given argument access is allowed- Specified by:
checkin classAbstractChecker<HttpMethod>- Parameters:
pMethod- argument (specific to each subclass)- Returns:
- true if access is allowed, false otherwise
-