com.ibm.as400.util.commtrace

Class Header

    • 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 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 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 String toString()
        Returns a printable representation of this header.
        Without any specific formatting for the particular type of Header.
        Overrides:
        toString in class Object
        Returns:
        String this header.
      • toString

        public 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 String toHexString()
        Returns this header as a hexadecimal string.
        Returns:
        A hexadecimal representation of this header.
      • getPayloadHexString

        public 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 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.