public static List < Variant > createVariants ( MediaType ... mediaTypes ) { return Variant . VariantListBuilder . newInstance ( ) . mediaTypes ( mediaTypes ) . encodings ( ) . languages ( ) . add ( ) . build ( ) ; }
Get a list of acceptable variants . Current implementation only leverages media type for the specification of variants .