public Map < String , String > resolveVariants ( HttpServletRequest request ) { Map < String , String > variants = new TreeMap <> ( ) ; for ( VariantResolver resolver : variantResolvers . values ( ) ) { String value = resolver . resolveVariant ( request ) ; if ( value != null ) { variants . put ( resolver . getVariantType ( ) , value ) ; } } return variants ; }
Resolve the variants for the request passed in parameter