接口 ContainerContent


public interface ContainerContent
Additional content that can be written to a created container.
从以下版本开始:
4.0
作者:
Phillip Webb
  • 方法详细资料

    • getArchive

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

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

      static ContainerContent of(TarArchive archive)
      Factory method to create a new ContainerContent instance written to the root of the container.
      参数:
      archive - the archive to add
      返回:
      a new ContainerContent instance
    • of

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