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

responseIsCommittedWhenStatusIs400PlusDuringAsyncDispatch() — spring-boot Function Reference

Architecture documentation for the responseIsCommittedWhenStatusIs400PlusDuringAsyncDispatch() function in ErrorPageFilterTests.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  42fdd5a5_3259_6801_9ec2_8e01f9d11b74["responseIsCommittedWhenStatusIs400PlusDuringAsyncDispatch()"]
  ceb50e39_12a3_53c8_45a3_31278bc19af6["ErrorPage()"]
  42fdd5a5_3259_6801_9ec2_8e01f9d11b74 -->|calls| ceb50e39_12a3_53c8_45a3_31278bc19af6
  49fe2a7f_7e05_9f39_8a55_da13e6ff4015["setUpAsyncDispatch()"]
  42fdd5a5_3259_6801_9ec2_8e01f9d11b74 -->|calls| 49fe2a7f_7e05_9f39_8a55_da13e6ff4015
  b3fa6802_0fcb_6ddf_3e94_a5f8ad2cf83a["TestFilterChain()"]
  42fdd5a5_3259_6801_9ec2_8e01f9d11b74 -->|calls| b3fa6802_0fcb_6ddf_3e94_a5f8ad2cf83a
  822a5bf1_1210_1d34_4d64_7b2af9ebd5f5["doFilter()"]
  42fdd5a5_3259_6801_9ec2_8e01f9d11b74 -->|calls| 822a5bf1_1210_1d34_4d64_7b2af9ebd5f5
  b31ddfb9_cf30_450c_456a_1eb75ca296e5["getChainResponse()"]
  42fdd5a5_3259_6801_9ec2_8e01f9d11b74 -->|calls| b31ddfb9_cf30_450c_456a_1eb75ca296e5
  style 42fdd5a5_3259_6801_9ec2_8e01f9d11b74 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/test/java/org/springframework/boot/web/servlet/support/ErrorPageFilterTests.java lines 319–331

	@Test
	void responseIsCommittedWhenStatusIs400PlusDuringAsyncDispatch() throws Exception {
		this.filter.addErrorPages(new ErrorPage("/error"));
		setUpAsyncDispatch();
		this.chain = new TestFilterChain((request, response, chain) -> {
			chain.call();
			response.sendError(400, "BAD");
		});
		this.filter.doFilter(this.request, this.response, this.chain);
		assertThat(this.chain.getRequest()).isEqualTo(this.request);
		assertThat((getChainResponse()).getResponse()).isEqualTo(this.response);
		assertThat(this.response.isCommitted()).isTrue();
	}

Domain

Subdomains

Frequently Asked Questions

What does responseIsCommittedWhenStatusIs400PlusDuringAsyncDispatch() do?
responseIsCommittedWhenStatusIs400PlusDuringAsyncDispatch() is a function in the spring-boot codebase.
What does responseIsCommittedWhenStatusIs400PlusDuringAsyncDispatch() call?
responseIsCommittedWhenStatusIs400PlusDuringAsyncDispatch() calls 5 function(s): ErrorPage, TestFilterChain, doFilter, getChainResponse, setUpAsyncDispatch.

Analyze Your Own Codebase

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

Try Supermodel Free