Module jcifs

Interface SmbTransport

All Superinterfaces:
AutoCloseable
All Known Subinterfaces:
SmbTransportInternal

public interface SmbTransport extends AutoCloseable
Opaque reference to a SMB transport
Author:
mbechler

This interface is intended for internal use.

  • Method Details

    • getContext

      CIFSContext getContext()
      Gets the CIFS context associated with this transport.
      Returns:
      the context this transport is attached to
    • unwrap

      <T extends SmbTransport> T unwrap(Class<T> type)
      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:
      close in interface AutoCloseable
      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