All,

I feel kind of stupid to ask such a simple question but I couldn't find the right library to do this simple job (and even asking around didn't return much valuable information).

I would like to provide a handy way to (only) create a string URL definition, manage the parameters and handle the encoding. Something like:

  URLDefinition def = new URLDefinition("http://google.com";);
  def.addParameter("lang", "de");
  def.addParameter("country", "ch");
  String a = def.toString();

and a is magically "http://google.com?lang=de&country=ch"; :-)

I haven't seen anything ready-to-use in the various commons libraries (HttpParams is the closest I could find). Is there anything out there that I've been missing or should I simply roll my own version?

Best regards,

-Vladimir



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to