com.foxsmart.csu.config.global
Class AccessListPortMatchInfo

java.lang.Object
  extended by com.foxsmart.csu.config.CiscoRouterConfigParser
      extended by com.foxsmart.csu.config.global.AccessListPortMatchInfo
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
AccessListTcpPortMatchInfo, AccessListUdpPortMatchInfo

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

This class represents the port match information for a particular IP protocol.

See Also:
Serialized Form

Field Summary
static java.lang.String PORT_OPERATION_EQUAL
          Match only packets on a given port number.
static java.lang.String PORT_OPERATION_GREATER_THAN
          Match only packets with a greater port number.
static java.lang.String PORT_OPERATION_LESS_THAN
          Match only packets with a lower port number.
static java.lang.String PORT_OPERATION_NOT_EQUAL
          Match only packets not on a given port number.
static java.lang.String PORT_OPERATION_RANGE
          Match only packets in the range of port numbers.
 
Fields inherited from class com.foxsmart.csu.config.CiscoRouterConfigParser
log, NO, tokenIndex
 
Constructor Summary
AccessListPortMatchInfo()
           
 
Method Summary
abstract  java.lang.String generateIos()
          Generates the IOS string associated with this part of the router configuration.
 java.lang.String getPortOperation()
          Gets the port operation.
 void setPortOperation(java.lang.String portOperation)
          Sets the port operation.
 void validate()
           
 
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
 

Field Detail

PORT_OPERATION_EQUAL

public static final java.lang.String PORT_OPERATION_EQUAL
Match only packets on a given port number.

See Also:
Constant Field Values

PORT_OPERATION_GREATER_THAN

public static final java.lang.String PORT_OPERATION_GREATER_THAN
Match only packets with a greater port number.

See Also:
Constant Field Values

PORT_OPERATION_LESS_THAN

public static final java.lang.String PORT_OPERATION_LESS_THAN
Match only packets with a lower port number.

See Also:
Constant Field Values

PORT_OPERATION_NOT_EQUAL

public static final java.lang.String PORT_OPERATION_NOT_EQUAL
Match only packets not on a given port number.

See Also:
Constant Field Values

PORT_OPERATION_RANGE

public static final java.lang.String PORT_OPERATION_RANGE
Match only packets in the range of port numbers.

See Also:
Constant Field Values
Constructor Detail

AccessListPortMatchInfo

public AccessListPortMatchInfo()
Method Detail

setPortOperation

public void setPortOperation(java.lang.String portOperation)
Sets the port operation.

Parameters:
portOperation - The port operation.

getPortOperation

public java.lang.String getPortOperation()
Gets the port operation.

Returns:
the port operation.

validate

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

generateIos

public abstract 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.