public interface ContainerContent
Modifier and Type | Method and Description |
---|---|
TarArchive |
getArchive()
Return the actual content to be added.
|
String |
getDestinationPath()
Return the destination path where the content should be added.
|
static ContainerContent |
of(TarArchive archive)
Factory method to create a new
ContainerContent instance written to the
root of the container. |
static ContainerContent |
of(TarArchive archive,
String destinationPath)
Factory method to create a new
ContainerContent instance. |
TarArchive getArchive()
String getDestinationPath()
static ContainerContent of(TarArchive archive)
ContainerContent
instance written to the
root of the container.archive
- the archive to addContainerContent
instancestatic ContainerContent of(TarArchive archive, String destinationPath)
ContainerContent
instance.archive
- the archive to adddestinationPath
- the destination path within the containerContainerContent
instance