|
SNMP Stack 5_1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--uk.co.westhawk.snmp.stack.AsnObject
This class represents the ASN.1 base class. SMIv1 RFC1155-SMI. SMIv2 SNMPv2-SMI.
<ASN Object> = <type> <length> <ASN Object> or <ASN Object> = <type> <length> <value>
Field Summary | |
protected int |
contentsLength
The length of the actual contents. |
static int |
debug
Indicates the level of debug printed. |
protected int |
headerLength
The length of the header. |
protected boolean |
isCorrect
Flag to signal the object is of a correct type. |
protected int |
startPos
The starting position of the AsnObject in the SNMP sequence. |
protected byte |
type
The type of object. |
Constructor Summary | |
AsnObject()
|
Method Summary | |
byte |
getRespType()
Returns the type of this Asn object, such as ASN_INTEGER or IPADDRESS. |
java.lang.String |
getRespTypeString()
Returns the object type as string, such as "ASN_INTEGER" or "IPADDRESS". |
static void |
setDebug(int newDebug)
Sets the new, global level of debug information for the stack package. |
abstract java.lang.String |
toString()
Returns a string representation of the object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static int debug
setDebug(int)
protected byte type
protected int startPos
protected int headerLength
protected int contentsLength
protected boolean isCorrect
Constructor Detail |
public AsnObject()
Method Detail |
public abstract java.lang.String toString()
toString
in class java.lang.Object
public static void setDebug(int newDebug)
The following messages will appear when debug is > (greater than):
0
- IOExceptions that won't be thrown to the user1
- DecodingExceptions that won't be thrown to the user (received message with wrong SNMP version)2
- DecodingExceptions when trying to decode traps3
- processIncomingResponse errors: (corresponding Pdu cannot be found)4
- Discovery of EngineId, Timeline5
- Receiving traps, version/host do not correspond6
- Pdu messages, sending etc10
- Asn decoding of incoming messages12
- Transmitter messages, Socket messages15
- Not so important IOExceptions, like InterruptedIOException
newDebug
- the new debug valuepublic byte getRespType()
getRespTypeString()
,
SnmpConstants
public java.lang.String getRespTypeString()
getRespType()
,
SnmpConstants
|
SNMP Stack 5_1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |