public static MediaType of ( String type , String subtype ) { requireNonNull ( type , TYPE_CANNOT_BE_NULL ) ; requireNonNull ( subtype , "Subtype cannot be null" ) ; return fromString ( type + "/" + subtype ) ; }
Create a media type