All Packages Class Hierarchy This Package Previous Next Index
Class com.starla.lite.SMBSessionFactory
java.lang.Object
|
+----com.starla.lite.SMBSessionFactory
- public final class SMBSessionFactory
- extends Object
The SMBSessionFactory static class is used to create sessions to remote shared
resources using the SMB/CIFS protocol. A PCShare object is used to specify the
remote node and share details, as well as required access control details.
The OpenDisk () method opens a session to a remote disk share. The returned
session object provides disk specific methods such as opening remote files, file
and directory operations such as deleting files, renaming files etc. The disk
session may also be used to start directory searches to list files/directories
in a particular remote path.
-
SMBSessionFactory()
-
-
hasSessionDebug()
- Determine if SMB session debugging is enabled.
-
isVersion()
- Return a version string for this software release
-
OpenDisk(PCShare)
- Open a connection to a remote file server disk share.
-
OpenPrinter(PCShare)
- Open a connection to a remote print server
-
setSessionDebug(boolean)
- Enable/disable SMB session debugging.
SMBSessionFactory
public SMBSessionFactory()
hasSessionDebug
public static final boolean hasSessionDebug()
- Determine if SMB session debugging is enabled.
- Returns:
- true if SMB session debugging is enabled, else false.
isVersion
public static final String isVersion()
- Return a version string for this software release
- Returns:
- Software version number string
OpenDisk
public static final SMBDiskSession OpenDisk(PCShare shr) throws IOException, UnknownHostException, SMBException
- Open a connection to a remote file server disk share.
- Parameters:
- shr - Remote share information object.
- Returns:
- SMBSession used to access the remote share.
- Throws: Exception
- Network I/O error occurred.
- Throws: UnkownHostException
- Remote node is unknown.
- Throws: SMBException
- Failed to setup a new SMB session
OpenPrinter
public static final SMBPrintSession OpenPrinter(PCShare shr) throws IOException, UnknownHostException, SMBException
- Open a connection to a remote print server
- Parameters:
- shr - Remote share information object.
- Returns:
- SMBSession used to access the remote share.
- Throws: Exception
- Network I/O error occurred.
- Throws: UnkownHostException
- Remote node is unknown.
- Throws: SMBException
- Failed to setup a new SMB session
setSessionDebug
public static final void setSessionDebug(boolean dbg)
- Enable/disable SMB session debugging.
- Parameters:
- dbg - true to enable SMB session debugging, else false.
All Packages Class Hierarchy This Package Previous Next Index