public class SharedConnection extends Object implements AutoCloseable
| Constructor and Description |
|---|
SharedConnection(String serverName,
String shareName,
com.hierynomus.smbj.auth.AuthenticationContext authenticationContext)
Create a new connection to the server.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the connection.
|
com.hierynomus.smbj.share.DiskShare |
getDiskShare()
Get the disk share to access the server.
|
String |
getServerName()
Get the server name of the server.
|
String |
getShareName()
Get the share name of the server.
|
public SharedConnection(String serverName, String shareName, com.hierynomus.smbj.auth.AuthenticationContext authenticationContext) throws IOException
serverName - Server name of the servershareName - Share name of the serverauthenticationContext - Authentication used to authenticate againstIOException - Exception in case of a problempublic com.hierynomus.smbj.share.DiskShare getDiskShare()
public String getServerName()
public String getShareName()
public void close()
throws Exception
close in interface AutoCloseableException - Exception in case of a problemCopyright © 2018. All rights reserved.