given the map of variables , expands this template into a uri . the map keys represent variable names , the map values variable values . the order of variables is not significant . example : uritemplate template = new uritemplate `` http://example.com/hotels/ hotel / bookings / booking '' ; map < string , string > urivariables = new hashmap < string , string > ; urivariables.put `` booking '' , `` 42 '' ; urivariables.put `` hotel '' , `` rest & relax '' ; system.out.println template.expand urivariables ; will print : http://example.com/hotels/rest%20%26%20relax/bookings/42 concode_field_sep UriComponents uriComponents concode_elem_sep String uriTemplate concode_elem_sep Pattern pattern concode_elem_sep List<String> variableNames concode_elem_sep Pattern matchPattern concode_field_sep String quote concode_elem_sep Pattern getMatchPattern concode_elem_sep Map<String,String> match concode_elem_sep List<String> getVariableNames concode_elem_sep List<String> getVariableNames concode_elem_sep String toString concode_elem_sep TemplateInfo parse concode_elem_sep boolean matches
URI function ( Map < String , ? > arg0 ) { UriComponents loc0 = this . uriComponents . expand ( arg0 ) ; UriComponents loc1 = loc0 . encode ( ) ; return loc1 . toUri ( ) ; }