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