Package jcifs
Interface SmbTreeHandle
-
- All Superinterfaces:
AutoCloseable
- All Known Subinterfaces:
SmbTreeHandleInternal
public interface SmbTreeHandle extends AutoCloseable
Handle to a connected SMB tree- Author:
- mbechler
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
close()
Configuration
getConfig()
String
getConnectedShare()
String
getOEMDomainName()
String
getRemoteHostName()
long
getServerTimeZoneOffset()
int
getTreeType()
boolean
isConnected()
boolean
isSameTree(SmbTreeHandle th)
boolean
isSMB2()
-
-
-
Method Detail
-
getConfig
Configuration getConfig()
- Returns:
- the active configuration
-
close
void close() throws CIFSException
- Specified by:
close
in interfaceAutoCloseable
- Throws:
CIFSException
- See Also:
AutoCloseable.close()
-
isConnected
boolean isConnected()
- Returns:
- the tree is connected
-
getServerTimeZoneOffset
long getServerTimeZoneOffset() throws CIFSException
- Returns:
- server timezone offset
- Throws:
CIFSException
-
getOEMDomainName
String getOEMDomainName() throws CIFSException
- Returns:
- server reported domain name
- Throws:
CIFSException
-
getConnectedShare
String getConnectedShare()
- Returns:
- the share we are connected to
-
isSameTree
boolean isSameTree(SmbTreeHandle th)
- Parameters:
th
-- Returns:
- whether the handles refer to the same tree
-
isSMB2
boolean isSMB2()
- Returns:
- whether this tree handle uses SMB2+
-
getRemoteHostName
String getRemoteHostName()
- Returns:
- the remote host name
-
getTreeType
int getTreeType()
- Returns:
- the tree type
-
-