- All Superinterfaces:
AutoCloseable,SmbTreeHandle
Internal interface for SMB tree handle operations.
This interface provides internal methods for managing
SMB tree connections and their lifecycle.
- Author:
- mbechler
-
Method Summary
Modifier and TypeMethodDescriptionbooleanChecks if SMB message signing is active for this sessionvoidEnsures that DFS referrals have been resolved for this treeintGets the maximum buffer size supported by the serverintGets the receive buffer size of the underlying SMB connectionintGets the send buffer size of the underlying SMB connectionInternal/testing use onlybooleanhasCapability(int cap) Checks if the server has the specified capabilityvoidrelease()Releases this tree handle back to the pool for reuseMethods inherited from interface org.codelibs.jcifs.smb.SmbTreeHandle
close, getConfig, getConnectedShare, getOEMDomainName, getRemoteHostName, getServerTimeZoneOffset, getTreeType, isConnected, isSameTree, isSMB2
-
Method Details
-
release
void release()Releases this tree handle back to the pool for reuse -
ensureDFSResolved
Ensures that DFS referrals have been resolved for this tree- Throws:
SmbException- if an SMB-specific error occursCIFSException- if a general CIFS error occurs
-
hasCapability
Checks if the server has the specified capability- Parameters:
cap- the capability flag to check- Returns:
- whether the capability is present
- Throws:
CIFSException- if an error occurs checking capabilities
-
getSendBufferSize
Gets the send buffer size of the underlying SMB connection- Returns:
- the send buffer size of the underlying connection
- Throws:
CIFSException- if an error occurs retrieving the buffer size
-
getReceiveBufferSize
Gets the receive buffer size of the underlying SMB connection- Returns:
- the receive buffer size of the underlying connection
- Throws:
CIFSException- if an error occurs retrieving the buffer size
-
getMaximumBufferSize
Gets the maximum buffer size supported by the server- Returns:
- the maximum buffer size reported by the server
- Throws:
CIFSException- if an error occurs retrieving the buffer size
-
areSignaturesActive
Checks if SMB message signing is active for this session- Returns:
- whether the session uses SMB signing
- Throws:
CIFSException- if a general CIFS error occursSmbException- if an SMB-specific error occurs
-
getSession
SmbSession getSession()Internal/testing use only- Returns:
- attached session
-