public class CorsChecker extends AbstractChecker<String>
Constructor and Description |
---|
CorsChecker(Document pDoc)
Constructor buiilding up this checker from the XML document provided.
|
Modifier and Type | Method and Description |
---|---|
boolean |
check(String pArg)
Check whether for the given argument access is allowed
|
boolean |
check(String pOrigin,
boolean pOnlyWhenStrictCheckingIsEnabled) |
assertNodeName
public CorsChecker(Document pDoc)
<cors> <allow-origin>http://jolokia.org<allow-origin> <allow-origin>*://*.jmx4perl.org> <strict-checking/> </cors>
pDoc
- the overall policy documentspublic boolean check(String pArg)
check
in class AbstractChecker<String>
pArg
- argument (specific to each subclass)public boolean check(String pOrigin, boolean pOnlyWhenStrictCheckingIsEnabled)
Copyright © 2021. All rights reserved.