com.foxsmart.csu.config.global
Class ExtIpAccessListEntry

java.lang.Object
  extended by com.foxsmart.csu.config.CiscoRouterConfigParser
      extended by com.foxsmart.csu.config.global.AccessListEntry
          extended by com.foxsmart.csu.config.global.ExtIpAccessListEntry
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ExtIpNameAccessListEntry, ExtIpNumberAccessListEntry

public abstract class ExtIpAccessListEntry
extends AccessListEntry

The ExtIpAccessListEntry contains information used for all extended access lists.

See Also:
Serialized Form

Field Summary
static java.lang.String DSCP
           
static java.lang.String LOG_TYPE_LOG
          Log matches against this entry.
static java.lang.String LOG_TYPE_LOG_INPUT
          Log matches against this entry, including input interface.
static java.lang.String PRECEDENCE
           
static java.lang.String TIME_RANGE
           
static java.lang.String TOS
           
 
Fields inherited from class com.foxsmart.csu.config.global.AccessListEntry
ANY, DENY, FILTER_TYPE_DENY, FILTER_TYPE_PERMIT, HOST, LOG, LOG_INPUT, PERMIT
 
Fields inherited from class com.foxsmart.csu.config.CiscoRouterConfigParser
log, NO, tokenIndex
 
Constructor Summary
ExtIpAccessListEntry()
          Constructs an extended IP access list entry object.
 
Method Summary
protected  void buildFromIos(java.lang.String line, java.util.List tokens)
          This method builds this class from an IOS string.
protected  java.lang.String generateIosString()
           
 AccessListMatchInfo getDestinationMatchInfo()
          Gets the destination access list match information.
 DscpEnum getDscp()
          Gets the DSCP.
 DynamicAccessListInfo getDynamicInfo()
          Gets the dynamic access list information.
 IcmpTypeEnum getIcmpType()
          Gets the ICMP Type information.
 IgmpTypeEnum getIgmpType()
          Gets the IGMP Type Information.
 IpProtocolEnum getIpProtocol()
          Gets the IP Protocol information.
 java.lang.String getLogType()
          Gets the logging type.
 PrecedenceEnum getPrecedence()
          Gets the precedence.
 AccessListMatchInfo getSourceMatchInfo()
          Gets the source access list match information.
 AccessListTcpFlagInfo getTcpFlagInfo()
          Gets the TCP flag information.
 java.lang.String getTimeRangeEntryName()
          Gets the time range entry name.
 TosEnum getTos()
          Gets the type of service (TOS).
 void setDestinationMatchInfo(AccessListMatchInfo destMatchInfo)
          Sets the destination access list match information.
 void setDscp(DscpEnum dscp)
          Sets the DSCP.
 void setDynamicInfo(DynamicAccessListInfo dynamicInfo)
          Sets the dynamic access list information.
 void setIcmpType(IcmpTypeEnum icmpType)
          Sets the ICMP Type information.
 void setIgmpType(IgmpTypeEnum igmpType)
          Sets the IGMP Type Information.
 void setIpProtocol(IpProtocolEnum ipProtocol)
          Sets the IP Protocol information.
 void setLogType(java.lang.String logType)
          Sets the logging type.
 void setPrecedence(PrecedenceEnum precedence)
          Sets the precedence.
 void setSourceMatchInfo(AccessListMatchInfo sourceMatchInfo)
          Sets the source access list match information.
 void setTcpFlagInfo(AccessListTcpFlagInfo tcpFlagInfo)
          Sets the TCP flag information.
 void setTimeRangeEntryName(java.lang.String timeRangeEntryName)
          Sets the time range entry name.
 void setTos(TosEnum tos)
          Sets the type of service (TOS).
protected  void validate()
           
 
Methods inherited from class com.foxsmart.csu.config.global.AccessListEntry
clone, getFilterType, isAccessNumberSupported, setFilterType, validateAccessListName, validateAccessListNumber, validateFilterType
 
Methods inherited from class com.foxsmart.csu.config.CiscoRouterConfigParser
checkExists, checkLineComplete, checkNotEmpty, checkRange, checkTokenCount, checkTokenCount, checkTokenMatch, checkTokenMatch, decrementTokenIndex, generateCommands, getBigDecimalNumberFromString, getDoubleNumberFromString, getEnum, getHexadecimalNumberFromString, getIntegerNumberFromString, getIpAddressFromString, getLine, getLongNumberFromString, getMacAddressFromString, getNextOptionalToken, getNextToken, getToken, getTokenIndex, getTokens, getTotalIndentedLines, getTotalLines, incrementTokenIndex, invalidConfiguration, invalidTokenFound, isEmpty, moreIndentedLines, moreLines, moreTokens, removeLines, resetTokenIndex, setTokenIndex, tokensLeft
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TIME_RANGE

public static final java.lang.String TIME_RANGE
See Also:
Constant Field Values

DSCP

public static final java.lang.String DSCP
See Also:
Constant Field Values

TOS

public static final java.lang.String TOS
See Also:
Constant Field Values

PRECEDENCE

public static final java.lang.String PRECEDENCE
See Also:
Constant Field Values

LOG_TYPE_LOG

public static final java.lang.String LOG_TYPE_LOG
Log matches against this entry.

See Also:
Constant Field Values

LOG_TYPE_LOG_INPUT

public static final java.lang.String LOG_TYPE_LOG_INPUT
Log matches against this entry, including input interface.

See Also:
Constant Field Values
Constructor Detail

ExtIpAccessListEntry

public ExtIpAccessListEntry()
Constructs an extended IP access list entry object.

Method Detail

setSourceMatchInfo

public void setSourceMatchInfo(AccessListMatchInfo sourceMatchInfo)
Sets the source access list match information.

Parameters:
sourceMatchInfo - The source access list match information.

getSourceMatchInfo

public AccessListMatchInfo getSourceMatchInfo()
Gets the source access list match information.

Returns:
the source access list match information.

setDestinationMatchInfo

public void setDestinationMatchInfo(AccessListMatchInfo destMatchInfo)
Sets the destination access list match information.

Parameters:
destMatchInfo - The destination access list match information.

getDestinationMatchInfo

public AccessListMatchInfo getDestinationMatchInfo()
Gets the destination access list match information.

Returns:
the destination access list match information.

setTos

public void setTos(TosEnum tos)
Sets the type of service (TOS). If TOS is set, DSCP can't be set.

Parameters:
tos - The type of service (TOS).

getTos

public TosEnum getTos()
Gets the type of service (TOS).

Returns:
the type of service (TOS).

setDscp

public void setDscp(DscpEnum dscp)
Sets the DSCP. If DSCP is set, TOS and Precedence can't be set.

Parameters:
dscp - The DSCP.

getDscp

public DscpEnum getDscp()
Gets the DSCP.

Returns:
the DSCP.

setPrecedence

public void setPrecedence(PrecedenceEnum precedence)
Sets the precedence. If precedence is set, DSCP can't be set.

Parameters:
precedence - The precedence.

getPrecedence

public PrecedenceEnum getPrecedence()
Gets the precedence.

Returns:
the precedence.

setTimeRangeEntryName

public void setTimeRangeEntryName(java.lang.String timeRangeEntryName)
Sets the time range entry name.

Parameters:
timeRangeEntryName - The time range entry name.

getTimeRangeEntryName

public java.lang.String getTimeRangeEntryName()
Gets the time range entry name.

Returns:
the time range entry name.

setLogType

public void setLogType(java.lang.String logType)
Sets the logging type. Valid values are LOG_TYPE_LOG, LOG_TYPE_LOG_INPUT, or null.

Parameters:
logType - The logging type.

getLogType

public java.lang.String getLogType()
Gets the logging type.

Returns:
the logging type.

setDynamicInfo

public void setDynamicInfo(DynamicAccessListInfo dynamicInfo)
Sets the dynamic access list information.

Parameters:
dynamicInfo - The dynamic access list information.

getDynamicInfo

public DynamicAccessListInfo getDynamicInfo()
Gets the dynamic access list information.

Returns:
the dynamic access list information.

setIpProtocol

public void setIpProtocol(IpProtocolEnum ipProtocol)
Sets the IP Protocol information.

Parameters:
ipProtocol - The IP Protocol information.

getIpProtocol

public IpProtocolEnum getIpProtocol()
Gets the IP Protocol information.

Returns:
the IP Protocol information.

setIcmpType

public void setIcmpType(IcmpTypeEnum icmpType)
Sets the ICMP Type information. Note that this only applies when the IP Protocol is set to ICMP.

Parameters:
icmpType - The ICMP Type information.

getIcmpType

public IcmpTypeEnum getIcmpType()
Gets the ICMP Type information.

Returns:
the ICMP Type information.

setIgmpType

public void setIgmpType(IgmpTypeEnum igmpType)
Sets the IGMP Type Information. Note that this only applied when the IP Protocol is set to IGMP.

Parameters:
igmpType - The IGMP Type Information.

getIgmpType

public IgmpTypeEnum getIgmpType()
Gets the IGMP Type Information.

Returns:
the IGMP Type Information.

setTcpFlagInfo

public void setTcpFlagInfo(AccessListTcpFlagInfo tcpFlagInfo)
Sets the TCP flag information. Note that this only applies when the IP Protocol is set to TCP.

Parameters:
tcpFlagInfo - The TCP flag information.

getTcpFlagInfo

public AccessListTcpFlagInfo getTcpFlagInfo()
Gets the TCP flag information.

Returns:
the TCP flag information.

buildFromIos

protected void buildFromIos(java.lang.String line,
                            java.util.List tokens)
                     throws InvalidConfigurationException
This method builds this class from an IOS string. The passed in token list will be used to do the parsing. It is assumed that the index for parsing the tokens is at the point where any component key words or access list identifiers have already been parsed.

Parameters:
line - The IOS configuration lis
tokens - The list of tokens for this line
Throws:
InvalidConfigurationException - if there was a configuration error

validate

protected void validate()
                 throws InvalidConfigurationException
Throws:
InvalidConfigurationException - if the configuration is invalid.
See Also:
CiscoRouterConfigComponent

generateIosString

protected java.lang.String generateIosString()
                                      throws InvalidConfigurationException
Returns:
the generated IOS.
Throws:
InvalidConfigurationException - always
See Also:
CiscoRouterConfigComponent


Copyright © 2005-2008 Fox Smart, Inc. All Rights Reserved.