public class CopyArchiveFromContainerCmdImpl extends AbstrDockerCmd<CopyArchiveFromContainerCmd,InputStream> implements CopyArchiveFromContainerCmd
CopyArchiveFromContainerCmd.Exec
execution
Constructor and Description |
---|
CopyArchiveFromContainerCmdImpl(CopyArchiveFromContainerCmd.Exec exec,
String containerId,
String resource) |
Modifier and Type | Method and Description |
---|---|
InputStream |
exec()
Its the responsibility of the caller to consume and/or close the
InputStream to prevent connection leaks. |
String |
getContainerId() |
String |
getHostPath() |
String |
getResource() |
CopyArchiveFromContainerCmdImpl |
withContainerId(String containerId) |
CopyArchiveFromContainerCmdImpl |
withHostPath(String hostPath) |
CopyArchiveFromContainerCmdImpl |
withResource(String resource) |
close, registryAuth, toString
public CopyArchiveFromContainerCmdImpl(CopyArchiveFromContainerCmd.Exec exec, String containerId, String resource)
public String getContainerId()
getContainerId
in interface CopyArchiveFromContainerCmd
public String getResource()
getResource
in interface CopyArchiveFromContainerCmd
public CopyArchiveFromContainerCmdImpl withContainerId(String containerId)
withContainerId
in interface CopyArchiveFromContainerCmd
public CopyArchiveFromContainerCmdImpl withResource(String resource)
withResource
in interface CopyArchiveFromContainerCmd
public String getHostPath()
getHostPath
in interface CopyArchiveFromContainerCmd
public CopyArchiveFromContainerCmdImpl withHostPath(String hostPath)
withHostPath
in interface CopyArchiveFromContainerCmd
public InputStream exec() throws NotFoundException
CopyArchiveFromContainerCmd
InputStream
to prevent connection leaks.exec
in interface CopyArchiveFromContainerCmd
exec
in interface SyncDockerCmd<InputStream>
exec
in class AbstrDockerCmd<CopyArchiveFromContainerCmd,InputStream>
NotFoundException
- No such containerCopyright © 2016. All Rights Reserved.