get() — spring-boot Function Reference
Architecture documentation for the get() function in CredentialHelper.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD ea7dd240_64b2_516a_7f44_d256146da8e4["get()"] 33361459_d9b3_4592_0ecf_ac24ca2f8da3["start()"] 33361459_d9b3_4592_0ecf_ac24ca2f8da3 -->|calls| ea7dd240_64b2_516a_7f44_d256146da8e4 58994152_b05e_a16f_283c_b6dc2c064895["get()"] ea7dd240_64b2_516a_7f44_d256146da8e4 -->|calls| 58994152_b05e_a16f_283c_b6dc2c064895 33162b7b_807b_4420_6f22_261dc4902526["processBuilder()"] ea7dd240_64b2_516a_7f44_d256146da8e4 -->|calls| 33162b7b_807b_4420_6f22_261dc4902526 33361459_d9b3_4592_0ecf_ac24ca2f8da3["start()"] ea7dd240_64b2_516a_7f44_d256146da8e4 -->|calls| 33361459_d9b3_4592_0ecf_ac24ca2f8da3 a61dd912_52fc_910c_8319_e8a1fabcf9c1["isCredentialsNotFoundError()"] ea7dd240_64b2_516a_7f44_d256146da8e4 -->|calls| a61dd912_52fc_910c_8319_e8a1fabcf9c1 style ea7dd240_64b2_516a_7f44_d256146da8e4 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
buildpack/spring-boot-buildpack-platform/src/main/java/org/springframework/boot/buildpack/platform/docker/configuration/CredentialHelper.java lines 53–76
@Nullable Credential get(String serverUrl) throws IOException {
ProcessBuilder processBuilder = processBuilder("get");
Process process = start(processBuilder);
try (OutputStream request = process.getOutputStream()) {
request.write(serverUrl.getBytes(StandardCharsets.UTF_8));
}
try {
int exitCode = process.waitFor();
try (InputStream response = process.getInputStream()) {
if (exitCode == 0) {
return new Credential(SharedJsonMapper.get().readTree(response));
}
String errorMessage = new String(response.readAllBytes(), StandardCharsets.UTF_8);
if (!isCredentialsNotFoundError(errorMessage)) {
throw new IOException("%s' exited with code %d: %s".formatted(process, exitCode, errorMessage));
}
return null;
}
}
catch (InterruptedException ex) {
Thread.currentThread().interrupt();
return null;
}
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does get() do?
get() is a function in the spring-boot codebase.
What does get() call?
get() calls 4 function(s): get, isCredentialsNotFoundError, processBuilder, start.
What calls get()?
get() is called by 1 function(s): start.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free