com.ibm.as400.util.commtrace

Class Header

  • java.lang.Object
    • com.ibm.as400.util.commtrace.Header
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static int EXTAH
      An Extended AH Header
      static int EXTDEST
      An Extended Destination Header
      static int EXTESP
      An Extended ESP Header
      static int EXTFRAG
      An Extended Fragment Header
      static int EXTHOPBYHOP
      An Extended Hop By Hop Header
      static int EXTROUTE
      An Extended Routing Header
      static int ICMP4
      An ICMPv4 Header
      static int ICMP6
      An ICMPv6 Header
      static int IP4
      An IPv4 Header
      static int IP6
      An IPv6 Header
      static int TCP
      A TCP Header
      static int UDP
      An UDP Header
      static int UNK
      An Unknown Header
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      byte[] getHeaderData()
      Returns the data of this header.
      int getHeaderLen()
      Returns the length of this header.
      java.lang.String getName()
      The name of this header.
      Header getNextHeader()
      Returns the next header in this packet.
      java.lang.String getPayload()
      Returns this header's payload as an ascii and hexadecimal string.
      byte[] getPayLoad()
      Returns this header's raw payload.
      byte[] getPayloadBytes()
      Returns this header's payload as a byte array.
      java.lang.String getPayloadHexString()
      Returns this header's payload as a hexadecimal string.
      int getType()
      Returns this header's type.
      java.lang.String printHexHeader()
      Returns a description of the header along with this header as a hexadecimal string.
      java.lang.String toHexString()
      Returns this header as a hexadecimal string.
      java.lang.String toString()
      Returns a printable representation of this header.
      java.lang.String toString(FormatProperties filter)
      Returns a printable representation of this header.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Method Detail

      • getHeaderData

        public byte[] getHeaderData()
        Returns the data of this header.
        Returns:
        byte[] containing the raw data.
      • getHeaderLen

        public int getHeaderLen()
        Returns the length of this header.
        Returns:
        Will always return 0.
      • getName

        public java.lang.String getName()
        The name of this header.
        Returns:
        The Name
      • getNextHeader

        public Header getNextHeader()
        Returns the next header in this packet.
        Returns:
        Will always return null.
      • printHexHeader

        public java.lang.String printHexHeader()
        Returns a description of the header along with this header as a hexadecimal string.
        Returns:
        String containing this header as a hexadecimal string.
      • getPayLoad

        public byte[] getPayLoad()
        Returns this header's raw payload.
        Returns:
        byte[] containing this header's raw payload.
      • toString

        public java.lang.String toString()
        Returns a printable representation of this header.
        Without any specific formatting for the particular type of Header.
        Overrides:
        toString in class java.lang.Object
        Returns:
        String this header.
      • toString

        public java.lang.String toString(FormatProperties filter)
        Returns a printable representation of this header.
        Parameters:
        filter - FormatProperties object for filtering this header.
        Returns:
        Returns a string representation of this header.
      • toHexString

        public java.lang.String toHexString()
        Returns this header as a hexadecimal string.
        Returns:
        A hexadecimal representation of this header.
      • getPayloadHexString

        public java.lang.String getPayloadHexString()
        Returns this header's payload as a hexadecimal string.
        Returns:
        String a hexadecimal representation of this header's payload.
      • getPayloadBytes

        public byte[] getPayloadBytes()
        Returns this header's payload as a byte array.
        Returns:
        byte[] containing this header's raw payload.
      • getPayload

        public java.lang.String getPayload()
        Returns this header's payload as an ascii and hexadecimal string.
        Returns:
        An ascii and hexadecimal representation of this header's payload.
      • getType

        public int getType()
        Returns this header's type.
        Returns:
        This header's type.