|
||||||||||
| 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.interfacepkg.EncapsulationComponent
public class EncapsulationComponent
The EncapsulationComponent class represents an interface's encapsulation information.
| Field Summary | |
|---|---|
static java.lang.String |
ATM_DXI
|
static java.lang.String |
AX25
|
static java.lang.String |
BFE
|
static java.lang.String |
DCE
|
static java.lang.String |
DDN
|
static java.lang.String |
DTE
|
static java.lang.String |
ENCAPSULATION
|
static java.lang.String |
FRAME_RELAY
|
static java.lang.String |
HDLC
|
static java.lang.String |
IETF
|
static java.lang.String |
IP
|
static java.lang.String |
LAPB
|
static java.lang.String |
MULTI
|
static java.lang.String |
PPP
|
static java.lang.String |
PROFILE
|
static java.lang.String |
SLIP
|
static java.lang.String |
SMDS
|
static java.lang.String |
SNAPSHOT
|
static java.lang.String |
X25
|
| 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 | |
|---|---|
EncapsulationComponent()
Constructs an encapsulation 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. |
protected boolean |
deleteOldConfigWhenUpdating()
Override default method to always return false. |
Commands |
generateIos()
Only output the encapsulation statement if the encapsulation options are no HDLC. |
protected Commands |
generateUpdateIos()
Generates the IOS commands that will handle the updating of this component. |
EncapsulationOptions |
getEncapsulationOptions()
Gets the encapsulation options. |
void |
setEncapsulationOptions(EncapsulationOptions encapsulationOptions)
Sets the encapsulation options. |
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 ENCAPSULATION
public static final java.lang.String ATM_DXI
public static final java.lang.String FRAME_RELAY
public static final java.lang.String HDLC
public static final java.lang.String LAPB
public static final java.lang.String PPP
public static final java.lang.String SMDS
public static final java.lang.String X25
public static final java.lang.String SLIP
public static final java.lang.String IETF
public static final java.lang.String DCE
public static final java.lang.String DTE
public static final java.lang.String IP
public static final java.lang.String MULTI
public static final java.lang.String SNAPSHOT
public static final java.lang.String PROFILE
public static final java.lang.String AX25
public static final java.lang.String BFE
public static final java.lang.String DDN
| Constructor Detail |
|---|
public EncapsulationComponent()
| Method Detail |
|---|
public EncapsulationOptions getEncapsulationOptions()
public void setEncapsulationOptions(EncapsulationOptions encapsulationOptions)
encapsulationOptions - the encapsulation options.
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
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
protected Commands generateUpdateIos()
throws InvalidConfigurationException
CiscoRouterConfigComponent
generateUpdateIos in class CiscoRouterConfigComponentInvalidConfigurationException - if this component can't be updated.CiscoRouterConfigComponentprotected boolean deleteOldConfigWhenUpdating()
deleteOldConfigWhenUpdating in class CiscoRouterConfigComponent
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||