com.sun.jaw.snmp.common
Class SnmpPduTrap

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

public class SnmpPduTrap
extends SnmpPduPacket

The SnmpPduTrap class represents an SNMPv1-trap PDU.

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

The SnmpPduTrap extends SnmpPduPacket and defines attributes specific to an SNMPv1 trap (see RFC1157).

See Also:
Serialized Form

Field Summary
 SnmpIpAddress agentAddr
          Agent address.
 SnmpOid enterprise
          Enterprise object identifier.
 int genericTrap
          Generic trap number.
 int specificTrap
          Specific trap number.
 long timeStamp
          Time-stamp.
 
Fields inherited from class com.sun.jaw.snmp.common.SnmpPduPacket
address, community, port, requestId, type, varBindList, version
 
Constructor Summary
SnmpPduTrap()
          Builds a new trap pdu.
 
Methods inherited from class com.sun.jaw.snmp.common.SnmpPduPacket
pduTypeToString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

enterprise

public SnmpOid enterprise
Enterprise object identifier.

agentAddr

public SnmpIpAddress agentAddr
Agent address.

genericTrap

public int genericTrap
Generic trap number.
The possible values are defined in SnmpDefinitions.

specificTrap

public int specificTrap
Specific trap number.

timeStamp

public long timeStamp
Time-stamp.
Constructor Detail

SnmpPduTrap

public SnmpPduTrap()
Builds a new trap pdu. type and version fields are initialized with pduTrapPdu and snmpVersionOne.