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

getContent() — spring-boot Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  f517fd53_a713_34e0_cd3a_d72f34720212["getContent()"]
  f177244f_956d_b9a1_6675_af2b7b1ec51c["loadServiceCapabilities()"]
  f177244f_956d_b9a1_6675_af2b7b1ec51c -->|calls| f517fd53_a713_34e0_cd3a_d72f34720212
  e14f6b9f_65be_847b_be46_4fa70bba375b["createResponse()"]
  e14f6b9f_65be_847b_be46_4fa70bba375b -->|calls| f517fd53_a713_34e0_cd3a_d72f34720212
  93aef18e_8dab_4d48_f8cc_e271d0ab6fa3["getContentAsJson()"]
  93aef18e_8dab_4d48_f8cc_e271d0ab6fa3 -->|calls| f517fd53_a713_34e0_cd3a_d72f34720212
  style f517fd53_a713_34e0_cd3a_d72f34720212 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 230–236

	private String getContent(HttpEntity entity) throws IOException {
		ContentType contentType = ContentType.create(entity.getContentType());
		Charset charset = contentType.getCharset();
		charset = (charset != null) ? charset : StandardCharsets.UTF_8;
		byte[] content = FileCopyUtils.copyToByteArray(entity.getContent());
		return new String(content, charset);
	}

Domain

Subdomains

Frequently Asked Questions

What does getContent() do?
getContent() is a function in the spring-boot codebase.
What calls getContent()?
getContent() is called by 3 function(s): createResponse, getContentAsJson, loadServiceCapabilities.

Analyze Your Own Codebase

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

Try Supermodel Free