|
||||||||||
| 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.TransportComponent
public class TransportComponent
The Transport class defines transport protocols for the line.
| Field Summary | |
|---|---|
static java.lang.String |
ALL
|
static java.lang.String |
INPUT
|
static java.lang.String |
NONE
|
static java.lang.String |
OUTPUT
|
static java.lang.String |
PAD
|
static java.lang.String |
PREFERRED
|
static java.lang.String |
RLOGIN
|
static java.lang.String |
SSH
|
static java.lang.String |
TELNET
|
static java.lang.String |
TRANSPORT
|
static java.lang.String |
UDPTN
|
| 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 | |
|---|---|
TransportComponent()
Constructs a scheduler object. |
|
| Method Summary | |
|---|---|
void |
addInputProtocol(java.lang.String protocol)
Adds an input transport protocol. |
void |
addOutputProtocol(java.lang.String protocol)
Adds an output transport protocol. |
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. |
boolean |
containsInputProtocol(java.lang.String protocol)
Determines if an input protocol is specified. |
boolean |
containsOutputProtocol(java.lang.String protocol)
Determines if an output protocol is specified. |
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.String |
getPreferredProtocol()
Gets the preferred protocol. |
void |
removeAllInputProtocols()
Removes all input protocols. |
void |
removeAllOutputProtocols()
Removes all output protocols. |
void |
removeInputProtocol(java.lang.String protocol)
Removes an input transport protocol. |
void |
removeOutputProtocol(java.lang.String protocol)
Removes an output transport protocol. |
void |
setPreferredProtocol(java.lang.String protocol)
Sets the preferred protocol. |
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 TRANSPORT
public static final java.lang.String ALL
public static final java.lang.String INPUT
public static final java.lang.String NONE
public static final java.lang.String OUTPUT
public static final java.lang.String PAD
public static final java.lang.String PREFERRED
public static final java.lang.String RLOGIN
public static final java.lang.String TELNET
public static final java.lang.String UDPTN
public static final java.lang.String SSH
| Constructor Detail |
|---|
public TransportComponent()
| Method Detail |
|---|
public void addInputProtocol(java.lang.String protocol)
protocol - The protocol to add.public void addOutputProtocol(java.lang.String protocol)
protocol - The protocol to add.public void removeInputProtocol(java.lang.String protocol)
protocol - The protocol to remove.public void removeAllInputProtocols()
public void removeAllOutputProtocols()
public void removeOutputProtocol(java.lang.String protocol)
protocol - The protocol to remove.public boolean containsInputProtocol(java.lang.String protocol)
protocol - The protocol to check.
public boolean containsOutputProtocol(java.lang.String protocol)
protocol - The protocol to check.
public void setPreferredProtocol(java.lang.String protocol)
protocol - The preferred protocol.public java.lang.String getPreferredProtocol()
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 | |||||||||