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

SnmpOutgoingRequest

public interface SnmpOutgoingRequest

An SnmpOutgoingRequest handles the marshalling of the message to send.

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 intencodeMessage(byte[] outputBytes)
Encodes the message to send and puts the result in the specified byte array.

param
outputBytes An array to receive the resulting encoding.
exception
ArrayIndexOutOfBoundsException If the result does not fit into the specified array.

public com.sun.jmx.snmp.SnmpMsgencodeSnmpPdu(com.sun.jmx.snmp.SnmpPdu p, int maxDataLength)
Initializes the message to send with the passed Pdu.

If the encoding length exceeds maxDataLength, the method throws an exception.

param
p The PDU to be encoded.
param
maxDataLength The maximum length permitted for the data field.
exception
SnmpStatusException If the specified PDU p/CODE> is not valid.
exception
SnmpTooBigException If the resulting encoding does not fit into maxDataLength bytes.
exception
ArrayIndexOutOfBoundsException If the encoding exceeds maxDataLength.

public com.sun.jmx.snmp.internal.SnmpSecurityCachegetSecurityCache()
Returns the cached security data used when marshalling the call as a secure one.

return
The cached data.

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

return
The message state string.