if (acceptActionPath(request, actionPath) == false) {
filterChain.doFilter(servletRequest, servletResponse);
return;
}
BufferResponseWrapper wrapper = new BufferResponseWrapper(response);
filterChain.doFilter(servletRequest, wrapper);
char[] content = wrapper.getBufferContentAsChars();
if ((content != null) && (content.length != 0)) {
if (log.isDebugEnabled()) {
log.debug("Lagarto is about to parse: " + actionPath);
}
try {
content = parse(content, request);
} catch (Exception ex) {
log.error("Error parsing", ex);
throw new ServletException(ex);
}
wrapper.writeContentToResponse(content);
}
}