Methods Summary |
---|
public void | checkValid()
range.checkValid();
|
public int | compareTo(java.lang.Object other)
if ( !(other instanceof IPRangeImpl )){
throw( new RuntimeException( "other object must be IPRange" ));
}
IPRangeImpl o = (IPRangeImpl)other;
String ip1 = getStartIP();
String ip2 = o.getStartIP();
int res = ip1.compareTo(ip2);
if ( res != 0 ){
return( res );
}
ip1 = getEndIP();
ip2 = o.getEndIP();
if ( ip1 == null && ip2 == null ){
return(0);
}
if ( ip1 == null ){
return( -1 );
}
if ( ip2 == null ){
return( 1 );
}
return( ip1.compareTo(ip2));
|
public void | delete()
filter.removeRange( this );
|
public boolean | equals(java.lang.Object other)
if ( !(other instanceof IPRangeImpl )){
return( false );
}
return( compareTo( other ) == 0 );
|
public java.lang.String | getDescription()
return( range.getDescription());
|
public java.lang.String | getEndIP()
return( range.getEndIp());
|
protected IpRange | getRange()
return( range );
|
public java.lang.String | getStartIP()
return( range.getStartIp());
|
public boolean | isInRange(java.lang.String ipAddress)
return( range.isInRange(ipAddress));
|
public boolean | isSessionOnly()
return( range.isSessionOnly());
|
public boolean | isValid()
return( range.isValid());
|
public void | setDescription(java.lang.String str)
range.setDescription(str);
|
public void | setEndIP(java.lang.String str)
range.setEndIp(str);
|
public void | setSessionOnly(boolean sessionOnly)
range.setSessionOnly(sessionOnly);
|
public void | setStartIP(java.lang.String str)
range.setStartIp(str);
|