public class HttpMethodChecker extends AbstractChecker<HttpMethod>
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>
Constructor and Description |
---|
HttpMethodChecker(Document pPolicy)
Create a checker which checks for certain HTTP methods
|
Modifier and Type | Method and Description |
---|---|
boolean |
check(HttpMethod pMethod)
Check whether for the given argument access is allowed
|
assertNodeName
public HttpMethodChecker(Document pPolicy)
pPolicy
- policy documentpublic boolean check(HttpMethod pMethod)
AbstractChecker
check
in class AbstractChecker<HttpMethod>
pMethod
- argument (specific to each subclass)Copyright © 2018. All rights reserved.