public static MediaType wildcard ( String type , String suffix ) { requireNonNull ( type , TYPE_CANNOT_BE_NULL ) ; requireNonNull ( suffix , "Suffix cannot be null" ) ; return new ImmutableMediaType ( MediaTypes . preferredSyntax ( ) , type , WILDCARD_TYPE , suffix , null ) ; }
Create a wildcard structured - syntax media type for a given primary type