@Test void testSetExpiresHours() { doAnswer(new ValidateDateHeaderAnswer(15 * DateUtils.MILLIS_PER_HOUR)) .when(response).setHeader(eq(CacheHeader.HEADER_EXPIRES), anyString()); CacheHeader.setExpiresHours(response, 15); }
public static void setExpiresHours(@NotNull HttpServletResponse response, int hours) { Date expiresDate = DateUtils.addHours(new Date(), hours); setExpires(response, expiresDate); }
CacheHeader { public static void setExpiresHours(@NotNull HttpServletResponse response, int hours) { Date expiresDate = DateUtils.addHours(new Date(), hours); setExpires(response, expiresDate); } }
CacheHeader { public static void setExpiresHours(@NotNull HttpServletResponse response, int hours) { Date expiresDate = DateUtils.addHours(new Date(), hours); setExpires(response, expiresDate); } private  CacheHeader(); }
CacheHeader { public static void setExpiresHours(@NotNull HttpServletResponse response, int hours) { Date expiresDate = DateUtils.addHours(new Date(), hours); setExpires(response, expiresDate); } private  CacheHeader(); static boolean isNotModified(@NotNull Resource resource,
      @NotNull SlingHttpServletRequest request, @NotNull SlingHttpServletResponse response); static boolean isNotModified(@NotNull Resource resource,
      @NotNull SlingHttpServletRequest request, @NotNull SlingHttpServletResponse response, boolean setExpiresHeader); static boolean isNotModified(@NotNull ModificationDateProvider dateProvider,
      @NotNull SlingHttpServletRequest request, @NotNull SlingHttpServletResponse response); static boolean isNotModified(@NotNull ModificationDateProvider dateProvider,
      @NotNull SlingHttpServletRequest request, @NotNull SlingHttpServletResponse response, boolean setExpiresHeader); static void setNonCachingHeaders(@NotNull HttpServletResponse response); static void setExpires(@NotNull HttpServletResponse response, @Nullable Date date); static void setExpiresSeconds(@NotNull HttpServletResponse response, int seconds); static void setExpiresHours(@NotNull HttpServletResponse response, int hours); static void setExpiresDays(@NotNull HttpServletResponse response, int days); }
CacheHeader { public static void setExpiresHours(@NotNull HttpServletResponse response, int hours) { Date expiresDate = DateUtils.addHours(new Date(), hours); setExpires(response, expiresDate); } private  CacheHeader(); static boolean isNotModified(@NotNull Resource resource,
      @NotNull SlingHttpServletRequest request, @NotNull SlingHttpServletResponse response); static boolean isNotModified(@NotNull Resource resource,
      @NotNull SlingHttpServletRequest request, @NotNull SlingHttpServletResponse response, boolean setExpiresHeader); static boolean isNotModified(@NotNull ModificationDateProvider dateProvider,
      @NotNull SlingHttpServletRequest request, @NotNull SlingHttpServletResponse response); static boolean isNotModified(@NotNull ModificationDateProvider dateProvider,
      @NotNull SlingHttpServletRequest request, @NotNull SlingHttpServletResponse response, boolean setExpiresHeader); static void setNonCachingHeaders(@NotNull HttpServletResponse response); static void setExpires(@NotNull HttpServletResponse response, @Nullable Date date); static void setExpiresSeconds(@NotNull HttpServletResponse response, int seconds); static void setExpiresHours(@NotNull HttpServletResponse response, int hours); static void setExpiresDays(@NotNull HttpServletResponse response, int days);  }