Package jcifs
Interface SmbTransport
-
- All Superinterfaces:
AutoCloseable
- All Known Subinterfaces:
SmbTransportInternal
public interface SmbTransport extends AutoCloseable
Opaque reference to a SMB transport- Author:
- mbechler
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()CIFSContextgetContext()AddressgetRemoteAddress()StringgetRemoteHostName()<T extends SmbTransport>
Tunwrap(Class<T> type)
-
-
-
Method Detail
-
getContext
CIFSContext getContext()
- Returns:
- the context this transport is attached to
-
unwrap
<T extends SmbTransport> T unwrap(Class<T> type)
- Parameters:
type-- Returns:
- transport instance with the given type
-
close
void close()
- Specified by:
closein interfaceAutoCloseable- See Also:
AutoCloseable.close()
-
getRemoteAddress
Address getRemoteAddress()
- Returns:
- the connected address
-
getRemoteHostName
String getRemoteHostName()
- Returns:
- the connected host name
-
-