/** * Returns a parsed <code>Content-Type</code> header. * * @param value The <code>Content-Type</code> header string. * @return The parsed <code>Content-Type</code> header, or <jk>null</jk> if the string was null. */ public static ContentType forString(String value) { if (value == null) return null; ContentType ct = cache.get(value); if (ct == null) ct = cache.put(value, new ContentType(value)); return ct; }
/** * Returns a parsed <code>Content-Type</code> header. * * @param value The <code>Content-Type</code> header string. * @return The parsed <code>Content-Type</code> header, or <jk>null</jk> if the string was null. */ public static ContentType forString(String value) { if (value == null) return null; ContentType ct = cache.get(value); if (ct == null) ct = cache.put(value, new ContentType(value)); return ct; }
/** * Returns a parsed <code>Content-Type</code> header. * * @param value The <code>Content-Type</code> header string. * @return The parsed <code>Content-Type</code> header, or <jk>null</jk> if the string was null. */ public static ContentType forString(String value) { if (value == null) return null; ContentType ct = cache.get(value); if (ct == null) ct = cache.put(value, new ContentType(value)); return ct; }