@Test public void testFormatWeakTag() throws Exception { assertNull(ResourceUtils.formatWeakTag(null)); assertEquals("W/\"123-456789\"", ResourceUtils.formatWeakTag("123-456789")); try { ResourceUtils.formatWeakTag("123\"456789"); fail(); } catch (IllegalArgumentException e) { } }
public static String formatWeakTag(String eTag) { String formattedTag = formatTag(eTag); if (formattedTag == null) { return null; } return "W/" + formattedTag; }
ResourceUtils { public static String formatWeakTag(String eTag) { String formattedTag = formatTag(eTag); if (formattedTag == null) { return null; } return "W/" + formattedTag; } }
ResourceUtils { public static String formatWeakTag(String eTag) { String formattedTag = formatTag(eTag); if (formattedTag == null) { return null; } return "W/" + formattedTag; } private  ResourceUtils(); }
ResourceUtils { public static String formatWeakTag(String eTag) { String formattedTag = formatTag(eTag); if (formattedTag == null) { return null; } return "W/" + formattedTag; } private  ResourceUtils(); static String getMappingForRequest(FacesContext context); static Date parseHttpDate(String s); static String formatHttpDate(Object object); static byte[] decodeBytesData(String encodedData); static Object decodeObjectData(String encodedData); static String encodeBytesData(byte[] data); static String encodeObjectData(Object data); static String encodeJSFURL(FacesContext context, String url); static Map<String, String> parseResourceParameters(String resourceName); static String decodeResourceURL(FacesContext context); static void copyStreamContent(InputStream is, OutputStream os); static String encodeURIQueryPart(String s); static Object saveResourceState(FacesContext context, Object resource); static void restoreResourceState(FacesContext context, Object resource, Object state); static Charset getCharsetFromContentType(String contentType); static String formatWeakTag(String eTag); static String formatTag(String eTag); static boolean matchTag(String eTag, String eTagHeaderValue); static long millisToSecond(long millisecond); static long secondToMillis(long second); }
ResourceUtils { public static String formatWeakTag(String eTag) { String formattedTag = formatTag(eTag); if (formattedTag == null) { return null; } return "W/" + formattedTag; } private  ResourceUtils(); static String getMappingForRequest(FacesContext context); static Date parseHttpDate(String s); static String formatHttpDate(Object object); static byte[] decodeBytesData(String encodedData); static Object decodeObjectData(String encodedData); static String encodeBytesData(byte[] data); static String encodeObjectData(Object data); static String encodeJSFURL(FacesContext context, String url); static Map<String, String> parseResourceParameters(String resourceName); static String decodeResourceURL(FacesContext context); static void copyStreamContent(InputStream is, OutputStream os); static String encodeURIQueryPart(String s); static Object saveResourceState(FacesContext context, Object resource); static void restoreResourceState(FacesContext context, Object resource, Object state); static Charset getCharsetFromContentType(String contentType); static String formatWeakTag(String eTag); static String formatTag(String eTag); static boolean matchTag(String eTag, String eTagHeaderValue); static long millisToSecond(long millisecond); static long secondToMillis(long second);  }