class ResourceCacheControl implements Filter {

    boolean isCacheableResourceRequest(HttpServletRequest request) {
        String requestPath = request.getPathInfo();
        if (requestPath == null) {
            return false;
        }
        for (String resourcePrefix : resourcePrefixes) {
            if (requestPath.startsWith(resourcePrefix)) {
                return true;
            }
        }
        return false;
    }

      ResourceCacheControl();

}