com.ibm.as400.util.commtrace
Class IPPacket

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

public abstract class IPPacket
extends Object

Abstract packet class.
Contains this packet's rawdata and type.
Allows for easy access to this packet.


Field Summary
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
IPPacket()
          Default constructor.
 
Method Summary
 Header getHeader()
          Returns the header of this packet.
 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.
 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
 

Field Detail

ARP

public static final int ARP
Address Resolution Protocol

See Also:
Constant Field Values

RARP

public static final int RARP
Reverse Address Resolution Protocol

See Also:
Constant Field Values

IP4

public static final int IP4
Internet Protocol Version Four

See Also:
Constant Field Values

IP6

public static final int IP6
Internet Protocol Version Six

See Also:
Constant Field Values

UNK

public static final int UNK
Unknown IPPacket

See Also:
Constant Field Values
Constructor Detail

IPPacket

public IPPacket()
Default constructor. Creates a simple packet.

Method Detail

toString

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