Module jcifs

Interface SmbTreeHandleInternal

All Superinterfaces:
AutoCloseable, SmbTreeHandle

public interface SmbTreeHandleInternal extends SmbTreeHandle
Internal interface for SMB tree handle operations. This interface provides internal methods for managing SMB tree connections and their lifecycle.
Author:
mbechler
  • Method Details

    • release

      void release()
      Releases this tree handle back to the pool for reuse
    • ensureDFSResolved

      void ensureDFSResolved() throws CIFSException
      Ensures that DFS referrals have been resolved for this tree
      Throws:
      SmbException - if an SMB-specific error occurs
      CIFSException - if a general CIFS error occurs
    • hasCapability

      boolean hasCapability(int cap) throws CIFSException
      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

      int getSendBufferSize() throws CIFSException
      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

      int getReceiveBufferSize() throws CIFSException
      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

      int getMaximumBufferSize() throws CIFSException
      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

      boolean areSignaturesActive() throws CIFSException
      Checks if SMB message signing is active for this session
      Returns:
      whether the session uses SMB signing
      Throws:
      CIFSException - if a general CIFS error occurs
      SmbException - if an SMB-specific error occurs
    • getSession

      SmbSession getSession()
      Internal/testing use only
      Returns:
      attached session