response.setFilter(new GZipWriterFilter(filter));
} else {
if (accept.contains("gzip")) {
response.setFilter(new GZipWriterFilter(filter));
} else if (accept.contains("deflate")) {
response.setFilter(new DeflateWriterFilter(filter));
}
}
next.handle(null);
} catch (IOException ioe) {
next.handle(ioe);