- All Superinterfaces:
AutoCloseable
- All Known Subinterfaces:
SmbSessionInternal
Opaque reference to a SMB session
- Author:
- mbechler
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Returns the configuration object used by this SMB session.Returns the CIFS context that this session is attached to.<T extends SmbSession>
TUnwraps this session to the specified type, allowing access to implementation-specific functionality.
-
Method Details
-
close
void close()- Specified by:
closein interfaceAutoCloseable- See Also:
-
getConfig
Configuration getConfig()Returns the configuration object used by this SMB session.- Returns:
- the configuration used by this session
-
unwrap
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
-