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 voidclose()ConfigurationgetConfig()StringgetConnectedShare()StringgetOEMDomainName()StringgetRemoteHostName()longgetServerTimeZoneOffset()intgetTreeType()booleanisConnected()booleanisSameTree(SmbTreeHandle th)booleanisSMB2()
-
-
-
Method Detail
-
getConfig
Configuration getConfig()
- Returns:
- the active configuration
-
close
void close() throws CIFSException- Specified by:
closein 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
-
-