|
Cisco Systems Inc. Confidential | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.scms.common.NetworkID
public class NetworkID
This class represents various available types of the NetworkID of the subscriber. Supported types: TYPE_IP - represents single IP address TYPE_VLAN - represents sinigle VLAN
| Field Summary | |
|---|---|
static short[] |
ALL_IP_MAPPINGS
|
static short[] |
ALL_VLAN_MAPPINGS
|
static short[] |
ALL_VPN_MAPPINGS
|
static short |
TYPE_IP
|
static java.lang.String[] |
TYPE_LABELS
|
static short |
TYPE_VLAN
|
static short |
TYPE_VPN
|
| Constructor Summary | |
|---|---|
NetworkID(java.lang.String[] _mappings,
short[] mappingTypes)
Constructor |
|
NetworkID(java.lang.String mapping,
short mappingType)
Constructs NetworkID based on a single mapping |
|
| Method Summary | |
|---|---|
void |
addMapping(java.lang.String mapping,
short type)
Adds a mapping to the subscriber. |
long[] |
getIPs()
retreives IP addresses if exist |
java.lang.String[] |
getMappings()
|
long[] |
getMasks()
|
int[] |
getSigbits()
retreive the significant-bit number or the mask (0-32) for example: 255.255.255.0 will return 24 |
long[] |
getTunneledIPs()
Retreives tunneled IP addresses if exist |
long[] |
getTunneledMasks()
|
int[] |
getTunneledSigbits()
retreive the significant-bit number or the mask (0-32) for example: 255.255.255.0 will return 24 |
short[] |
getTypes()
|
java.lang.String[] |
getVpnNames()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final short TYPE_IP
public static final short TYPE_VLAN
public static final short TYPE_VPN
public static final java.lang.String[] TYPE_LABELS
public static final short[] ALL_IP_MAPPINGS
public static final short[] ALL_VLAN_MAPPINGS
public static final short[] ALL_VPN_MAPPINGS
| Constructor Detail |
|---|
public NetworkID(java.lang.String[] _mappings,
short[] mappingTypes)
throws java.lang.Exception
_mappings - Array of mappings (can include IPs or VLANs)mappingTypes - Array of types - all types should be identical
java.lang.Exception
public NetworkID(java.lang.String mapping,
short mappingType)
throws java.lang.Exception
mapping - - string representation of the mapping (IP or VLAN)mappingType - - mapping type
java.lang.Exception| Method Detail |
|---|
public void addMapping(java.lang.String mapping,
short type)
throws java.lang.Exception
mapping - Mapping to addtype - Mapping type
java.lang.Exceptionpublic final java.lang.String[] getMappings()
public final short[] getTypes()
public long[] getTunneledMasks()
public long[] getMasks()
public long[] getIPs()
public long[] getTunneledIPs()
public int[] getSigbits()
public int[] getTunneledSigbits()
public java.lang.String[] getVpnNames()
|
Cisco Systems Inc. Confidential | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||