From 7597f82cf9a8e9162dc7ce1eec5b9fa4913a6783 Mon Sep 17 00:00:00 2001
From: wang--ge <wang__ge@126.com>
Date: Thu, 31 Mar 2022 11:22:28 +0800
Subject: [PATCH] override abstract method of ServletInputStream and
 ServletOutputStream

---
 .../web/filter/AbstractRequestLoggingFilter.java | 16 ++++++++++++++++
 .../web/filter/ShallowEtagHeaderFilter.java      | 11 +++++++++++
 2 files changed, 27 insertions(+)

diff --git a/spring-web/src/main/java/org/springframework/web/filter/AbstractRequestLoggingFilter.java b/spring-web/src/main/java/org/springframework/web/filter/AbstractRequestLoggingFilter.java
index 211e197..9eac2d6 100644
--- a/spring-web/src/main/java/org/springframework/web/filter/AbstractRequestLoggingFilter.java
+++ b/spring-web/src/main/java/org/springframework/web/filter/AbstractRequestLoggingFilter.java
@@ -28,6 +28,7 @@ import javax.servlet.http.HttpServletRequest;
 import javax.servlet.http.HttpServletRequestWrapper;
 import javax.servlet.http.HttpServletResponse;
 import javax.servlet.http.HttpSession;
+import javax.servlet.ReadListener;
 
 import org.springframework.util.Assert;
 import org.springframework.util.StringUtils;
@@ -367,6 +368,21 @@ public abstract class AbstractRequestLoggingFilter extends OncePerRequestFilter
 				}
 				return ch;
 			}
+
+			@Override
+			public void setReadListener(ReadListener readListener) {
+				throw new UnsupportedOperationException("Not implemented yet");
+			}
+
+			@Override
+			public boolean isReady() {
+				throw new UnsupportedOperationException("Not implemented yet");
+			}
+
+			@Override
+			public boolean isFinished() {
+				throw new UnsupportedOperationException("Not implemented yet");
+			}
 		}
 	}
 
diff --git a/spring-web/src/main/java/org/springframework/web/filter/ShallowEtagHeaderFilter.java b/spring-web/src/main/java/org/springframework/web/filter/ShallowEtagHeaderFilter.java
index 4ec3870..3fc1705 100644
--- a/spring-web/src/main/java/org/springframework/web/filter/ShallowEtagHeaderFilter.java
+++ b/spring-web/src/main/java/org/springframework/web/filter/ShallowEtagHeaderFilter.java
@@ -27,6 +27,7 @@ import javax.servlet.ServletOutputStream;
 import javax.servlet.http.HttpServletRequest;
 import javax.servlet.http.HttpServletResponse;
 import javax.servlet.http.HttpServletResponseWrapper;
+import javax.servlet.WriteListener;
 
 import org.springframework.util.Assert;
 import org.springframework.util.DigestUtils;
@@ -245,6 +246,16 @@ public class ShallowEtagHeaderFilter extends OncePerRequestFilter {
 			public void write(byte[] b, int off, int len) throws IOException {
 				content.write(b, off, len);
 			}
+
+			@Override
+			public void setWriteListener(WriteListener arg0) {
+				throw new UnsupportedOperationException("Not implemented yet");
+			}
+
+			@Override
+			public boolean isReady() {
+				throw new UnsupportedOperationException("Not implemented yet");
+			}
 		}
 
 
-- 
2.27.0

