@Test public void testSetPreventionCachingHeadersWithNullResponse() { try { ResponseUtils.setPreventionCachingHeaders(null); } catch (Exception ex) { ex.printStackTrace(); fail(); } }
public static void setPreventionCachingHeaders( HttpServletResponse response) { if (response != null) { response.setHeader(HEADER_PRAGMA, "no-cache"); response.setDateHeader(HEADER_EXPIRES, 1L); response.setHeader(HEADER_CACHE_CONTROL, "private,no-store,no-cache,must-revalidate"); } }
ResponseUtils { public static void setPreventionCachingHeaders( HttpServletResponse response) { if (response != null) { response.setHeader(HEADER_PRAGMA, "no-cache"); response.setDateHeader(HEADER_EXPIRES, 1L); response.setHeader(HEADER_CACHE_CONTROL, "private,no-store,no-cache,must-revalidate"); } } }
ResponseUtils { public static void setPreventionCachingHeaders( HttpServletResponse response) { if (response != null) { response.setHeader(HEADER_PRAGMA, "no-cache"); response.setDateHeader(HEADER_EXPIRES, 1L); response.setHeader(HEADER_CACHE_CONTROL, "private,no-store,no-cache,must-revalidate"); } } private  ResponseUtils(); }
ResponseUtils { public static void setPreventionCachingHeaders( HttpServletResponse response) { if (response != null) { response.setHeader(HEADER_PRAGMA, "no-cache"); response.setDateHeader(HEADER_EXPIRES, 1L); response.setHeader(HEADER_CACHE_CONTROL, "private,no-store,no-cache,must-revalidate"); } } private  ResponseUtils(); static void setPreventionCachingHeaders(
            HttpServletResponse response); }
ResponseUtils { public static void setPreventionCachingHeaders( HttpServletResponse response) { if (response != null) { response.setHeader(HEADER_PRAGMA, "no-cache"); response.setDateHeader(HEADER_EXPIRES, 1L); response.setHeader(HEADER_CACHE_CONTROL, "private,no-store,no-cache,must-revalidate"); } } private  ResponseUtils(); static void setPreventionCachingHeaders(
            HttpServletResponse response);  }