com.foxsmart.csu.config.global
Class AccessListUdpPortMatchInfo

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

public class AccessListUdpPortMatchInfo
extends AccessListPortMatchInfo

This class represents the port match information for the UDP protocol.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.foxsmart.csu.config.global.AccessListPortMatchInfo
PORT_OPERATION_EQUAL, PORT_OPERATION_GREATER_THAN, PORT_OPERATION_LESS_THAN, PORT_OPERATION_NOT_EQUAL, PORT_OPERATION_RANGE
 
Fields inherited from class com.foxsmart.csu.config.CiscoRouterConfigParser
log, NO, tokenIndex
 
Constructor Summary
AccessListUdpPortMatchInfo()
           
 
Method Summary
 java.lang.String generateIos()
          Generates the IOS string associated with this part of the router configuration.
 UdpPortEnum getPort1()
          Gets the UDP port 1.
 UdpPortEnum getPort2()
          Gets the UDP port 2.
 void setPort1(UdpPortEnum port1)
          Sets the UDP port 1.
 void setPort2(UdpPortEnum port2)
          Sets the UDP port 2.
 void validate()
           
 
Methods inherited from class com.foxsmart.csu.config.global.AccessListPortMatchInfo
getPortOperation, setPortOperation
 
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

AccessListUdpPortMatchInfo

public AccessListUdpPortMatchInfo()
Method Detail

setPort1

public void setPort1(UdpPortEnum port1)
Sets the UDP port 1.

Parameters:
port1 - The UDP port 1.

getPort1

public UdpPortEnum getPort1()
Gets the UDP port 1.

Returns:
the UDP port 1.

setPort2

public void setPort2(UdpPortEnum port2)
Sets the UDP port 2. Note that this port is only applicable when the port operation is PORT_OPERATION_RANGE.

Parameters:
port2 - The UDP port 2.

getPort2

public UdpPortEnum getPort2()
Gets the UDP port 2.

Returns:
the UDP port 2.

validate

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

generateIos

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

Specified by:
generateIos in class AccessListPortMatchInfo
Returns:
the generated IOS.
Throws:
InvalidConfigurationException - if the configuration is invalid.


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