All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class advent.sas.SASession

java.lang.Object
   |
   +----java.lang.Thread
           |
           +----advent.sas.SASession

public class SASession
extends Thread
The SNMP Applet client will request a session via this socket and SASession will be invoked to handle the needs of that session.


Variable Index

 o dir
The applet directory - needed for file operations
 o RESTRICT_SOCKETS
Whether to restrict sockets opened or sent to by the applet
 o sessionClient
The SASessionClient instance for this session

Constructor Index

 o SASession(Socket)

Method Index

 o appendFile(String, byte[])
Method to save a file in users sub-directory
 o byteToInt(byte)
Since JAVA does not support unsigned types, we need a converter from unsigned byte to int that preserves the last 8 bits.
 o createDir(String)
Method to create a dir in users sub-directory
 o deleteDir(String)
Method to delete a dir in users sub-directory
 o deleteFile(String)
Method to delete a file in users sub-directory
 o netbToString(byte[])
Since JAVA does not support raw addr to string, ...
 o run()
This is run for each session thread.
 o saveFile(String, byte[])
Method to save a file in users sub-directory

Variables

 o RESTRICT_SOCKETS
 public boolean RESTRICT_SOCKETS
Whether to restrict sockets opened or sent to by the applet

 o dir
 public String dir
The applet directory - needed for file operations

 o sessionClient
 public SASessionClient sessionClient
The SASessionClient instance for this session

Constructors

 o SASession
 public SASession(Socket s1)

Methods

 o run
 public void run()
This is run for each session thread.

Overrides:
run in class Thread
 o saveFile
 public void saveFile(String filename,
                      byte data[])
Method to save a file in users sub-directory

 o appendFile
 public void appendFile(String filename,
                        byte data[])
Method to save a file in users sub-directory

 o deleteFile
 public void deleteFile(String filename)
Method to delete a file in users sub-directory

 o deleteDir
 public void deleteDir(String dirname)
Method to delete a dir in users sub-directory

 o createDir
 public void createDir(String dirname)
Method to create a dir in users sub-directory

 o netbToString
 public static String netbToString(byte b[])
Since JAVA does not support raw addr to string, ...

 o byteToInt
 public static int byteToInt(byte b)
Since JAVA does not support unsigned types, we need a converter from unsigned byte to int that preserves the last 8 bits.


All Packages  Class Hierarchy  This Package  Previous  Next  Index