Interface ContainerContent
public interface ContainerContent
Additional content that can be written to a created container.
- Since:
- 2.3.0
- Author:
- Phillip Webb
-
Method Summary
Modifier and TypeMethodDescriptionReturn the actual content to be added.Return the destination path where the content should be added.static ContainerContent
of
(TarArchive archive) Factory method to create a newContainerContent
instance written to the root of the container.static ContainerContent
of
(TarArchive archive, String destinationPath) Factory method to create a newContainerContent
instance.
-
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
Factory method to create a newContainerContent
instance written to the root of the container.- Parameters:
archive
- the archive to add- Returns:
- a new
ContainerContent
instance
-
of
Factory method to create a newContainerContent
instance.- Parameters:
archive
- the archive to adddestinationPath
- the destination path within the container- Returns:
- a new
ContainerContent
instance
-