org.gudy.azureus2.pluginsimpl.remote.ipfilter
Class RPIPRange
java.lang.Object
org.gudy.azureus2.pluginsimpl.remote.RPObject
org.gudy.azureus2.pluginsimpl.remote.ipfilter.RPIPRange
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable, IPRange
public class RPIPRange
- extends RPObject
- implements IPRange
- See Also:
- Serialized Form
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 |
delegate
protected transient IPRange delegate
description
public java.lang.String description
start_ip
public java.lang.String start_ip
end_ip
public java.lang.String end_ip
RPIPRange
protected RPIPRange(IPRange _delegate)
create
public static RPIPRange create(IPRange _delegate)
_setDelegate
protected void _setDelegate(java.lang.Object _delegate)
- Overrides:
_setDelegate
in class RPObject
_setLocal
public java.lang.Object _setLocal()
throws RPException
- Overrides:
_setLocal
in class RPObject
- Throws:
RPException
_process
public RPReply _process(RPRequest request)
- Overrides:
_process
in class RPObject
getDescription
public java.lang.String getDescription()
- Specified by:
getDescription
in interface IPRange
setDescription
public void setDescription(java.lang.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 java.lang.String getStartIP()
- Specified by:
getStartIP
in interface IPRange
setStartIP
public void setStartIP(java.lang.String str)
- Specified by:
setStartIP
in interface IPRange
getEndIP
public java.lang.String getEndIP()
- Specified by:
getEndIP
in interface IPRange
setEndIP
public void setEndIP(java.lang.String str)
- Specified by:
setEndIP
in interface IPRange
setSessionOnly
public void setSessionOnly(boolean sessionOnly)
- Specified by:
setSessionOnly
in interface IPRange
isInRange
public boolean isInRange(java.lang.String ipAddress)
- Specified by:
isInRange
in interface IPRange
delete
public void delete()
- Specified by:
delete
in interface IPRange
compareTo
public int compareTo(java.lang.Object other)
- Specified by:
compareTo
in interface java.lang.Comparable