org.gudy.azureus2.pluginsimpl.remote.ipfilter
Class RPIPRange

java.lang.Object
  extended by org.gudy.azureus2.pluginsimpl.remote.RPObject
      extended by org.gudy.azureus2.pluginsimpl.remote.ipfilter.RPIPRange
All Implemented Interfaces:
Serializable, Comparable, IPRange

public class RPIPRange
extends RPObject
implements IPRange

See Also:
Serialized Form

Field Summary
protected  IPRange delegate
           
 String description
           
 String end_ip
           
 String start_ip
           
 
Fields inherited from class org.gudy.azureus2.pluginsimpl.remote.RPObject
__delegate, _dispatcher, _object_id, next_key, object_registry, object_registry_reverse
 
Constructor Summary
protected RPIPRange(IPRange _delegate)
           
 
Method Summary
 RPReply _process(RPRequest request)
           
protected  void _setDelegate(Object _delegate)
           
 Object _setLocal()
           
 void checkValid()
          For a range to be usable it has to be valid.
 int compareTo(Object other)
           
static RPIPRange create(IPRange _delegate)
           
 void delete()
           
 String getDescription()
           
 String getEndIP()
           
 String getStartIP()
           
 boolean isInRange(String ipAddress)
           
 boolean isSessionOnly()
           
 boolean isValid()
           
 void setDescription(String str)
           
 void setEndIP(String str)
           
 void setSessionOnly(boolean sessionOnly)
           
 void setStartIP(String str)
           
 
Methods inherited from class org.gudy.azureus2.pluginsimpl.remote.RPObject
_fixupLocal, _getDelegate, _getName, _getOID, _lookupLocal, _lookupLocal, _refresh, _setRemote, getDispatcher, notSupported, notSupported
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

delegate

protected transient IPRange delegate

description

public String description

start_ip

public String start_ip

end_ip

public String end_ip
Constructor Detail

RPIPRange

protected RPIPRange(IPRange _delegate)
Method Detail

create

public static RPIPRange create(IPRange _delegate)

_setDelegate

protected void _setDelegate(Object _delegate)
Overrides:
_setDelegate in class RPObject

_setLocal

public Object _setLocal()
                 throws RPException
Overrides:
_setLocal in class RPObject
Throws:
RPException

_process

public RPReply _process(RPRequest request)
Overrides:
_process in class RPObject

getDescription

public String getDescription()
Specified by:
getDescription in interface IPRange

setDescription

public void setDescription(String str)
Specified by:
setDescription in interface IPRange

checkValid

public void checkValid()
Description copied from interface: IPRange
For a range to be usable it has to be valid. To make it valid you have to call checkValid. Failure to do so will leave newly created ranges as invalid and therefore checks won't be made against it!!!!

Specified by:
checkValid in interface IPRange

isValid

public boolean isValid()
Specified by:
isValid in interface IPRange

isSessionOnly

public boolean isSessionOnly()
Specified by:
isSessionOnly in interface IPRange

getStartIP

public String getStartIP()
Specified by:
getStartIP in interface IPRange

setStartIP

public void setStartIP(String str)
Specified by:
setStartIP in interface IPRange

getEndIP

public String getEndIP()
Specified by:
getEndIP in interface IPRange

setEndIP

public void setEndIP(String str)
Specified by:
setEndIP in interface IPRange

setSessionOnly

public void setSessionOnly(boolean sessionOnly)
Specified by:
setSessionOnly in interface IPRange

isInRange

public boolean isInRange(String ipAddress)
Specified by:
isInRange in interface IPRange

delete

public void delete()
Specified by:
delete in interface IPRange

compareTo

public int compareTo(Object other)
Specified by:
compareTo in interface Comparable