- All Superinterfaces:
AutoCloseable
- All Known Subinterfaces:
SmbTransportInternal
Opaque reference to a SMB transport
- Author:
- mbechler
This interface is intended for internal use.
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Gets the CIFS context associated with this transport.Gets the address of the remote SMB server.Gets the host name of the remote SMB server.<T extends SmbTransport>
TUnwraps the transport to the specified type.
-
Method Details
-
getContext
CIFSContext getContext()Gets the CIFS context associated with this transport.- Returns:
- the context this transport is attached to
-
unwrap
Unwraps the transport to the specified type.- Type Parameters:
T- the type to unwrap to- Parameters:
type- the class of the transport type to unwrap- Returns:
- transport instance with the given type
-
close
void close()- Specified by:
closein interfaceAutoCloseable- See Also:
-
getRemoteAddress
Address getRemoteAddress()Gets the address of the remote SMB server.- Returns:
- the connected address
-
getRemoteHostName
String getRemoteHostName()Gets the host name of the remote SMB server.- Returns:
- the connected host name
-