Magasin @PathParam valeurs d'appel RESTE dans une liste ou un tableau

Ma fonction ressemble à ceci:

    @PUT
    @Path("property/{uuid}/{key}/{value}")
    @Produces("application/xml")    
    public Map<String,ValueEntity> updateProperty(@Context HttpServletRequest request,
            @PathParam("key") String key,
            @PathParam("value") String value,
            @PathParam("uuid") String uuid) throws Exception {
                                       ...
                             }

Je dois le modifier, de sorte qu'il accepte indéterminée(ou plusieurs) liste de paires clé-valeur d'appel RESTE, quelque chose comme

@Path("property/{uuid}/{key1}/{value1}/{key2}/{value2}/{key3}/{value3}/...")

Est-il possible de les stocker dans un tableau ou d'une liste, donc je n'ai pas la liste des dizaines de @PathParams et les paramètres, pour éviter cela:

@PathParam("key1") String key1,
@PathParam("key2") String key2,
@PathParam("key3") String key3,

OriginalL'auteur Dalai Llama | 2014-11-18