|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.foxsmart.csu.config.CiscoRouterConfigParser
com.foxsmart.csu.config.global.AccessListEntry
public abstract class AccessListEntry
The AccessListEntry class represents a single access list entry on the router.
| Field Summary | |
|---|---|
static java.lang.String |
ANY
|
static java.lang.String |
DENY
|
static java.lang.String |
FILTER_TYPE_DENY
Deny filter type. |
static java.lang.String |
FILTER_TYPE_PERMIT
Permit filter type. |
static java.lang.String |
HOST
|
static java.lang.String |
LOG
|
static java.lang.String |
LOG_INPUT
|
static java.lang.String |
PERMIT
|
| Fields inherited from class com.foxsmart.csu.config.CiscoRouterConfigParser |
|---|
log, NO, tokenIndex |
| Constructor Summary | |
|---|---|
AccessListEntry()
Constructs an access list entry object. |
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
Clones this access list entry. |
java.lang.String |
getFilterType()
Gets the filter type. |
protected boolean |
isAccessNumberSupported(int accessListNumber,
java.util.List ranges)
Determines whether an access list number is supported by specified ranges. |
void |
setFilterType(java.lang.String filterType)
Sets the filter type. |
protected void |
validateAccessListName(java.lang.String name)
Validates the access list name. |
protected void |
validateAccessListNumber(java.lang.Integer accessListNumber,
java.util.List ranges)
Validates the access list number. |
void |
validateFilterType()
Validates the filter type. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String PERMIT
public static final java.lang.String DENY
public static final java.lang.String ANY
public static final java.lang.String HOST
public static final java.lang.String LOG
public static final java.lang.String LOG_INPUT
public static final java.lang.String FILTER_TYPE_PERMIT
public static final java.lang.String FILTER_TYPE_DENY
| Constructor Detail |
|---|
public AccessListEntry()
| Method Detail |
|---|
public void setFilterType(java.lang.String filterType)
filterType - The filter type.public java.lang.String getFilterType()
protected boolean isAccessNumberSupported(int accessListNumber,
java.util.List ranges)
accessListNumber - The access list number to checkranges - A list of Tuple. Each tuple should contain an access list number range to check.
protected void validateAccessListNumber(java.lang.Integer accessListNumber,
java.util.List ranges)
throws InvalidConfigurationException
accessListNumber - The access list number to checkranges - A list of Tuple. Each tuple should contain an access list number range to check.
InvalidConfigurationException - if the access list number is not set or invalid.
protected void validateAccessListName(java.lang.String name)
throws InvalidConfigurationException
name - The access list name.
InvalidConfigurationException - if the access list name is not set.
public void validateFilterType()
throws InvalidConfigurationException
InvalidConfigurationException - if the filter type is not set of invalid.public java.lang.Object clone()
clone in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||