com.caucho.server.snmp.types
Class SnmpMessageValue

java.lang.Object
  extended by com.caucho.server.snmp.types.SnmpValue
      extended by com.caucho.server.snmp.types.SnmpMessageValue

public class SnmpMessageValue
extends SnmpValue


Field Summary
 
Fields inherited from class com.caucho.server.snmp.types.SnmpValue
COUNTER, EOC, GAUGE, GET_NEXT_REQUEST_PDU, GET_REQUEST_PDU, GET_RESPONSE_PDU, INTEGER, IP_ADDRESS, NULL, OBJECT_IDENTIFIER, OCTET_STRING, OPAQUE, SEQUENCE, SET_REQUEST_PDU, TIME_TICKS, TRAP_PDU
 
Constructor Summary
SnmpMessageValue(IntegerValue version, OctetStringValue community, PduValue pdu)
           
SnmpMessageValue(int version, java.lang.String community, PduValue pdu)
           
 
Method Summary
 void addVarBind(VarBindValue obj)
           
 void addVarBindList(VarBindListValue list)
           
 OctetStringValue getCommunityString()
           
 IntegerValue getError()
           
 IntegerValue getErrorIndex()
           
 PduValue getPdu()
           
 IntegerValue getRequestId()
           
 int getType()
           
 VarBindListValue getVarBindList()
           
 IntegerValue getVersion()
           
 void setCommunityString(OctetStringValue communityString)
           
 void setCommunityString(java.lang.String communityString)
           
 void setError(int error)
           
 void setError(IntegerValue error)
           
 void setErrorIndex(int errorIndex)
           
 void setErrorIndex(IntegerValue errorIndex)
           
 void setPdu(PduValue pdu)
           
 void setRequestId(int id)
           
 void setRequestId(IntegerValue id)
           
 void setVersion(int version)
           
 void setVersion(IntegerValue version)
           
 void toAsn1(java.lang.StringBuilder sb)
           
 java.lang.String toString()
           
 
Methods inherited from class com.caucho.server.snmp.types.SnmpValue
create, create, create, getLong, getString, header, toAsn1, typeName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SnmpMessageValue

public SnmpMessageValue(int version,
                        java.lang.String community,
                        PduValue pdu)

SnmpMessageValue

public SnmpMessageValue(IntegerValue version,
                        OctetStringValue community,
                        PduValue pdu)
Method Detail

getType

public int getType()
Specified by:
getType in class SnmpValue

toAsn1

public void toAsn1(java.lang.StringBuilder sb)
Specified by:
toAsn1 in class SnmpValue

getVersion

public IntegerValue getVersion()

setVersion

public void setVersion(int version)

setVersion

public void setVersion(IntegerValue version)

getCommunityString

public OctetStringValue getCommunityString()

setCommunityString

public void setCommunityString(java.lang.String communityString)

setCommunityString

public void setCommunityString(OctetStringValue communityString)

getPdu

public PduValue getPdu()

setPdu

public void setPdu(PduValue pdu)

setError

public void setError(int error)

setError

public void setError(IntegerValue error)

getError

public IntegerValue getError()

setErrorIndex

public void setErrorIndex(int errorIndex)

setErrorIndex

public void setErrorIndex(IntegerValue errorIndex)

getErrorIndex

public IntegerValue getErrorIndex()

setRequestId

public void setRequestId(int id)

setRequestId

public void setRequestId(IntegerValue id)

getRequestId

public IntegerValue getRequestId()

addVarBind

public void addVarBind(VarBindValue obj)

addVarBindList

public void addVarBindList(VarBindListValue list)

getVarBindList

public VarBindListValue getVarBindList()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object