|
||||||||||
| 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.TelnetComponent
public class TelnetComponent
The Telnet class represents the telnet protocol-specific configuration.
| Field Summary | |
|---|---|
static java.lang.String |
BREAK_ON_IP
|
static java.lang.String |
IP_ON_BREAK
|
static int |
MAX_DTR_DELAY_SECS
The maximum DTR delay in seconds. |
static int |
MIN_DTR_DELAY_SECS
The minimum DTR delay in seconds. |
static java.lang.String |
REFUSE_NEGOTIATIONS
|
static java.lang.String |
SPEED
|
static java.lang.String |
SYNC_ON_BREAK
|
static java.lang.String |
TELNET
|
static java.lang.String |
TRANSPARENT
|
| 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 | |
|---|---|
TelnetComponent()
Constructs a telnet 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 |
getBreakOnIpFlag()
Gets the break on ip flag. |
boolean |
getIpOnBreakFlag()
Gets the ip on break flag. |
boolean |
getRefuseNegotiationsFlag()
Gets the refuse negotiations flag. |
boolean |
getSyncOnBreakFlag()
Gets the sync on break flag. |
TelnetSpeed |
getTelnetSpeed()
Gets the telnet speed information. |
boolean |
getTransparentFlag()
Gets the transparent flag. |
void |
setBreakOnIpFlag(boolean breakOnIpFlag)
Sets the break on ip flag. |
void |
setIpOnBreakFlag(boolean ipOnBreakFlag)
Sets the ip on break flag. |
void |
setRefuseNegotiationsFlag(boolean refuseNegotiationsFlag)
Sets the refuse negotiations flag. |
void |
setSyncOnBreakFlag(boolean syncOnBreakFlag)
Sets the sync on break flag. |
void |
setTelnetSpeed(TelnetSpeed telnetSpeed)
Sets the telnet speed information. |
void |
setTransparentFlag(boolean transparentFlag)
Sets the transparent 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 int MIN_DTR_DELAY_SECS
public static final int MAX_DTR_DELAY_SECS
public static final java.lang.String TELNET
public static final java.lang.String BREAK_ON_IP
public static final java.lang.String IP_ON_BREAK
public static final java.lang.String REFUSE_NEGOTIATIONS
public static final java.lang.String SYNC_ON_BREAK
public static final java.lang.String TRANSPARENT
public static final java.lang.String SPEED
| Constructor Detail |
|---|
public TelnetComponent()
| Method Detail |
|---|
public void setBreakOnIpFlag(boolean breakOnIpFlag)
breakOnIpFlag - The break on ip flag.public boolean getBreakOnIpFlag()
public void setIpOnBreakFlag(boolean ipOnBreakFlag)
ipOnBreakFlag - The ip on break flag.public boolean getIpOnBreakFlag()
public void setRefuseNegotiationsFlag(boolean refuseNegotiationsFlag)
refuseNegotiationsFlag - The refuse negotiations flag.public boolean getRefuseNegotiationsFlag()
public void setSyncOnBreakFlag(boolean syncOnBreakFlag)
syncOnBreakFlag - The sync on break flag.public boolean getSyncOnBreakFlag()
public void setTransparentFlag(boolean transparentFlag)
transparentFlag - The transparent flag.public boolean getTransparentFlag()
public void setTelnetSpeed(TelnetSpeed telnetSpeed)
telnetSpeed - The telnet speed information.public TelnetSpeed getTelnetSpeed()
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 | |||||||||