src/main/java/js/http/ContentType.java
public static ContentType valueOf(String value) {
		if (value == null) {
			return ContentType.APPLICATION_JSON;
		}
		return new ContentType(value);
	}
public static ContentType valueOf(String value) {
		if (value == null) {
			return ContentType.APPLICATION_JSON;
		}
		return new ContentType(value);
	}
public static ContentType valueOf ( String value ) { if ( value == null ) { return ContentType . APPLICATION_JSON ; } return new ContentType ( value ) ; }
Parses content type value and returns newly created instance. Given value should obey syntax described by this class.
This factory method just delegates {@link #ContentType(String)}. If <code>value</code> argument is null uses
{@link #APPLICATION_JSON} as default.

@param value content type string value with syntax described by this class, possible null.
@return content type instance for given value.
@throws SyntaxException if <code>value</code> does not respect syntax described by this class.
Parses content type value and returns newly created instance . Given value should obey syntax described by this class . This factory method just delegates { @link #ContentType ( String ) } . If <code > value< / code > argument is null uses { @link #APPLICATION_JSON } as default .