Open qwefgh90 opened 5 years ago
If new functions are provided to sub-type, they will break Dependency Inversion principle. How about adding functions get by overriding HttpServletRequestWrapper? But abstract method like getRemoteAddr() is not designed for original client.
https://github.com/spring-projects/spring-framework/blob/master/spring-web/src/main/java/org/springframework/web/filter/ForwardedHeaderFilter.java