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.


Constructor Index

 o SMBSessionFactory()

Method Index

 o hasSessionDebug()
Determine if SMB session debugging is enabled.
 o isVersion()
Return a version string for this software release
 o OpenDisk(PCShare)
Open a connection to a remote file server disk share.
 o OpenPrinter(PCShare)
Open a connection to a remote print server
 o setSessionDebug(boolean)
Enable/disable SMB session debugging.

Constructors

 o SMBSessionFactory
 public SMBSessionFactory()

Methods

 o hasSessionDebug
 public static final boolean hasSessionDebug()
Determine if SMB session debugging is enabled.

Returns:
true if SMB session debugging is enabled, else false.
 o isVersion
 public static final String isVersion()
Return a version string for this software release

Returns:
Software version number string
 o 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
 o 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
 o 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