com.ibm.as400.util.commtrace

Class IPPacket

  • java.lang.Object
    • com.ibm.as400.util.commtrace.IPPacket
  • Direct Known Subclasses:
    ARPPacket, IP4Packet, IP6Packet, UnknownPacket


    public abstract class IPPacket
    extends java.lang.Object
    Abstract packet class.
    Contains this packet's rawdata and type.
    Allows for easy access to this packet.
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static int ARP
      Address Resolution Protocol
      static int IP4
      Internet Protocol Version Four
      static int IP6
      Internet Protocol Version Six
      static int RARP
      Reverse Address Resolution Protocol
      static int UNK
      Unknown IPPacket
    • Constructor Summary

      Constructors 
      Constructor and Description
      IPPacket()
      Default constructor.
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      Header getHeader()
      Returns the header of this packet.
      java.lang.String getName()
      The name of this packet
      int getType()
      Returns the type of this packet.
      void setType(int type)
      Sets the type of this packet.
      java.lang.String toString(FormatProperties filter)
      Returns a printable representation of this packet.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • IPPacket

        public IPPacket()
        Default constructor. Creates a simple packet.
    • Method Detail

      • toString

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

        public Header getHeader()
        Returns the header of this packet.
        Returns:
        Header the header of this packet.
      • getName

        public java.lang.String getName()
        The name of this packet
        Returns:
        The name
      • getType

        public int getType()
        Returns the type of this packet.
        Returns:
        The type of this packet.
      • setType

        public void setType(int type)
        Sets the type of this packet.
        Parameters:
        type - the type of this packet.