All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.sun.jaw.snmp.common.SnmpPduPacket

java.lang.Object
   |
   +----com.sun.jaw.snmp.common.SnmpPduPacket

public abstract class SnmpPduPacket
extends Object
implements SnmpDefinitions, Serializable
An SnmpPduPacket object is the fully decoded representation of an SNMP packet.

You normally don't need to use this class except if you decide to implement your own SnmpPduFactoryIf object.

Classes are derived from SnmpPduPacket to represent the different forms of SNMP packets ( SnmpPduRequest, SnmpPduTrap, SnmpPduBulk). The SnmpPduPacket class defines the attributes common to every form of SNMP packets.

See Also:
SnmpPduMessage, SnmpPduFactoryIf

Variable Index

 o address
Source or destination address.
 o community
Community name.
 o port
Source or destination port.
 o requestId
Request identifier.
 o type
PDU type.
 o varBindList
List of variables.
 o version
Protocol version.

Constructor Index

 o SnmpPduPacket()

Method Index

 o pduTypeToString(int)
Returns the string representation of a pdu type.

Variables

 o type
 public int type
PDU type. Types are defined in SnmpDefinitions.

 o version
 public int version
Protocol version. Versions are defined in SnmpDefinitions.

 o community
 public byte community[]
Community name.

 o varBindList
 public SnmpVarBind varBindList[]
List of variables.

 o requestId
 public int requestId
Request identifier. Note that this field is not used by SnmpPduTrap.

 o address
 public InetAddress address
Source or destination address. For an incoming PDU it's the source. For an outgoing PDU it's the destination.

 o port
 public int port
Source or destination port. For an incoming PDU it's the source. For an outgoing PDU it's the destination.

Constructors

 o SnmpPduPacket
 public SnmpPduPacket()

Methods

 o pduTypeToString
 public static String pduTypeToString(int cmd)
Returns the string representation of a pdu type. For instance, if the pdu type is SnmpDefinitions.pduGetRequestPdu, the method will return "SnmpGet".


All Packages  Class Hierarchy  This Package  Previous  Next  Index