Interface ContainerContent


public interface ContainerContent
Additional content that can be written to a created container.
Since:
2.3.0
Author:
Phillip Webb
  • Method Details

    • getArchive

      TarArchive getArchive()
      Return the actual content to be added.
      Returns:
      the content
    • getDestinationPath

      String getDestinationPath()
      Return the destination path where the content should be added.
      Returns:
      the destination path
    • of

      static ContainerContent of(TarArchive archive)
      Factory method to create a new ContainerContent instance written to the root of the container.
      Parameters:
      archive - the archive to add
      Returns:
      a new ContainerContent instance
    • of

      static ContainerContent of(TarArchive archive, String destinationPath)
      Factory method to create a new ContainerContent instance.
      Parameters:
      archive - the archive to add
      destinationPath - the destination path within the container
      Returns:
      a new ContainerContent instance