|
||||||||||
| 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.line.AutocommandOptionsComponent
public class AutocommandOptionsComponent
The autocommand options class represents a line's autocommand options.
| Field Summary | |
|---|---|
static java.lang.String |
ABORT_CHARACTER
|
static java.lang.String |
AUTOCOMMAND_OPTIONS
|
static java.lang.String |
DELAY
|
static java.lang.Integer |
MAX_DECIMAL_EQUIVALENT_VALUE
The maximum decimal equivalent value. |
static int |
MAX_DELAY_SECS
The maximum delay in seconds. |
static java.lang.Integer |
MIN_DECIMAL_EQUIVALENT_VALUE
The minimum decimal equivalent value. |
static int |
MIN_DELAY_SECS
The minimum delay in seconds. |
static java.lang.String |
NOHANGUP
|
| 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 | |
|---|---|
AutocommandOptionsComponent()
Constructs an auto command options object. |
|
| 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. |
java.lang.String |
getAbortCharacter()
Gets the abort character. |
java.lang.Integer |
getDelay()
Gets the delay in seconds. |
boolean |
getNoHangup()
Gets the no hangup flag. |
void |
setAbortCharacter(java.lang.String abortCharacter)
Sets the abort character. |
void |
setDelay(java.lang.Integer delay)
Sets the delay in seconds before the autocommand is run. |
void |
setNoHangup(boolean noHangup)
Sets the no hangup flag. |
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 AUTOCOMMAND_OPTIONS
public static final java.lang.String ABORT_CHARACTER
public static final java.lang.String DELAY
public static final java.lang.String NOHANGUP
public static final java.lang.Integer MIN_DECIMAL_EQUIVALENT_VALUE
public static final java.lang.Integer MAX_DECIMAL_EQUIVALENT_VALUE
public static final int MIN_DELAY_SECS
public static final int MAX_DELAY_SECS
| Constructor Detail |
|---|
public AutocommandOptionsComponent()
| Method Detail |
|---|
public void setAbortCharacter(java.lang.String abortCharacter)
abortCharacter - The abort character.public java.lang.String getAbortCharacter()
public void setDelay(java.lang.Integer delay)
delay - The delay in seconds.public java.lang.Integer getDelay()
public void setNoHangup(boolean noHangup)
noHangup - The no hangup flag.public boolean getNoHangup()
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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||