contentFromClasspath() — spring-boot Function Reference
Architecture documentation for the contentFromClasspath() function in PemContentTests.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD 3b82249d_26b0_3841_5444_f48f6e777712["contentFromClasspath()"] 0479f8f9_ab82_f49e_6a8f_fd6ad9b06590["getCertificateReturnsCertificates()"] 0479f8f9_ab82_f49e_6a8f_fd6ad9b06590 -->|calls| 3b82249d_26b0_3841_5444_f48f6e777712 ccc4b464_81bf_f802_77b9_a16f0efc23cd["getPrivateKeyReturnsPrivateKey()"] ccc4b464_81bf_f802_77b9_a16f0efc23cd -->|calls| 3b82249d_26b0_3841_5444_f48f6e777712 0224c909_ba04_daba_5b26_aa6cebcf6a22["loadWithStringWhenClasspathLocationReturnsContent()"] 0224c909_ba04_daba_5b26_aa6cebcf6a22 -->|calls| 3b82249d_26b0_3841_5444_f48f6e777712 5e494ba7_b7ff_1e03_cf0e_a5f1cd839668["loadWithStringWhenFileLocationReturnsContent()"] 5e494ba7_b7ff_1e03_cf0e_a5f1cd839668 -->|calls| 3b82249d_26b0_3841_5444_f48f6e777712 3c9eec74_1fc7_d8c6_8703_01a0ffe06a38["loadWithPathReturnsContent()"] 3c9eec74_1fc7_d8c6_8703_01a0ffe06a38 -->|calls| 3b82249d_26b0_3841_5444_f48f6e777712 style 3b82249d_26b0_3841_5444_f48f6e777712 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
core/spring-boot/src/test/java/org/springframework/boot/ssl/pem/PemContentTests.java lines 240–242
private static String contentFromClasspath(String path) throws IOException {
return new ClassPathResource(path).getContentAsString(StandardCharsets.UTF_8).indent(0).stripTrailing();
}
Domain
Subdomains
Called By
- getCertificateReturnsCertificates()
- getPrivateKeyReturnsPrivateKey()
- loadWithPathReturnsContent()
- loadWithStringWhenClasspathLocationReturnsContent()
- loadWithStringWhenFileLocationReturnsContent()
Source
Frequently Asked Questions
What does contentFromClasspath() do?
contentFromClasspath() is a function in the spring-boot codebase.
What calls contentFromClasspath()?
contentFromClasspath() is called by 5 function(s): getCertificateReturnsCertificates, getPrivateKeyReturnsPrivateKey, loadWithPathReturnsContent, loadWithStringWhenClasspathLocationReturnsContent, loadWithStringWhenFileLocationReturnsContent.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free