createResponse() — spring-boot Function Reference
Architecture documentation for the createResponse() function in InitializrService.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD e14f6b9f_65be_847b_be46_4fa70bba375b["createResponse()"] 567f0e82_a439_c284_a2d2_9b42b552fdb8["generate()"] 567f0e82_a439_c284_a2d2_9b42b552fdb8 -->|calls| e14f6b9f_65be_847b_be46_4fa70bba375b f517fd53_a713_34e0_cd3a_d72f34720212["getContent()"] e14f6b9f_65be_847b_be46_4fa70bba375b -->|calls| f517fd53_a713_34e0_cd3a_d72f34720212 000a2861_1f29_a173_a94b_e9206dfbaa13["extractFileName()"] e14f6b9f_65be_847b_be46_4fa70bba375b -->|calls| 000a2861_1f29_a173_a94b_e9206dfbaa13 style e14f6b9f_65be_847b_be46_4fa70bba375b fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
cli/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/init/InitializrService.java lines 152–162
private ProjectGenerationResponse createResponse(ClassicHttpResponse httpResponse, HttpEntity httpEntity)
throws IOException {
ProjectGenerationResponse response = new ProjectGenerationResponse(
ContentType.create(httpEntity.getContentType()));
response.setContent(FileCopyUtils.copyToByteArray(httpEntity.getContent()));
String fileName = extractFileName(httpResponse.getFirstHeader("Content-Disposition"));
if (fileName != null) {
response.setFileName(fileName);
}
return response;
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does createResponse() do?
createResponse() is a function in the spring-boot codebase.
What does createResponse() call?
createResponse() calls 2 function(s): extractFileName, getContent.
What calls createResponse()?
createResponse() is called by 1 function(s): generate.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free