Thursday, 15 September 2011

java - MultivaluedMapImpl() with Jersey 2.9 -



java - MultivaluedMapImpl() with Jersey 2.9 -

i'm trying create 'key, value' pair using multivaluedmap (jersey 2.9 in eclipse) somehow not able find multivaluedmapimpl(). thought ?

thanks.

client client = clientbuilder.newclient(); webtarget webtarget =client.target("http://localhost:8080").path("/usr/home/create/"); multivaluedmap<string, string> queryparams = new multivaluedmapimpl(); queryparams.add("xyz", abc);

you can utilize multivaluedstringmap class extends javax.ws.rs.core.multivaluedhashmap<java.lang.string, java.lang.string>

java eclipse jersey-2.0

No comments:

Post a Comment