public void init(FilterConfig filterConfig) {
}
public void doFilter(ServletRequest req, ServletResponse res,
FilterChain filterChain) throws ServletException, IOException {
ScopeDTO scopeDto = ScopeHolder.getScopeDto();
HttpServletRequest request = (HttpServletRequest) req;
HttpServletResponse response = (HttpServletResponse) res;
logger.debug("requestURI : {}", request.getRequestURI());
logger.debug("requestURL : {}", request.getRequestURL());
logger.debug("servletPath : {}", request.getServletPath());
logger.debug("pathInfo : {}", request.getPathInfo());
String servletPath = request.getServletPath();
if (scopeDto.getType() != ScopeDTO.TYPE_CMS) {
if (servletPath.startsWith("/cms/r/")) {
String path = baseDir + servletPath.substring("/cms".length());
logger.debug("path : {}", path);
IoUtils.copyFileToOutputStream(path, response.getOutputStream());
} else {