com.ibm.as400.util.commtrace
Class Redirect
- java.lang.Object
-
- com.ibm.as400.util.commtrace.Header
-
- com.ibm.as400.util.commtrace.ICMP6Header
-
- com.ibm.as400.util.commtrace.Message
-
- com.ibm.as400.util.commtrace.Redirect
-
public class Redirect extends Message
A Redirect Header.
Extends Message's methods to parse, print, and allow easy access to the Redirect Header
-
-
Field Summary
-
Method Summary
Methods Modifier and Type Method and Description java.lang.String
getDestination()
Returns the destination address of this Redirect Message.int
getHeaderLen()
Returns the length of this header.Header
getNextHeader()
Returns the next header in the packetjava.lang.String
getTarget()
Returns the target address of this Redirect Message.java.lang.String
toString(FormatProperties filter)
Returns a printable representation of this header.-
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
-
-
-
-
Method Detail
-
getNextHeader
public Header getNextHeader()
Returns the next header in the packet- Overrides:
getNextHeader
in classICMP6Header
- Returns:
- Will always return a NDOption header
-
getHeaderLen
public int getHeaderLen()
Returns the length of this header.- Overrides:
getHeaderLen
in classICMP6Header
- Returns:
- Will always return 288.
-
toString
public java.lang.String toString(FormatProperties filter)
Returns a printable representation of this header.
-
getTarget
public java.lang.String getTarget()
Returns the target address of this Redirect Message.- Returns:
- String containing a IPv6 address.
-
getDestination
public java.lang.String getDestination()
Returns the destination address of this Redirect Message.- Returns:
- String containing a IPv6 address.
-
-