|
||||||||||
| 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.ModemComponent
public class ModemComponent
The Modem class configures the modem control lines.
| Field Summary | |
|---|---|
static java.lang.String |
ANSWER_TIMEOUT
|
static java.lang.String |
BUSYOUT
|
static java.lang.String |
CTS_ALARM
|
static java.lang.String |
DIALIN
|
static java.lang.String |
DTR_ACTIVE
|
static java.lang.String |
DTR_DELAY
|
static java.lang.String |
HOST
|
static java.lang.String |
INOUT
|
static java.lang.String |
MODEM
|
static java.lang.String |
PRINTER
|
| 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 | |
|---|---|
ModemComponent()
Constructs a modem 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. |
java.lang.Integer |
getAnswerTimeout()
Gets the answer timout in seconds. |
boolean |
getBusyOutFlag()
Gets the the busy out flag. |
java.lang.String |
getDeviceConfig()
Gets the main device configuration. |
java.lang.Integer |
getDtrDelay()
Gets the DTR delay in seconds. |
ModemAutoConfigure |
getModemAutoConfigure()
Gets the the modem autoconfigure information. |
void |
setAnswerTimeout(java.lang.Integer answerTimeout)
Sets the answer timout in seconds. |
void |
setBusyOutFlag(boolean busyOutFlag)
Sets the the busy out flag. |
void |
setDeviceConfig(java.lang.String deviceConfig)
Sets the main device configuration. |
void |
setDtrDelay(java.lang.Integer dtrDelay)
Sets the DTR delay in seconds. |
void |
setModemAutoConfigure(ModemAutoConfigure modemAutoConfigure)
Sets the the modem autoconfigure 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 MODEM
public static final java.lang.String CTS_ALARM
public static final java.lang.String DTR_ACTIVE
public static final java.lang.String DIALIN
public static final java.lang.String HOST
public static final java.lang.String INOUT
public static final java.lang.String PRINTER
public static final java.lang.String ANSWER_TIMEOUT
public static final java.lang.String BUSYOUT
public static final java.lang.String DTR_DELAY
| Constructor Detail |
|---|
public ModemComponent()
| Method Detail |
|---|
public void setDeviceConfig(java.lang.String deviceConfig)
deviceConfig - The main device configuration.public java.lang.String getDeviceConfig()
public void setAnswerTimeout(java.lang.Integer answerTimeout)
answerTimeout - The answer timout in seconds.public java.lang.Integer getAnswerTimeout()
public void setDtrDelay(java.lang.Integer dtrDelay)
dtrDelay - The DTR delay in seconds.public java.lang.Integer getDtrDelay()
public void setBusyOutFlag(boolean busyOutFlag)
busyOutFlag - The the busy out flag.public boolean getBusyOutFlag()
public void setModemAutoConfigure(ModemAutoConfigure modemAutoConfigure)
modemAutoConfigure - The the modem autoconfigure information.public ModemAutoConfigure getModemAutoConfigure()
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 | |||||||||