com.ibm.as400.util.commtrace
Class TCPHeader

java.lang.Object
  extended by com.ibm.as400.util.commtrace.Header
      extended by com.ibm.as400.util.commtrace.TCPHeader

public class TCPHeader
extends Header

A TCP Header.
Extends Header's methods to parse, print, and allow easy access to the TCP Header.


Field Summary
Modifier and Type Field and Description
 
Fields inherited from class com.ibm.as400.util.commtrace.Header
EXTAH, EXTDEST, EXTESP, EXTFRAG, EXTHOPBYHOP, EXTROUTE, ICMP4, ICMP6, IP4, IP6, TCP, UDP, UNK
 
Method Summary
Modifier and Type Method and Description
 String getACKFlag()
          Returns the ack Flag for this TCP header.
 String getAckNum()
          Returns the ack number for this TCP header.
 String getCheckSum()
          Returns the checksum for this TCP header.
 String getCWRFlag()
          Returns the cwr Flag for this TCP header.
 String getDataOffset()
          Returns the data offset for this TCP header.
 String getDstPort()
          Returns the destination port for this TCP header.
 String getECEFlag()
          Returns the ece Flag for this TCP header.
 String getFINFlag()
          Returns the fin Flag for this TCP header.
 int getHeaderLen()
          Returns the length of this header.
 String getMaximumSegmentSize()
          Returns the Maximum Segment Size option for this TCP header.
 String getOption()
          Returns the first 8 bits of the options for this TCP header.
 String getOptions()
          Returns the options for this TCP header.
 String getPSHFlag()
          Returns the psh Flag for this TCP header.
 String getRSTFlag()
          Returns the rst Flag for this TCP header.
 String getSegmentSize()
          Returns the Segment Size option for this TCP header.
 String getSequence()
          Returns the sequence for this TCP header.
 String getSrcPort()
          Returns the source port for this TCP header.
 String getSYNFlag()
          Returns the syn Flag for this TCP header.
 String getUrgentPointer()
          Returns the urgent pointer for this TCP header.
 String getURGFlag()
          Returns the urg Flag for this TCP header.
 String getWindow()
          Returns the window for this TCP header.
 String toString(FormatProperties filter)
          Returns a printable representation of this header.
 
Methods inherited from class com.ibm.as400.util.commtrace.Header
getHeaderData, getName, getNextHeader, getPayload, getPayLoad, getPayloadBytes, getPayloadHexString, getType, printHexHeader, toHexString, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getHeaderLen

public int getHeaderLen()
Returns the length of this header.

Overrides:
getHeaderLen in class Header
Returns:
The length of this header.

toString

public String toString(FormatProperties filter)
Returns a printable representation of this header.

Overrides:
toString in class Header
Parameters:
filter - FormatProperties object for filtering this header.
Returns:
Returns a string representation of this header.

getSrcPort

public String getSrcPort()
Returns the source port for this TCP header.

Returns:
String containing a decimal representation of the source port.

getDstPort

public String getDstPort()
Returns the destination port for this TCP header.

Returns:
String containing a decimal representation of the destination port.

getSequence

public String getSequence()
Returns the sequence for this TCP header.

Returns:
String containing a decimal representation of the sequence.

getAckNum

public String getAckNum()
Returns the ack number for this TCP header.

Returns:
String containing a decimal representation of the ack number.

getDataOffset

public String getDataOffset()
Returns the data offset for this TCP header.

Returns:
String containing a decimal representation of the data offset.

getCWRFlag

public String getCWRFlag()
Returns the cwr Flag for this TCP header.

Returns:
String if the field is a 1 this string will contain "CWR " otherwise it will be an empty string.

getECEFlag

public String getECEFlag()
Returns the ece Flag for this TCP header.

Returns:
String if the field is a 1 this string will contain "ECE " otherwise it will be an empty string.

getURGFlag

public String getURGFlag()
Returns the urg Flag for this TCP header.

Returns:
String if the field is a 1 this string will contain "URG " otherwise it will be an empty string.

getACKFlag

public String getACKFlag()
Returns the ack Flag for this TCP header.

Returns:
String if the field is a 1 this string will contain "ACK " otherwise it will be an empty string.

getPSHFlag

public String getPSHFlag()
Returns the psh Flag for this TCP header.

Returns:
String if the field is a 1 this string will contain "PSH " otherwise it will be an empty string.

getRSTFlag

public String getRSTFlag()
Returns the rst Flag for this TCP header.

Returns:
String if the field is a 1 this string will contain "RST " otherwise it will be an empty string.

getSYNFlag

public String getSYNFlag()
Returns the syn Flag for this TCP header.

Returns:
String if the field is a 1 this string will contain "SYN " otherwise it will be an empty string.

getFINFlag

public String getFINFlag()
Returns the fin Flag for this TCP header.

Returns:
String if the field is a 1 this string will contain "FIN " otherwise it will be an empty string.

getWindow

public String getWindow()
Returns the window for this TCP header.

Returns:
String containing a decimal representation of the window.

getCheckSum

public String getCheckSum()
Returns the checksum for this TCP header.

Returns:
String containing a decimal representation of the checksum.

getUrgentPointer

public String getUrgentPointer()
Returns the urgent pointer for this TCP header.

Returns:
String containing a decimal representation of the urgent pointer.

getOptions

public String getOptions()
Returns the options for this TCP header.

Returns:
String containing a decimal representation of the options.

getOption

public String getOption()
Returns the first 8 bits of the options for this TCP header.

Returns:
String containing a decimal representation of the options.

getMaximumSegmentSize

public String getMaximumSegmentSize()
Returns the Maximum Segment Size option for this TCP header.

Returns:
String containing a decimal representation of the Maximum Segment Size option.

getSegmentSize

public String getSegmentSize()
Returns the Segment Size option for this TCP header.

Returns:
String containing a decimal representation of the Segment Size option.