com.caucho.server.snmp.types
Class SnmpValue

java.lang.Object
  extended by com.caucho.server.snmp.types.SnmpValue
Direct Known Subclasses:
IntegerValue, NullValue, ObjectIdentifierValue, OctetStringValue, PduValue, SequenceValue, SnmpMessageValue, UnsignedIntegerValue

public abstract class SnmpValue
extends java.lang.Object


Field Summary
static int COUNTER
           
static int EOC
           
static int GAUGE
           
static int GET_NEXT_REQUEST_PDU
           
static int GET_REQUEST_PDU
           
static int GET_RESPONSE_PDU
           
static int INTEGER
           
static int IP_ADDRESS
           
static int NULL
           
static int OBJECT_IDENTIFIER
           
static int OCTET_STRING
           
static int OPAQUE
           
static int SEQUENCE
           
static int SET_REQUEST_PDU
           
static int TIME_TICKS
           
static int TRAP_PDU
           
 
Constructor Summary
SnmpValue()
           
 
Method Summary
static SnmpValue create(java.lang.Object obj)
           
static SnmpValue create(java.lang.Object obj, int type)
           
static SnmpValue create(java.lang.Object obj, java.lang.String typeStr)
           
 long getLong()
           
 java.lang.String getString()
           
abstract  int getType()
           
protected  void header(java.lang.StringBuilder sb, int len)
           
 java.lang.String toAsn1()
           
abstract  void toAsn1(java.lang.StringBuilder sb)
           
static java.lang.String typeName(int identifier)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EOC

public static final int EOC
See Also:
Constant Field Values

INTEGER

public static final int INTEGER
See Also:
Constant Field Values

OCTET_STRING

public static final int OCTET_STRING
See Also:
Constant Field Values

NULL

public static final int NULL
See Also:
Constant Field Values

OBJECT_IDENTIFIER

public static final int OBJECT_IDENTIFIER
See Also:
Constant Field Values

SEQUENCE

public static final int SEQUENCE
See Also:
Constant Field Values

IP_ADDRESS

public static final int IP_ADDRESS
See Also:
Constant Field Values

COUNTER

public static final int COUNTER
See Also:
Constant Field Values

GAUGE

public static final int GAUGE
See Also:
Constant Field Values

TIME_TICKS

public static final int TIME_TICKS
See Also:
Constant Field Values

OPAQUE

public static final int OPAQUE
See Also:
Constant Field Values

GET_REQUEST_PDU

public static final int GET_REQUEST_PDU
See Also:
Constant Field Values

GET_NEXT_REQUEST_PDU

public static final int GET_NEXT_REQUEST_PDU
See Also:
Constant Field Values

GET_RESPONSE_PDU

public static final int GET_RESPONSE_PDU
See Also:
Constant Field Values

SET_REQUEST_PDU

public static final int SET_REQUEST_PDU
See Also:
Constant Field Values

TRAP_PDU

public static final int TRAP_PDU
See Also:
Constant Field Values
Constructor Detail

SnmpValue

public SnmpValue()
Method Detail

toAsn1

public abstract void toAsn1(java.lang.StringBuilder sb)

getType

public abstract int getType()

create

public static SnmpValue create(java.lang.Object obj)

create

public static SnmpValue create(java.lang.Object obj,
                               java.lang.String typeStr)

create

public static SnmpValue create(java.lang.Object obj,
                               int type)

toAsn1

public final java.lang.String toAsn1()

header

protected final void header(java.lang.StringBuilder sb,
                            int len)

getLong

public long getLong()

getString

public java.lang.String getString()

typeName

public static java.lang.String typeName(int identifier)