CacheControlFilter implements Filter { String getExpires(final long seconds) { ZonedDateTime dateTime = ZonedDateTime.now(ZoneId.of("GMT")); dateTime = dateTime.plusSeconds(seconds); return DATE_TIME_FORMATTER.format(dateTime); }  @Override void init(final FilterConfig filterConfig); @Override void doFilter(final ServletRequest servletRequest,
                         final ServletResponse servletResponse,
                         final FilterChain filterChain); @Override void destroy(); static String INIT_PARAM_KEY_SECONDS; static String INIT_PARAM_KEY_CACHEABLE_PATH_REGEX; }
@Test void testExpires() { final CacheControlFilter filter = new CacheControlFilter(); System.out.println(filter.getExpires(600)); }