encoding != null ?
ServerUtils.orderByQ(encoding) :
new String[0];
for (String enc : encodings) {
if (CompressingResponseWrapper.canHandle(enc)) {
CompressionCodec codec = CompressionUtil.getCodec(enc);
CompressingResponseWrapper resp =
new CompressingResponseWrapper(
(HttpServletResponse) response, codec);
chain.doFilter(request, response);
resp.finish();