Alex Rivera | Logout

What is the idiomatic way to compose a URL or URI in Java?

Asked 2009-05-19T14:29:54.377
131

How do I build a URL or a URI in Java? Is there an idiomatic way, or libraries that easily do this?

I need to allow starting from a request string, parse/change various URL parts (scheme, host, path, query string) and support adding and automatically encoding query parameters.

Edit
Report

1 Answer

57
answered 2009-05-19T14:33:14.713

Your Answer