com.foxsmart.csu.config.global
Class AccessListTcpFlagInfo

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

public class AccessListTcpFlagInfo
extends CiscoRouterConfigParser
implements java.io.Serializable

This class represents the various TCP flags that can be set on Extended IP Access Lists configured with a TCP port.

See Also:
Serialized Form

Field Summary
static java.lang.String ACK
           
static java.lang.String ESTABLISHED
           
static java.lang.String FIN
           
static java.lang.String PSH
           
static java.lang.String RST
           
static java.lang.String SYN
           
static java.lang.String URG
           
 
Fields inherited from class com.foxsmart.csu.config.CiscoRouterConfigParser
log, NO, tokenIndex
 
Constructor Summary
AccessListTcpFlagInfo()
           
 
Method Summary
 java.lang.String generateIos()
          Generates the IOS string associated with this part of the router configuration.
 boolean getAckFlag()
          Gets the Ack flag.
 boolean getEstablishedFlag()
          Gets the established connections flag.
 boolean getFinFlag()
          Gets the Fin flag.
 boolean getPshFlag()
          Gets the Psh flag.
 boolean getRstFlag()
          Gets the Rst flag.
 boolean getSynFlag()
          Gets the Syn flag.
 boolean getUrgFlag()
          Gets the Urg flag.
 void setAckFlag(boolean ackFlag)
          Sets the Ack flag.
 void setEstablishedFlag(boolean establishedFlag)
          Sets the established connections flag.
 void setFinFlag(boolean finFlag)
          Sets the Fin flag.
 void setPshFlag(boolean pshFlag)
          Sets the Psh flag.
 void setRstFlag(boolean rstFlag)
          Sets the Rst flag.
 void setSynFlag(boolean synFlag)
          Sets the Syn flag.
 void setUrgFlag(boolean urgFlag)
          Sets the Urg flag.
 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
 

Field Detail

ACK

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

ESTABLISHED

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

FIN

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

PSH

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

RST

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

SYN

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

URG

public static final java.lang.String URG
See Also:
Constant Field Values
Constructor Detail

AccessListTcpFlagInfo

public AccessListTcpFlagInfo()
Method Detail

setAckFlag

public void setAckFlag(boolean ackFlag)
Sets the Ack flag.

Parameters:
ackFlag - The Ack flag.

getAckFlag

public boolean getAckFlag()
Gets the Ack flag.

Returns:
the Ack flag.

setEstablishedFlag

public void setEstablishedFlag(boolean establishedFlag)
Sets the established connections flag. This is the same as setting the Ack and Rst flags.

Parameters:
establishedFlag - The established connections flag.

getEstablishedFlag

public boolean getEstablishedFlag()
Gets the established connections flag.

Returns:
the established connections flag.

setFinFlag

public void setFinFlag(boolean finFlag)
Sets the Fin flag.

Parameters:
finFlag - The Fin flag.

getFinFlag

public boolean getFinFlag()
Gets the Fin flag.

Returns:
the Fin flag.

setPshFlag

public void setPshFlag(boolean pshFlag)
Sets the Psh flag.

Parameters:
pshFlag - The Psh flag.

getPshFlag

public boolean getPshFlag()
Gets the Psh flag.

Returns:
the Psh flag.

setRstFlag

public void setRstFlag(boolean rstFlag)
Sets the Rst flag.

Parameters:
rstFlag - The Rst flag.

getRstFlag

public boolean getRstFlag()
Gets the Rst flag.

Returns:
the Rst flag.

setSynFlag

public void setSynFlag(boolean synFlag)
Sets the Syn flag.

Parameters:
synFlag - The Syn flag.

getSynFlag

public boolean getSynFlag()
Gets the Syn flag.

Returns:
the Syn flag.

setUrgFlag

public void setUrgFlag(boolean urgFlag)
Sets the Urg flag.

Parameters:
urgFlag - The Urg flag.

getUrgFlag

public boolean getUrgFlag()
Gets the Urg flag.

Returns:
the Urg flag.

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.