-
public final class PortMappingEncapsulates a container-port-mapping (container port to host port). Such a mapping also contains a symbolic name.
-
-
Constructor Summary
Constructors Constructor Description PortMapping(String name, Integer hostPort, Integer containerPort, Boolean primary)
-
Method Summary
Modifier and Type Method Description final StringgetName()final IntegergetHostPort()final IntegergetContainerPort()final BooleangetPrimary()final Stringrender()Renders the contained port numbers following the pattern: hostPort:containerPortas it is understood by com.bmuschko.gradle.docker.tasks.container.DockerCreateContainer.HostConfig.portBindingsBooleanequals(Object other)IntegerhashCode()StringtoString()-
-
Method Detail
-
getHostPort
final Integer getHostPort()
-
getContainerPort
final Integer getContainerPort()
-
getPrimary
final Boolean getPrimary()
-
render
final String render()
Renders the contained port numbers following the pattern:
hostPort:containerPortas it is understood by com.bmuschko.gradle.docker.tasks.container.DockerCreateContainer.HostConfig.portBindings
-
-
-
-