|
SNMP Stack 4_12 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | 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 RFC 1155. SMIv2 RFC 2578.
<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
|
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 response type. |
java.lang.String |
getRespTypeString()
Returns the response type as string. |
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
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
- ProcessIncomingMessage 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 InterruptedIOExceptionnewDebug
- the new debug valuepublic byte getRespType()
getRespTypeString()
public java.lang.String getRespTypeString()
getRespType()
|
SNMP Stack 4_12 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |