Class CorsChecker
java.lang.Object
org.jolokia.server.core.restrictor.policy.AbstractChecker<String>
org.jolokia.server.core.restrictor.policy.CorsChecker
Check for location restrictions for CORS based cross browser platform requests
- Since:
- 07.04.12
- Author:
- roland
-
Constructor Summary
ConstructorsConstructorDescriptionCorsChecker(Document pDoc) Constructor buiilding up this checker from the XML document provided. -
Method Summary
Methods inherited from class org.jolokia.server.core.restrictor.policy.AbstractChecker
assertNodeName
-
Constructor Details
-
CorsChecker
Constructor buiilding up this checker from the XML document provided. CORS sections look like<cors> <allow-origin>http://jolokia.org<allow-origin> <allow-origin>*://*.jmx4perl.org> <strict-checking/> </cors>- Parameters:
pDoc- the overall policy documents
-
-
Method Details
-
check
Check whether for the given argument access is allowed- Specified by:
checkin classAbstractChecker<String>- Parameters:
pArg- argument (specific to each subclass)- Returns:
- true if access is allowed, false otherwise
-
check
-