com.sun.jaw.snmp.manager
Class SnmpOptions

java.lang.Object
  |
  +--com.sun.jaw.snmp.manager.SnmpOptions

public final class SnmpOptions
extends java.lang.Object
implements java.io.Serializable

This class is used to configure various options for SnmpSession.
Each session can be tuned to suit a specific needs. Setting these options changes the behaviour of all future requests. The already created requests are also influenced, depending on the nature of the option.
There are currently 3 different options:

See Also:
SnmpSession, Serialized Form

Constructor Summary
SnmpOptions()
          Creates a new option with the default value SnmpConst.DefaultOption.
SnmpOptions(int options)
          Creates a new option with specified value.
 
Method Summary
 int getOptions()
          Gets all the options set in the object.
 boolean isMultiplexAllowed()
          Indicates if the multiplex is allowed or not.
 boolean isPduFixedOnError()
          Indicates if the PduFixedOnError option is set or not.
 boolean isTooBigHandled()
          Indicates if the TooBigHandled option is set or not.
 void resetToDefault()
          Resets to default options.
 void setMultiplexAllowed(boolean flag)
          Sets the MultiplexAllowed option.
 void setPduFixedOnError(boolean flag)
          Sets the PduFixedOnError option.
 void setTooBigHandled(boolean flag)
          Sets the TooBigHandled option.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SnmpOptions

public SnmpOptions()
Creates a new option with the default value SnmpConst.DefaultOption. This default value sets the following options:

SnmpOptions

public SnmpOptions(int options)
Creates a new option with specified value.
Parameters:
options - The initializing options.
Method Detail

getOptions

public int getOptions()
Gets all the options set in the object.
Returns:
All the options set in the object.

isMultiplexAllowed

public boolean isMultiplexAllowed()
Indicates if the multiplex is allowed or not.
Returns:
True if the multiplex is allowed; false otherwise.

setMultiplexAllowed

public void setMultiplexAllowed(boolean flag)
Sets the MultiplexAllowed option.
Parameters:
flag - The MultiplexAllowed option value.

isPduFixedOnError

public boolean isPduFixedOnError()
Indicates if the PduFixedOnError option is set or not.
Returns:
True if the PduFixedOnError option is set; false otherwise.

setPduFixedOnError

public void setPduFixedOnError(boolean flag)
Sets the PduFixedOnError option.
Parameters:
flag - The PduFixedOnError option value.

isTooBigHandled

public boolean isTooBigHandled()
Indicates if the TooBigHandled option is set or not.
Returns:
True if the TooBigHandled option is set; false otherwise.

setTooBigHandled

public void setTooBigHandled(boolean flag)
Sets the TooBigHandled option.
Parameters:
flag - The TooBigHandled option value.

resetToDefault

public void resetToDefault()
Resets to default options.