0

The answer @BalusC has given for "Capture and log the response body" is working for me. But I want to know why only 3 write methods alone are overridden. There are print and append methods and 2 more write methods in PrintWriter. My concern is won't I lose some response content by not overriding them ?

(I am guessing that write(String s) is calling write(String s, int off, int len) and that is why you have not overridden write(String s). Same goes for write(char[] buf) also. Please confirm and please also point me to any documentation that says this.)

Community
  • 1
  • 1

0 Answers0