Package org.springframework.web.util
Class DisconnectedClientHelper
java.lang.Object
org.springframework.web.util.DisconnectedClientHelper
Utility methods to assist with identifying and logging exceptions that indicate
 the client has gone away. Such exceptions fill logs with unnecessary stack
 traces. The utility methods help to log a single line message at DEBUG level,
 and a full stacktrace at TRACE level.
- Since:
- 6.1
- Author:
- Rossen Stoyanchev
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleanCheck viaisClientDisconnectedException(java.lang.Throwable)if the exception indicates the remote client disconnected, and if so log a single line message when DEBUG is on, and a full stacktrace when TRACE is on for the configured logger.static booleanWhether the given exception indicates the client has gone away.
- 
Constructor Details- 
DisconnectedClientHelper
 
- 
- 
Method Details- 
checkAndLogClientDisconnectedExceptionCheck viaisClientDisconnectedException(java.lang.Throwable)if the exception indicates the remote client disconnected, and if so log a single line message when DEBUG is on, and a full stacktrace when TRACE is on for the configured logger.
- 
isClientDisconnectedExceptionWhether the given exception indicates the client has gone away.Known cases covered: - ClientAbortException or EOFException for Tomcat
- EofException for Jetty
- IOException "Broken pipe" or "connection reset by peer"
- SocketException "Connection reset"
 
 
-