public interface AccessRuleContainer
Boolean isAllowed(String ip, String functionName, String conventionName) throws IllegalArgumentException, ParseException
This method finds the first matching rule and then returns the
allow property of that rule (see
AccessRule.isAllowRule()
). If there is no matching rule, then
null
is returned.
ip
- the IP address, cannot be null
.functionName
- the name of the function, cannot be null
.conventionName
- the name of the calling convention, can be null
.Boolean.TRUE
if the specified IP address is allowed to access
the specified function, Boolean.FALSE
if it is disallowed
access or null
if there is no match.IllegalArgumentException
- if ip == null || functionName == null
.ParseException
- if the specified IP address is malformed.void dispose()
Once disposed, the isAllowed(java.lang.String, java.lang.String, java.lang.String)
method should no longer be
called.
See http://www.xins.org/.