|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.sun.jaw.snmp.common.SnmpPduPacket
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.
SnmpMessage,
SnmpPduFactoryIf, Serialized Form| Field Summary | |
java.net.InetAddress |
address
Source or destination address. |
byte[] |
community
Community name. |
int |
port
Source or destination port. |
int |
requestId
Request identifier. |
int |
type
PDU type. |
SnmpVarBind[] |
varBindList
List of variables. |
int |
version
Protocol version. |
| Constructor Summary | |
SnmpPduPacket()
|
|
| Method Summary | |
static java.lang.String |
pduTypeToString(int cmd)
Returns the string representation of a pdu type. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Field Detail |
public int type
public int version
public byte[] community
public SnmpVarBind[] varBindList
public int requestId
SnmpPduTrap.public java.net.InetAddress address
For an incoming PDU it's the source.
For an outgoing PDU it's the destination.
public int port
For an incoming PDU it's the source.
For an outgoing PDU it's the destination.
| Constructor Detail |
public SnmpPduPacket()
| Method Detail |
public static java.lang.String pduTypeToString(int cmd)
SnmpDefinitions.pduGetRequestPdu,
the method will return "SnmpGet".cmd - The int representation of the pdu type.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||