public class Session
extends java.lang.Object
implements java.lang.AutoCloseable
| Constructor and Description |
|---|
Session(long sessionId,
Connection connection,
SMBEventBus bus) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
Share |
connectShare(java.lang.String shareName)
Connect to a share on the remote machine over the authenticated session.
|
Connection |
getConnection() |
long |
getSessionId() |
void |
logoff() |
public Session(long sessionId,
Connection connection,
SMBEventBus bus)
public long getSessionId()
public Share connectShare(java.lang.String shareName)
shareName - The name of the share to connect to.public void logoff()
throws TransportException
TransportExceptionpublic void close()
throws java.io.IOException
close in interface java.lang.AutoCloseablejava.io.IOExceptionpublic Connection getConnection()