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

extractFileName() — spring-boot Function Reference

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

Function java GradlePlugin AotProcessing calls 1 called by 1

Entity Profile

Dependency Diagram

graph TD
  000a2861_1f29_a173_a94b_e9206dfbaa13["extractFileName()"]
  e14f6b9f_65be_847b_be46_4fa70bba375b["createResponse()"]
  e14f6b9f_65be_847b_be46_4fa70bba375b -->|calls| 000a2861_1f29_a173_a94b_e9206dfbaa13
  75fd2205_825e_5b49_0235_007ef313bd48["length()"]
  000a2861_1f29_a173_a94b_e9206dfbaa13 -->|calls| 75fd2205_825e_5b49_0235_007ef313bd48
  style 000a2861_1f29_a173_a94b_e9206dfbaa13 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 238–251

	private @Nullable String extractFileName(@Nullable Header header) {
		if (header != null) {
			String value = header.getValue();
			int start = value.indexOf(FILENAME_HEADER_PREFIX);
			if (start != -1) {
				value = value.substring(start + FILENAME_HEADER_PREFIX.length());
				int end = value.indexOf('\"');
				if (end != -1) {
					return value.substring(0, end);
				}
			}
		}
		return null;
	}

Domain

Subdomains

Calls

Called By

Frequently Asked Questions

What does extractFileName() do?
extractFileName() is a function in the spring-boot codebase.
What does extractFileName() call?
extractFileName() calls 1 function(s): length.
What calls extractFileName()?
extractFileName() is called by 1 function(s): createResponse.

Analyze Your Own Codebase

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

Try Supermodel Free