|
||||||||||
| 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.CiscoRouterConfigComponent
com.foxsmart.csu.config.global.classmap.MatchComponent
public class MatchComponent
The match command specified the match classification criteria.
| Field Summary | |
|---|---|
static java.lang.String |
ACCESS_GROUP
|
static java.lang.String |
ANY
|
static java.lang.String |
CLASS_MAP
|
static java.lang.String |
COS
|
static java.lang.String |
DESTINATION_ADDRESS
|
static java.lang.String |
DSCP
|
static java.lang.String |
EXPERIMENTAL
|
static java.lang.String |
INPUT_INTERFACE
|
static java.lang.String |
IP
|
static java.lang.String |
MAC
|
static java.lang.String |
MATCH
|
static java.lang.String |
MPLS
|
static java.lang.String |
NAME
|
static java.lang.String |
NONE
|
static java.lang.String |
NOT
|
static java.lang.String |
PRECEDENCE
|
static java.lang.String |
PROTOCOL
|
static java.lang.String |
QOS_GROUP
|
static java.lang.String |
RTP
|
static java.lang.String |
SOURCE_ADDRESS
|
| Fields inherited from class com.foxsmart.csu.config.CiscoRouterConfigComponent |
|---|
commentComponent, componentMap, log, parentComponent |
| Fields inherited from class com.foxsmart.csu.config.CiscoRouterConfigParser |
|---|
NO, tokenIndex |
| Constructor Summary | |
|---|---|
MatchComponent()
Constructs a match component. |
|
| Method Summary | |
|---|---|
java.util.List |
buildFromIos(java.util.List configLines)
Parse and populate the specific CiscoRouterComponent object based on the passed in individual lines of the IOS configuration. |
Commands |
generateIos()
Returns the IOS configuration commands for this component. |
protected Commands |
generateUpdateIos()
Generates the update IOS commands. |
MatchInfo |
getMatchInfo()
Gets the match information. |
void |
setMatchInfo(MatchInfo matchInfo)
Sets the match information. |
void |
validate()
Validates this object to ensure it contains a valid IOS configuration. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String MATCH
public static final java.lang.String ACCESS_GROUP
public static final java.lang.String MPLS
public static final java.lang.String EXPERIMENTAL
public static final java.lang.String NAME
public static final java.lang.String PROTOCOL
public static final java.lang.String INPUT_INTERFACE
public static final java.lang.String NONE
public static final java.lang.String ANY
public static final java.lang.String CLASS_MAP
public static final java.lang.String COS
public static final java.lang.String DESTINATION_ADDRESS
public static final java.lang.String MAC
public static final java.lang.String IP
public static final java.lang.String DSCP
public static final java.lang.String PRECEDENCE
public static final java.lang.String RTP
public static final java.lang.String NOT
public static final java.lang.String QOS_GROUP
public static final java.lang.String SOURCE_ADDRESS
| Constructor Detail |
|---|
public MatchComponent()
| Method Detail |
|---|
public void setMatchInfo(MatchInfo matchInfo)
matchInfo - The match information.public MatchInfo getMatchInfo()
public java.util.List buildFromIos(java.util.List configLines)
throws InvalidConfigurationException
CiscoRouterConfigComponent
buildFromIos in class CiscoRouterConfigComponentconfigLines - The list of IOS configuration lines.
InvalidConfigurationException - if the IOS configuration can not be parsed for any reason.CiscoRouterConfigComponent
public void validate()
throws InvalidConfigurationException
CiscoRouterConfigComponent
validate in class CiscoRouterConfigComponentInvalidConfigurationException - if the configuration is invalid.CiscoRouterConfigComponent
public Commands generateIos()
throws InvalidConfigurationException
CiscoRouterConfigComponent
generateIos in class CiscoRouterConfigComponentInvalidConfigurationException - if the IOS configuration is invalid and the IOS string can not be generated.
The validate() method is used to determine if the configuration is valid.CiscoRouterConfigComponent
protected Commands generateUpdateIos()
throws InvalidConfigurationException
generateUpdateIos in class CiscoRouterConfigComponentInvalidConfigurationException - if this component can't be updated.CiscoRouterConfigComponent
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||