Home / Function/ DefaultConnectionPorts() — spring-boot Function Reference

DefaultConnectionPorts() — spring-boot Function Reference

Architecture documentation for the DefaultConnectionPorts() function in DefaultConnectionPorts.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  358652c3_65c1_3a79_6458_97ecd8ecc640["DefaultConnectionPorts()"]
  6aef47a0_47cb_4324_841f_7b0dc564d93d["isHostNetworkMode()"]
  358652c3_65c1_3a79_6458_97ecd8ecc640 -->|calls| 6aef47a0_47cb_4324_841f_7b0dc564d93d
  d09146be_59c8_f64c_2362_4f88020f1f62["buildMappingsForNetworkSettings()"]
  358652c3_65c1_3a79_6458_97ecd8ecc640 -->|calls| d09146be_59c8_f64c_2362_4f88020f1f62
  f94901ed_8723_d6bf_e432_c53ebbb871c9["buildMappingsForHostNetworking()"]
  358652c3_65c1_3a79_6458_97ecd8ecc640 -->|calls| f94901ed_8723_d6bf_e432_c53ebbb871c9
  style 358652c3_65c1_3a79_6458_97ecd8ecc640 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot-docker-compose/src/main/java/org/springframework/boot/docker/compose/core/DefaultConnectionPorts.java lines 48–55

	DefaultConnectionPorts(DockerCliInspectResponse inspectResponse) {
		this.mappings = !isHostNetworkMode(inspectResponse)
				? buildMappingsForNetworkSettings(inspectResponse.networkSettings())
				: buildMappingsForHostNetworking(inspectResponse.config());
		Map<Integer, Integer> portMappings = new HashMap<>();
		this.mappings.forEach((containerPort, hostPort) -> portMappings.put(containerPort.number(), hostPort));
		this.portMappings = Collections.unmodifiableMap(portMappings);
	}

Domain

Subdomains

Calls

Frequently Asked Questions

What does DefaultConnectionPorts() do?
DefaultConnectionPorts() is a function in the spring-boot codebase.
What does DefaultConnectionPorts() call?
DefaultConnectionPorts() calls 3 function(s): buildMappingsForHostNetworking, buildMappingsForNetworkSettings, isHostNetworkMode.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free