Esiste una funzione comune (in commons apache o simile) per creare mappe da stringhe tipo parametro di query?common java-function per creare mappe da stringhe
a specifici:
Variante un (Querystring)
s="a=1&b=3"
=> Utils.mapFunction(s, '&', '=')
=> (Hash)Map { a:1; b:3 }
Variante B (CacheControl-Header)
s="max-age=3600;must-revalidate"
=> Utils.mapFunction(s, ';', '=')
=> (Hash)Map { max-age:3600; must-revalidate:true }
Non voglio reinventare la ruota.
Grazie