|
||||||||||
| 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.AutoselectComponent
public class AutoselectComponent
The auto select class configures the line to automatically startup a specific protocol.
| Field Summary | |
|---|---|
static java.lang.String |
ARAP
|
static java.lang.String |
AUTOSELECT
|
static java.lang.String |
DURING_LOGIN
|
static int |
MAX_TIMEOUT_SECS
The maximum timeout in seconds. |
static int |
MIN_TIMEOUT_SECS
The minimum timeout in seconds. |
static java.lang.String |
PPP
|
static java.lang.String |
SLIP
|
static java.lang.String |
TIMEOUT
|
| 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 | |
|---|---|
AutoselectComponent()
Constructs an autoselect 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 |
generateDeleteIos(CiscoRouterConfig updatedCiscoRouterConfig)
Generates the IOS configuration commands to delete this component. |
Commands |
generateIos()
Returns the IOS configuration commands for this component. |
boolean |
getArapFlag()
Gets the ARAP autoselection flag. |
boolean |
getDuringLoginFlag()
Gets the "during login" flag. |
boolean |
getPppFlag()
Gets the PPP autoselection flag. |
boolean |
getSlipFlag()
Gets the SLIP autoselection flag. |
java.lang.Integer |
getTimeout()
Gets the wait timeout for initial autoselect byte. |
void |
setArapFlag(boolean arapFlag)
Sets the ARAP (AppleTalk Remote Access) autoselection flag. |
void |
setDuringLoginFlag(boolean duringLoginFlag)
Sets the "during login" flag. |
void |
setPppFlag(boolean pppFlag)
Sets the PPP (Point-to-Point Protocol) autoselection flag. |
void |
setSlipFlag(boolean slipFlag)
Sets the SLIP (Serial Line Internet Protocol) autoselection flag. |
void |
setTimeout(java.lang.Integer timeout)
Sets the wait timeout for initial autoselect byte. |
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 int MIN_TIMEOUT_SECS
public static final int MAX_TIMEOUT_SECS
public static final java.lang.String AUTOSELECT
public static final java.lang.String ARAP
public static final java.lang.String DURING_LOGIN
public static final java.lang.String PPP
public static final java.lang.String SLIP
public static final java.lang.String TIMEOUT
| Constructor Detail |
|---|
public AutoselectComponent()
| Method Detail |
|---|
public void setArapFlag(boolean arapFlag)
arapFlag - The ARAP autoselection flag.public boolean getArapFlag()
public void setPppFlag(boolean pppFlag)
pppFlag - The PPP autoselection flag.public boolean getPppFlag()
public void setSlipFlag(boolean slipFlag)
slipFlag - The SLIP autoselection flag.public boolean getSlipFlag()
public void setDuringLoginFlag(boolean duringLoginFlag)
duringLoginFlag - The "during login" flag.public boolean getDuringLoginFlag()
public void setTimeout(java.lang.Integer timeout)
timeout - The wait timeout for initial autoselect byte.public java.lang.Integer getTimeout()
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
public Commands generateDeleteIos(CiscoRouterConfig updatedCiscoRouterConfig)
throws InvalidConfigurationException
CiscoRouterConfigComponent
generateDeleteIos in interface MultiLineComponentgenerateDeleteIos in class CiscoRouterConfigComponentupdatedCiscoRouterConfig - the updated Cisco router configuration.
InvalidConfigurationException - 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.MultiLineComponent
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||