Interface StorageClient

All Known Implementing Classes:
LocalStorageClient

public interface StorageClient
Server file storage interface.

The instantiation of this will be done via Factories.

Connection is required to allow customisation based on sender/recipient.

  • Method Details

    • setConnection

      StorageClient setConnection(Connection connection)
      Sets connection.
      Parameters:
      connection - Connection instance.
      Returns:
      Self.
    • setExtension

      StorageClient setExtension(String extension)
      Sets extension.
      Parameters:
      extension - File extension.
      Returns:
      Self.
    • getStream

      Gets file output stream.
      Returns:
      OutputStream instance.
      Throws:
      FileNotFoundException - File not found.
    • getPath

      String getPath()
      Gets path.
      Returns:
      String.
    • getFile

      String getFile()
      Gets file path.
      Returns:
      String.
    • save

      boolean save()
      Saves file.
      Returns:
      Boolean.