|
Cisco Systems, Inc. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.pcube.apps.engage.policy.RangeIdentifier
public class RangeIdentifier
RangeIdentifier defines IP and port ranges for the ignoreFilterRule. The IgnoreFilterRule has a RangeIdentifier for the flows source and for the flows destination, which define the ranges which the IgnoreFilterRule should apply to.
| Constructor Summary | |
|---|---|
RangeIdentifier()
RangeIdentifier Constructor. |
|
RangeIdentifier(IPListItem ipFrom,
IPListItem ipTo,
PortListItem portFrom,
PortListItem portTo,
boolean inverseIps,
boolean inversePorts)
RangeIdentifier Constructor. |
|
RangeIdentifier(long ipFrom,
byte ipFromMask,
long ipTo,
byte ipToMask,
long portFrom,
int portFromTransport,
long portTo,
int portToTransport,
boolean inverseIps,
boolean inversePorts)
RangeIdentifier Constructor. |
|
RangeIdentifier(RangeIdentifier other)
RangeIdentifier Copy Constructor. |
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
Producing an identical object to this object. |
void |
fromStream(java.io.BufferedReader in,
Formatter f)
Method fromStream |
IPListItem |
getIpFrom()
Gets this RangeIdentifier's ip range's lower bound IPListItem. |
IPListItem |
getIpTo()
Gets this RangeIdentifier's ip range's upper bound IPListItem. |
PortListItem |
getPortFrom()
Gets this RangeIdentifier's port range's lower bound port. |
PortListItem |
getPortTo()
Gets this RangeIdentifier's port range's upper bound port. |
boolean |
isInverseIPs()
Checks if the ips to refer to are the ones in the range or the ones out of the range. |
boolean |
isInversePorts()
Checks if the ports to refer to are the ones in the range or the ones out of the range. |
boolean |
isIPRange()
Checks if this RangeIdentifier defines an ip range or just a single ip address. |
boolean |
isPortRange()
Checks if this RangeIdentifier defines a port range or just a single port. |
void |
setInverseIPs(boolean newInverseIPs)
Sets the flag which states if the ips to refer to are the ip range or its inverse values, that is,the ips which are not in the range. |
void |
setInversePorts(boolean newInversePorts)
Sets the flag which states if the ports to refer to are the port range or its inverse values, that is,the ports which are not in the range. |
void |
setIpFrom(IPListItem newIpFrom)
Sets this RangeIdentifier's ip range's lower bound IPListItem. |
void |
setIpFromIpAddress(long newIp)
Sets this RangeIdentifier's ip range's lower bound ip. |
void |
setIpFromMask(byte newMask)
Sets this RangeIdentifier's ip range's lower bound ip's mask. |
void |
setIpTo(IPListItem newIpTo)
Sets this RangeIdentifier's ip range's upper bound IPListItem. |
void |
setIpToIpAddress(long newIp)
Sets this RangeIdentifier's ip range's upper bound ip. |
void |
setIpToMask(byte newMask)
Sets this RangeIdentifier's ip range's upper bound ip's mask. |
void |
setPortFrom(PortListItem newPortFrom)
Sets this RangeIdentifier's port range's lower bound PortListItem. |
void |
setPortFromPortNumber(long newPort)
Sets this RangeIdentifier's port range's lower bound port. |
void |
setPortFromTransportType(int transport)
Sets this RangeIdentifier's port range's lower bound port's transport type. |
void |
setPortTo(PortListItem newPortTo)
Sets this RangeIdentifier's port range's upper bound PortListItem. |
void |
setPortToPortNumber(long newPort)
Sets this RangeIdentifier's port range's upper bound port. |
void |
setPortToTransportType(int transport)
Sets this RangeIdentifier's port range's upper bound port's transport type. |
void |
toStream(java.io.PrintStream out,
Formatter f)
Method toStream |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RangeIdentifier()
public RangeIdentifier(IPListItem ipFrom,
IPListItem ipTo,
PortListItem portFrom,
PortListItem portTo,
boolean inverseIps,
boolean inversePorts)
ipFrom - the ip range's lower bound IPListItemipTo - the ip range's upper bound IPListItemportFrom - the port range's lower bound PortListItemportTo - the port range's lower bound PortListIteminverseIps - a flag stating that the inverse of the ip range is to be
consideredinversePorts - a flag stating that the inverse of the port range is to be
considered
public RangeIdentifier(long ipFrom,
byte ipFromMask,
long ipTo,
byte ipToMask,
long portFrom,
int portFromTransport,
long portTo,
int portToTransport,
boolean inverseIps,
boolean inversePorts)
ipFrom - this RangeIdentifier's ip range's lower bound ipipFromMask - the mask to this RangeIdentifier's ip range lower boundipTo - this RangeIdentifier's ip range's upper bound ipipToMask - the mask to this RangeIdentifier's ip range upper boundportFrom - this RangeIdentifier's port range's lower bound portportFromTransport - the transport type to this RangeIdentifier's port range lower
boundportTo - this RangeIdentifier's port range's upper bound portportToTransport - the transport type to this RangeIdentifier's port range upper
boundinverseIps - a flag stating that the inverse of the ip range is to be
consideredinversePorts - a flag stating that the inverse of the port range is to be
consideredPortListItem.TRANSPORT_TYPE_TCP,
PortListItem.TRANSPORT_TYPE_UDP,
PortListItem.TRANSPORT_TYPE_BOTHpublic RangeIdentifier(RangeIdentifier other)
other - the other RangeIdentifier that this RangeIdentifier takes the
values from| Method Detail |
|---|
public java.lang.Object clone()
clone in class java.lang.Object
public void fromStream(java.io.BufferedReader in,
Formatter f)
throws ImportExportException
Formattable
fromStream in interface FormattableImportExportExceptionFormattable.fromStream(java.io.BufferedReader,
com.pcube.apps.engage.common.Formatter)public IPListItem getIpFrom()
public IPListItem getIpTo()
public PortListItem getPortFrom()
public PortListItem getPortTo()
public boolean isInverseIPs()
public boolean isInversePorts()
public boolean isIPRange()
public boolean isPortRange()
public void setInverseIPs(boolean newInverseIPs)
newInverseIPs - false for selecting the ip range, true for selecting the out
of range ipspublic void setInversePorts(boolean newInversePorts)
newInversePorts - false for selecting the port range, true for selecting the out
of range portspublic void setIpFrom(IPListItem newIpFrom)
newIpFrom - the new ip range lower bound IPListItem
public void setIpFromIpAddress(long newIp)
throws DuplicateItemException
newIp - the new ip value
DuplicateItemException
java.lang.IllegalArgumentException - if the new ip is inconsistent with the IPListItem's mask
public void setIpFromMask(byte newMask)
throws DuplicateItemException
newMask - the new ip's mask
DuplicateItemException
java.lang.IllegalArgumentException - if the new mask is inconsistent with the IPListItem's ippublic void setIpTo(IPListItem newIpTo)
newIpTo - the new ip range lower bound IPListItem
public void setIpToIpAddress(long newIp)
throws DuplicateItemException
newIp - the new ip value
DuplicateItemException
java.lang.IllegalArgumentException - if the new ip is inconsistent with the IPListItem's mask
public void setIpToMask(byte newMask)
throws DuplicateItemException
newMask - the new ip's mask
DuplicateItemException
java.lang.IllegalArgumentException - if the new mask is inconsistent with the IPListItem's ippublic void setPortFrom(PortListItem newPortFrom)
newPortFrom - the new port range lower bound PortListItempublic void setPortFromPortNumber(long newPort)
newPort - the new port valuepublic void setPortFromTransportType(int transport)
transport - the new port's transport typePortListItem.TRANSPORT_TYPE_TCP,
PortListItem.TRANSPORT_TYPE_UDP,
PortListItem.TRANSPORT_TYPE_BOTHpublic void setPortTo(PortListItem newPortTo)
newPortTo - the new port range upper bound PortListItempublic void setPortToPortNumber(long newPort)
newPort - the new port valuepublic void setPortToTransportType(int transport)
transport - the new port's transport typePortListItem.TRANSPORT_TYPE_TCP,
PortListItem.TRANSPORT_TYPE_UDP,
PortListItem.TRANSPORT_TYPE_BOTH
public void toStream(java.io.PrintStream out,
Formatter f)
Formattable
toStream in interface FormattableFormattable.toStream(java.io.PrintStream,
com.pcube.apps.engage.common.Formatter)
|
Cisco Systems, Inc. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||