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.
-
dir
- The applet directory - needed for file operations
-
RESTRICT_SOCKETS
- Whether to restrict sockets opened or sent to by the applet
-
sessionClient
- The SASessionClient instance for this session
-
SASession(Socket)
-
-
appendFile(String, byte[])
- Method to save a file in users sub-directory
-
byteToInt(byte)
- Since JAVA does not support unsigned types, we need a converter
from unsigned byte to int that preserves the last 8 bits.
-
createDir(String)
- Method to create a dir in users sub-directory
-
deleteDir(String)
- Method to delete a dir in users sub-directory
-
deleteFile(String)
- Method to delete a file in users sub-directory
-
netbToString(byte[])
- Since JAVA does not support raw addr to string, ...
-
run()
- This is run for each session thread.
-
saveFile(String, byte[])
- Method to save a file in users sub-directory
RESTRICT_SOCKETS
public boolean RESTRICT_SOCKETS
- Whether to restrict sockets opened or sent to by the applet
dir
public String dir
- The applet directory - needed for file operations
sessionClient
public SASessionClient sessionClient
- The SASessionClient instance for this session
SASession
public SASession(Socket s1)
run
public void run()
- This is run for each session thread.
- Overrides:
- run in class Thread
saveFile
public void saveFile(String filename,
byte data[])
- Method to save a file in users sub-directory
appendFile
public void appendFile(String filename,
byte data[])
- Method to save a file in users sub-directory
deleteFile
public void deleteFile(String filename)
- Method to delete a file in users sub-directory
deleteDir
public void deleteDir(String dirname)
- Method to delete a dir in users sub-directory
createDir
public void createDir(String dirname)
- Method to create a dir in users sub-directory
netbToString
public static String netbToString(byte b[])
- Since JAVA does not support raw addr to string, ...
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