Methods Summary |
---|
public void | decodeMessage(byte[] inputBytes, int byteCount, java.net.InetAddress address, int port)Decodes the specified bytes and initializes the request with the incoming message.
|
public com.sun.jmx.snmp.SnmpPdu | decodeSnmpPdu()Gets the request PDU encoded in the received message.
This method decodes the data field and returns the resulting PDU.
|
public int | encodeMessage(byte[] outputBytes)Encodes the response message to send and puts the result in the specified byte array.
|
public com.sun.jmx.snmp.SnmpMsg | encodeSnmpPdu(com.sun.jmx.snmp.SnmpPdu p, int maxDataLength)Initializes the response to send with the passed Pdu.
If the encoding length exceeds maxDataLength ,
the method throws an exception.
|
public byte[] | getAccessContext()Gets the incoming request context name used by Access Control Model in order to allow or deny the access to OIDs.
|
public byte[] | getContextEngineId()Gets the incoming request context engine Id.
|
public byte[] | getContextName()Gets the incoming request context name.
|
public java.lang.String | getPrincipal()Gets the incoming request principal.
|
public int | getSecurityLevel()Gets the incoming request security level. This level is defined in {@link com.sun.jmx.snmp.SnmpEngine SnmpEngine}.
|
public int | getSecurityModel()Gets the incoming request security model.
|
public com.sun.jmx.snmp.SnmpSecurityParameters | getSecurityParameters()Once the incoming request decoded, returns the decoded security parameters.
|
public boolean | isReport()Tests if a report is expected.
|
public boolean | isResponse()Tests if a response is expected.
|
public void | noResponse()Tells this request that no response will be sent.
|
public java.lang.String | printRequestMessage()Returns a stringified form of the received message.
|
public java.lang.String | printResponseMessage()Returns a stringified form of the message to send.
|