@Override
public void close() throws IOException {
try {
- AcceleratorFilter.this.cacheControl.decorate(AccelerationWrapper.this.request, response, buffer);
+ AcceleratorFilter.this.cacheControl.decorate(AccelerationWrapper.this.request, response, AccelerationWrapper.this);
}
catch (Exception e) {
log.error("Error while guessing Cache-Header's", e);
@Override
public void flush() throws IOException {
try {
- AcceleratorFilter.this.cacheControl.decorate(AccelerationWrapper.this.request, response, buffer);
+ AcceleratorFilter.this.cacheControl.decorate(AccelerationWrapper.this.request, response, AccelerationWrapper.this);
}
catch (Exception e) {
log.error("Error while guessing Cache-Header's", e);
import java.io.IOException;
import java.io.PrintWriter;
import java.util.Enumeration;
-import java.util.HashMap;
-import java.util.Map;
import javax.servlet.ServletOutputStream;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;