自分でResponseWriterWrapper
クラスを作成してください。
public abstract class ResponseWriterWrapper extends ResponseWriter {
public abstract ResponseWriter getWrapped();
@Override
public String getContentType() {
return getWrapped().getContentType();
}
@Override
public String getCharacterEncoding() {
return getWrapped().getCharacterEncoding();
}
@Override
public void flush() throws IOException {
getWrapped().flush();
}
@Override
public void startDocument() throws IOException {
getWrapped().startDocument();
}
// Etc... Just override all abstract methods of ResponseWriter
// and delegate the call to getWrapped(). There are 15 of them.
}
基本的には便利なクラスなので、1つまたは2つの抽象メソッドが必要な場合は、15つの抽象メソッドをすべて実装する必要はありません。
ありがとうございます。これを試して戻ってくるだろう。 –