com.ibm.as400.util.commtrace
Class PrefixInfo

java.lang.Object
  |
  +--com.ibm.as400.util.commtrace.Header
        |
        +--com.ibm.as400.util.commtrace.ICMP6Header
              |
              +--com.ibm.as400.util.commtrace.NDOption
                    |
                    +--com.ibm.as400.util.commtrace.PrefixInfo

public class PrefixInfo
extends NDOption

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


Field Summary
 
Fields inherited from class com.ibm.as400.util.commtrace.NDOption
MTU, PREFIXINFO, REDIRECTED, SOURCELLA, TARGETLLA
 
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 getAFlag()
          Returns the autonomous address-configuration flag of this PrefixInfo header.
 java.lang.String getLFlag()
          Returns the on-link flag of this PrefixInfo header.
 java.lang.String getPreferredLifeTime()
          Returns the preferred life time of this PrefixInfo header.
 java.lang.String getPrefix()
          Returns the prefix of this PrefixInfo header.
 java.lang.String getPrefixLength()
          Returns the prefix length of this PrefixInfo header.
 java.lang.String getValidLifeTime()
          Returns the valid life time of this PrefixInfo header.
 java.lang.String toString(FormatProperties filter)
          Returns a printable representation of this header.
 
Methods inherited from class com.ibm.as400.util.commtrace.NDOption
getHeaderLen, getLength, getNDType, getNextHeader
 
Methods inherited from class com.ibm.as400.util.commtrace.ICMP6Header
getChecksum, getCode, getTypeField
 
Methods inherited from class com.ibm.as400.util.commtrace.Header
getHeaderData, getName, 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

toString

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

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

getPrefixLength

public java.lang.String getPrefixLength()
Returns the prefix length of this PrefixInfo header.

Returns:
String containing a decimal representation of the prefix length.

getLFlag

public java.lang.String getLFlag()
Returns the on-link flag of this PrefixInfo header.

Returns:
String containing a Byte.toString(byte) representation of this flag bit.

getAFlag

public java.lang.String getAFlag()
Returns the autonomous address-configuration flag of this PrefixInfo header.

Returns:
String containing a Byte.toString(byte) representation of this flag bit.

getValidLifeTime

public java.lang.String getValidLifeTime()
Returns the valid life time of this PrefixInfo header.

Returns:
String containing a decimal representation of the valid life time.

getPreferredLifeTime

public java.lang.String getPreferredLifeTime()
Returns the preferred life time of this PrefixInfo header.

Returns:
String containing a decimal representation of the preferred life time.

getPrefix

public java.lang.String getPrefix()
Returns the prefix of this PrefixInfo header.

Returns:
String containing a decimal representation of the prefix.