|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Collection of one or more access rules.
Method Summary | |
void |
dispose()
Disposes this access rule. |
Boolean |
isAllowed(String ip,
String functionName,
String conventionName)
Determines if the specified IP address is allowed to access the specified function. |
Method Detail |
public 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.public void dispose()
Once disposed, the isAllowed(java.lang.String, java.lang.String, java.lang.String)
method should no longer be
called.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |