com.ibm.as400.util.commtrace
Class TCPHeader

java.lang.Object
  |
  +--com.ibm.as400.util.commtrace.Header
        |
        +--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
 
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
 java.lang.String getACKFlag()
          Returns the ack Flag for this TCP header.
 java.lang.String getAckNum()
          Returns the ack number for this TCP header.
 java.lang.String getCheckSum()
          Returns the checksum for this TCP header.
 java.lang.String getCWRFlag()
          Returns the cwr Flag for this TCP header.
 java.lang.String getDataOffset()
          Returns the data offset for this TCP header.
 java.lang.String getDstPort()
          Returns the destination port for this TCP header.
 java.lang.String getECEFlag()
          Returns the ece Flag for this TCP header.
 java.lang.String getFINFlag()
          Returns the fin Flag for this TCP header.
 int getHeaderLen()
          Returns the length of this header.
 java.lang.String getMaximumSegmentSize()
          Returns the Maximum Segment Size option for this TCP header.
 java.lang.String getOption()
          Returns the first 8 bits of the options for this TCP header.
 java.lang.String getOptions()
          Returns the options for this TCP header.
 java.lang.String getPSHFlag()
          Returns the psh Flag for this TCP header.
 java.lang.String getRSTFlag()
          Returns the rst Flag for this TCP header.
 java.lang.String getSegmentSize()
          Returns the Segment Size option for this TCP header.
 java.lang.String getSequence()
          Returns the sequence for this TCP header.
 java.lang.String getSrcPort()
          Returns the source port for this TCP header.
 java.lang.String getSYNFlag()
          Returns the syn Flag for this TCP header.
 java.lang.String getUrgentPointer()
          Returns the urgent pointer for this TCP header.
 java.lang.String getURGFlag()
          Returns the urg Flag for this TCP header.
 java.lang.String getWindow()
          Returns the window for this TCP header.
 java.lang.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 java.lang.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 java.lang.String getSrcPort()
Returns the source port for this TCP header.

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

getDstPort

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

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

getSequence

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

Returns:
String containing a decimal representation of the sequence.

getAckNum

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

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

getDataOffset

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

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

getCWRFlag

public java.lang.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 java.lang.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 java.lang.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 java.lang.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 java.lang.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 java.lang.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 java.lang.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 java.lang.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 java.lang.String getWindow()
Returns the window for this TCP header.

Returns:
String containing a decimal representation of the window.

getCheckSum

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

Returns:
String containing a decimal representation of the checksum.

getUrgentPointer

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

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

getOptions

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

Returns:
String containing a decimal representation of the options.

getOption

public java.lang.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 java.lang.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 java.lang.String getSegmentSize()
Returns the Segment Size option for this TCP header.

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