buildMappingsForNetworkSettings() — spring-boot Function Reference
Architecture documentation for the buildMappingsForNetworkSettings() function in DefaultConnectionPorts.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD d09146be_59c8_f64c_2362_4f88020f1f62["buildMappingsForNetworkSettings()"] 358652c3_65c1_3a79_6458_97ecd8ecc640["DefaultConnectionPorts()"] 358652c3_65c1_3a79_6458_97ecd8ecc640 -->|calls| d09146be_59c8_f64c_2362_4f88020f1f62 e37bfa42_8acf_b09f_fcef_4de73917e915["parse()"] d09146be_59c8_f64c_2362_4f88020f1f62 -->|calls| e37bfa42_8acf_b09f_fcef_4de73917e915 b7a8f9f6_57e3_944e_844d_8928cfdc878c["getPortNumber()"] d09146be_59c8_f64c_2362_4f88020f1f62 -->|calls| b7a8f9f6_57e3_944e_844d_8928cfdc878c style d09146be_59c8_f64c_2362_4f88020f1f62 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 62–76
private Map<ContainerPort, Integer> buildMappingsForNetworkSettings(@Nullable NetworkSettings networkSettings) {
if (networkSettings == null || CollectionUtils.isEmpty(networkSettings.ports())) {
return Collections.emptyMap();
}
Map<ContainerPort, Integer> mappings = new HashMap<>();
networkSettings.ports().forEach((containerPortString, hostPorts) -> {
if (!CollectionUtils.isEmpty(hostPorts)) {
ContainerPort containerPort = ContainerPort.parse(containerPortString);
hostPorts.stream()
.filter(this::isIpV4)
.forEach((hostPort) -> mappings.put(containerPort, getPortNumber(hostPort)));
}
});
return Collections.unmodifiableMap(mappings);
}
Domain
Subdomains
Calls
- getPortNumber()
- parse()
Called By
Source
Frequently Asked Questions
What does buildMappingsForNetworkSettings() do?
buildMappingsForNetworkSettings() is a function in the spring-boot codebase.
What does buildMappingsForNetworkSettings() call?
buildMappingsForNetworkSettings() calls 2 function(s): getPortNumber, parse.
What calls buildMappingsForNetworkSettings()?
buildMappingsForNetworkSettings() is called by 1 function(s): DefaultConnectionPorts.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free