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
-
address
- Source or destination address.
-
community
- Community name.
-
port
- Source or destination port.
-
requestId
- Request identifier.
-
type
- PDU type.
-
varBindList
- List of variables.
-
version
- Protocol version.
-
SnmpPduPacket()
-
-
pduTypeToString(int)
- Returns the string representation of a pdu type.
type
public int type
- PDU type. Types are defined in
SnmpDefinitions.
version
public int version
- Protocol version. Versions are defined in
SnmpDefinitions.
community
public byte community[]
- Community name.
varBindList
public SnmpVarBind varBindList[]
- List of variables.
requestId
public int requestId
- Request identifier.
Note that this field is not used by
SnmpPduTrap.
address
public InetAddress address
- Source or destination address.
For an incoming PDU it's the source.
For an outgoing PDU it's the destination.
port
public int port
- Source or destination port.
For an incoming PDU it's the source.
For an outgoing PDU it's the destination.
SnmpPduPacket
public SnmpPduPacket()
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