|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SnmpMibRequest
This interface models the part of a SNMP request that involves a specific MIB. One object implementing this interface will be created for every MIB involved in a SNMP request, and that object will be passed to the SnmpMibAgent in charge of handling that MIB. Objects implementing this interface will be allocated by the SNMP engine. You will never need to implement this interface. You will only use it.
Method Summary | |
---|---|
void |
addVarBind(SnmpVarBind varbind)
Adds a varbind to this request sublist. |
byte[] |
getAccessContextName()
Gets the incoming request context name used by Access Control Model in order to allow or deny the access to OIDs. |
byte[] |
getContextName()
Gets the incoming request context name. |
Enumeration |
getElements()
Returns the list of varbind to be handled by the SNMP mib node. |
SnmpEngine |
getEngine()
Returns the local engine. |
SnmpPdu |
getPdu()
Returns the SNMP PDU attached to the request. |
String |
getPrincipal()
Gets the incoming request principal. |
int |
getRequestPduVersion()
Returns the SNMP protocol version of the original request. |
int |
getSecurityLevel()
Gets the incoming request security level. |
int |
getSecurityModel()
Gets the incoming request security model. |
int |
getSize()
Returns the number of elements (varbinds) in this request sublist. |
Vector |
getSubList()
Returns the vector of varbind to be handled by the SNMP mib node. |
Object |
getUserData()
Returns a handle on a user allocated contextual object. |
int |
getVarIndex(SnmpVarBind varbind)
Returns the varbind index that should be embedded in an SnmpStatusException for this particular varbind. |
int |
getVersion()
Returns the SNMP protocol version in which this request is expected to be handled by the SnmpMibAgent . |
Method Detail |
---|
Enumeration getElements()
SnmpVarBind
Vector getSubList()
SnmpVarBind
int getVersion()
SnmpMibAgent
.
If the received PDU was an SNMPv1 request, the SNMP
adaptor may require the SnmpMibAgent to process this request as if
it were originally received in SNMPv2. getVersion()
will return
SnmpDefinitions.snmpVersionTwo
even though the original PDU version
is SNMPv1.
See also getRequestPduVersion()
.
int getRequestPduVersion()
See also getVersion()
.
SnmpEngine getEngine()
SnmpV3AdaptorServer
is the adaptor receiving
this request. Otherwise null is returned.
String getPrincipal()
SnmpV3AdaptorServer
is the adaptor receiving
this request. Otherwise null is returned.
null
.int getSecurityLevel()
SnmpEngine
.
This parameter is returned only if SnmpV3AdaptorServer
is the adaptor receiving this request. Otherwise -1 is returned.
-1
.int getSecurityModel()
SnmpV3AdaptorServer
is the adaptor
receiving this request. Otherwise -1 is returned.
-1
.byte[] getContextName()
SnmpV3AdaptorServer
is the adaptor
receiving this request. Otherwise null is returned.
null
.byte[] getAccessContextName()
SnmpV3AdaptorServer
is the adaptor receiving this request. Otherwise null is returned.
null
.Object getUserData()
int getVarIndex(SnmpVarBind varbind)
varbind
- The varbind for which the index value is
queried. Note that this varbind must have
been obtained from the enumeration returned by
getElements()
, or from the vector
returned by getSublist()
.
void addVarBind(SnmpVarBind varbind)
varbind
- The varbind to be added in the sublist.int getSize()
SnmpPdu getPdu()
|
Open Source build 02 opendmk-1.0-b02 2007.10.01_19:17:46_MEST |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |