uk.org.iscream.cms.util
Class ACL.ACLRule

java.lang.Object
  extended byuk.org.iscream.cms.util.ACL.ACLRule
All Implemented Interfaces:
Serializable
Enclosing class:
ACL

private class ACL.ACLRule
extends Object
implements Serializable

Wrapper class for an ACL rule.


Field Summary
private  boolean _allow
          Whether this is an ALLOW or DENY rule.
private  String _expression
          What this rule matches.
private  short[] _ipaddr
          The IP wildcard, only valid if this is an IP rule.
private  boolean _iprule
          Whether this is an IP rule.
 
Constructor Summary
private ACL.ACLRule(boolean allow, String expression, short[] ipaddr, boolean iprule)
          Construct an ACL rule.
 
Method Summary
 String toString()
          Returns a String representation of this rule.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_allow

private boolean _allow
Whether this is an ALLOW or DENY rule.


_expression

private String _expression
What this rule matches.


_ipaddr

private short[] _ipaddr
The IP wildcard, only valid if this is an IP rule.


_iprule

private boolean _iprule
Whether this is an IP rule.

Constructor Detail

ACL.ACLRule

private ACL.ACLRule(boolean allow,
                    String expression,
                    short[] ipaddr,
                    boolean iprule)
Construct an ACL rule.

Parameters:
allow - whether this is an ALLOW or DENY rule
expression - what this rule matches
ipaddr - the IP address wildcard this rule matches if it's an IP rule
iprule - whether this is an IP rule
Method Detail

toString

public String toString()
Returns a String representation of this rule.

Returns:
A String representation of this rule.


Copyright © 2000-2003 i-scream. All Rights Reserved.