Module jcifs

Interface SmbSession

All Superinterfaces:
AutoCloseable
All Known Subinterfaces:
SmbSessionInternal

public interface SmbSession extends AutoCloseable
Opaque reference to a SMB session
Author:
mbechler
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Returns the configuration object used by this SMB session.
    Returns the CIFS context that this session is attached to.
    <T extends SmbSession>
    T
    unwrap(Class<T> type)
    Unwraps this session to the specified type, allowing access to implementation-specific functionality.
  • Method Details

    • close

      void close()
      Specified by:
      close in interface AutoCloseable
      See Also:
    • getConfig

      Configuration getConfig()
      Returns the configuration object used by this SMB session.
      Returns:
      the configuration used by this session
    • unwrap

      <T extends SmbSession> T unwrap(Class<T> type)
      Unwraps this session to the specified type, allowing access to implementation-specific functionality.
      Type Parameters:
      T - the type to unwrap to
      Parameters:
      type - the class of the type to unwrap to
      Returns:
      session instance with the given type
    • getContext

      CIFSContext getContext()
      Returns the CIFS context that this session is attached to.
      Returns:
      the context this session is attached to