beautypg.com

Joltsessionattributes constructor, Joltsessionattributes – HP NonStop G-Series User Manual

Page 98

background image

The JoltSessionAttributes class defines the acceptable attributes for the JoltSession constructor. The set methods add the
attribute if one does not exist. Otherwise, the set method overwrites the old value.

The get and set methods throw the java.lang.NoSuchFieldError or java.lang.IllegalAccessError. By default, these errors
are caught by the Java virtual machine.

public class JoltSessionAttributes
{
/* The supported authentication levels. */
public final static int NOAUTH; // No authentication
public final static int APPASSWORD; // Application password
public final static int USRPASSWORD; // App and User passwords

/* The attribute names for set and get. */
public final static String APPADDRESS // String "//host:port"
// Used with setString()
public final static String IDLETIMEOUT; // Used with SetInt()"
public final static String SENDTIMEOUT; // Used with SetInt()"
public final static String RECVTIMEOUT; // Used with SetInt()"

/* The attribute name for get only. */
public final static String SESSIONTIMEOUT; // getIntDef()

public JoltSessionAttributes();

//JoltSessionAttributes methods.
public int checkAuthenticationLevel()
throws SessionException;
public void clear();
public byte getByteDef( String name, byte defValue );
public byte[] getBytesDef( String name, byte[] defValue );
public double getDoubleDef( String name, double defValue );
public float getFloatDef( String name, float defValue );
public int getIntDef( String name, int defValue );
public short getShortDef( String name, short defValue );
public String getStringDef( String name, String defValue );
public void setByte( String name, byte value );
public void setBytes( String name, byte[] value, int len);
public void setDouble( String name, double value );
public void setFloat( String name, float value );
public void setInt( String name, int value );
public void setShort( String name, short value );
public void setString( String name, String value );
}

JoltSessionAttributes Constructor

The following constructor creates an instance of the JoltSessionAttributes class.

JoltSessionAttributes

Allocates a new instance of the JoltSessionAttributes class.

public JoltSessionAttributes();

Usage Specific components are extracted to assist in defining the attributes of the Session constructor.

Throws

java.lang.IllegalAccessError.