doFilter() — spring-boot Function Reference
Architecture documentation for the doFilter() function in ErrorPageFilterTests.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD 822a5bf1_1210_1d34_4d64_7b2af9ebd5f5["doFilter()"] 0fc949d7_4b93_7e28_2565_2f81968198d7["notAnError()"] 0fc949d7_4b93_7e28_2565_2f81968198d7 -->|calls| 822a5bf1_1210_1d34_4d64_7b2af9ebd5f5 1b3cf6d8_1c25_c82a_7114_adc82842a816["notAnErrorButNotOK()"] 1b3cf6d8_1c25_c82a_7114_adc82842a816 -->|calls| 822a5bf1_1210_1d34_4d64_7b2af9ebd5f5 dbc270f0_10cd_2e53_0338_0393d69daa87["unauthorizedWithErrorPath()"] dbc270f0_10cd_2e53_0338_0393d69daa87 -->|calls| 822a5bf1_1210_1d34_4d64_7b2af9ebd5f5 e59ccdee_ed4a_7ee4_088d_dc60abccfb51["responseCommitted()"] e59ccdee_ed4a_7ee4_088d_dc60abccfb51 -->|calls| 822a5bf1_1210_1d34_4d64_7b2af9ebd5f5 ab5d8ad5_8391_0e3a_4154_ca3159cad4a1["responseCommittedWhenFromClientAbortException()"] ab5d8ad5_8391_0e3a_4154_ca3159cad4a1 -->|calls| 822a5bf1_1210_1d34_4d64_7b2af9ebd5f5 17293076_455d_cef4_9c1d_1f391142d3e1["responseUncommittedWithoutErrorPage()"] 17293076_455d_cef4_9c1d_1f391142d3e1 -->|calls| 822a5bf1_1210_1d34_4d64_7b2af9ebd5f5 506cc0a2_230b_4923_389f_fd07d0e23b0a["oncePerRequest()"] 506cc0a2_230b_4923_389f_fd07d0e23b0a -->|calls| 822a5bf1_1210_1d34_4d64_7b2af9ebd5f5 ca720b5d_5aeb_5313_5c67_99f697ae319b["globalError()"] ca720b5d_5aeb_5313_5c67_99f697ae319b -->|calls| 822a5bf1_1210_1d34_4d64_7b2af9ebd5f5 2a929cee_f44b_7d5a_b87d_c01c692faf23["statusError()"] 2a929cee_f44b_7d5a_b87d_c01c692faf23 -->|calls| 822a5bf1_1210_1d34_4d64_7b2af9ebd5f5 69c773d5_5122_b02c_0d63_f95ef53fc116["statusErrorWithCommittedResponse()"] 69c773d5_5122_b02c_0d63_f95ef53fc116 -->|calls| 822a5bf1_1210_1d34_4d64_7b2af9ebd5f5 37f60d17_dca6_dcb2_0ce7_c66cafcaac62["exceptionError()"] 37f60d17_dca6_dcb2_0ce7_c66cafcaac62 -->|calls| 822a5bf1_1210_1d34_4d64_7b2af9ebd5f5 a672dd7c_342e_cbff_5398_ca60fa8f7e86["exceptionErrorWithCommittedResponse()"] a672dd7c_342e_cbff_5398_ca60fa8f7e86 -->|calls| 822a5bf1_1210_1d34_4d64_7b2af9ebd5f5 d7a07567_1635_1dd6_5272_1028aff3cc12["statusCode()"] d7a07567_1635_1dd6_5272_1028aff3cc12 -->|calls| 822a5bf1_1210_1d34_4d64_7b2af9ebd5f5 065bd499_013f_3863_b667_ce165e3dd1d0["subClassExceptionError()"] 065bd499_013f_3863_b667_ce165e3dd1d0 -->|calls| 822a5bf1_1210_1d34_4d64_7b2af9ebd5f5 style 822a5bf1_1210_1d34_4d64_7b2af9ebd5f5 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 449–459
@Override
public void doFilter(ServletRequest request, ServletResponse response) throws IOException, ServletException {
AtomicBoolean called = new AtomicBoolean();
Chain chain = () -> {
if (called.compareAndSet(false, true)) {
super.doFilter(request, response);
}
};
this.handler.handle((HttpServletRequest) request, (HttpServletResponse) response, chain);
chain.call();
}
Domain
Subdomains
Called By
- errorMessageForRequestWithPathInfo()
- errorMessageForRequestWithoutPathInfo()
- exceptionError()
- exceptionErrorWithCommittedResponse()
- globalError()
- notAnError()
- notAnErrorButNotOK()
- oncePerRequest()
- responseCommitted()
- responseCommittedWhenFromClientAbortException()
- responseIsCommittedWhenExceptionIsThrownDuringAsyncDispatch()
- responseIsCommittedWhenRequestIsAsyncAndExceptionIsThrown()
- responseIsCommittedWhenRequestIsAsyncAndStatusIs400Plus()
- responseIsCommittedWhenStatusIs400PlusDuringAsyncDispatch()
- responseIsNotCommittedDuringAsyncDispatch()
- responseIsNotCommittedWhenRequestIsAsync()
- responseIsNotFlushedIfStatusIsLessThan400AndItHasAlreadyBeenCommitted()
- responseUncommittedWithoutErrorPage()
- servletExceptionIsUnwrapped()
- servletExceptionWithNoCause()
- statusCode()
- statusError()
- statusErrorWithCommittedResponse()
- subClassExceptionError()
- unauthorizedWithErrorPath()
- whenErrorIsSentAndWriterIsFlushedErrorIsSentToTheClient()
Source
Frequently Asked Questions
What does doFilter() do?
doFilter() is a function in the spring-boot codebase.
What calls doFilter()?
doFilter() is called by 26 function(s): errorMessageForRequestWithPathInfo, errorMessageForRequestWithoutPathInfo, exceptionError, exceptionErrorWithCommittedResponse, globalError, notAnError, notAnErrorButNotOK, oncePerRequest, and 18 more.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free