com.foxsmart.csu.config.global
Class AccessListMatchInfo

java.lang.Object
  extended by com.foxsmart.csu.config.CiscoRouterConfigParser
      extended by com.foxsmart.csu.config.global.AccessListMatchInfo
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
AccessListMatchInfoAny, AccessListMatchInfoHost, AccessListMatchInfoNetwork

public abstract class AccessListMatchInfo
extends CiscoRouterConfigParser
implements java.io.Serializable

The AccessListMatchInfo class represents the access list match information that is used by the router to determine whether certain network traffic matches a set of criteria.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.foxsmart.csu.config.CiscoRouterConfigParser
log, NO, tokenIndex
 
Constructor Summary
AccessListMatchInfo()
          Constructs an access list match info object.
 
Method Summary
 java.lang.String generateIos()
          Generates the IOS string associated with this part of the router configuration.
 AccessListPortMatchInfo getPortInfo()
          Gets the port information.
 void setPortInfo(AccessListPortMatchInfo portInfo)
          Sets the port information.
 void validate()
          See comments in CiscoRouterConfigComponent.
 
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AccessListMatchInfo

public AccessListMatchInfo()
Constructs an access list match info object.

Method Detail

setPortInfo

public void setPortInfo(AccessListPortMatchInfo portInfo)
Sets the port information. Note that port information is only used with ExtIpAccessListEntry objects and when the IP Protocol is set to TCP or UDP.

Parameters:
portInfo - The port information.

getPortInfo

public AccessListPortMatchInfo getPortInfo()
Gets the port information.

Returns:
the port information.

validate

public void validate()
              throws InvalidConfigurationException
See comments in CiscoRouterConfigComponent.

Throws:
InvalidConfigurationException - if the configuration is invalid.

generateIos

public java.lang.String generateIos()
                             throws InvalidConfigurationException
Generates the IOS string associated with this part of the router configuration.

Returns:
the generated IOS.
Throws:
InvalidConfigurationException - if the configuration is invalid.


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