FileDocCategorySizeDatePackage
SnmpIncomingResponse.javaAPI DocJava SE 5 API3220Fri Aug 26 14:55:06 BST 2005com.sun.jmx.snmp.internal

SnmpIncomingResponse

public interface SnmpIncomingResponse

An SnmpIncomingResponse handles the unmarshalling of the received response.

This API is a Sun Microsystems internal API and is subject to change without notice.

since
1.5

Fields Summary
Constructors Summary
Methods Summary
public com.sun.jmx.snmp.SnmpMsgdecodeMessage(byte[] inputBytes, int byteCount, java.net.InetAddress address, int port)
Decodes the specified bytes and initializes itself with the received response.

param
inputBytes The bytes to be decoded.
exception
SnmpStatusException If the specified bytes are not a valid encoding.

public com.sun.jmx.snmp.SnmpPdudecodeSnmpPdu()
Gets the request PDU encoded in the received response.

This method decodes the data field and returns the resulting PDU.

return
The resulting PDU.
exception
SnmpStatusException If the encoding is not valid.

public java.net.InetAddressgetAddress()
Returns the source address.

return
The source address.

public byte[]getContextName()
Gets the incoming response context name.

return
The context name.

public intgetPort()
Returns the source port.

return
The source port.

public intgetRequestId(byte[] data)
Returns the response request Id.

param
data The flat message.
return
The request Id.

public intgetSecurityLevel()
Gets the incoming response security level. This level is defined in {@link com.sun.jmx.snmp.SnmpEngine SnmpEngine}.

return
The security level.

public intgetSecurityModel()
Gets the incoming response security model.

return
The security model.

public com.sun.jmx.snmp.SnmpSecurityParametersgetSecurityParameters()
Gets the incoming response security parameters.

return
The security parameters.

public java.lang.StringprintMessage()
Returns a stringified form of the message to send.

return
The message state string.

public voidsetSecurityCache(com.sun.jmx.snmp.internal.SnmpSecurityCache cache)
Call this method in order to reuse SnmpOutgoingRequest cache.

param
cache The security cache.