Parsing URI components

42 views
Skip to first unread message

Kay Pac

unread,
Aug 17, 2016, 2:03:17 PM8/17/16
to GWT Users
Hi,

I would like to parse the UrI for the host page to populate arguments for the application. I do not know how to do this - I can use Document.get().getURL()  but there is no jdk URI emulation and UriUtils and/or the URL class don't have methods to parse the query string. Any help?

Kay

Gilberto

unread,
Aug 17, 2016, 3:10:58 PM8/17/16
to GWT Users
I'm sure there are other implementations around, but I created my own parser: https://github.com/gilberto-torrezan/gwt-views/blob/master/src/main/java/com/github/gilbertotorrezan/gwtviews/client/URLToken.java (take a look at the setToken method).

It is part of gwt-views project, that helps you handle the URL, history and views management. Maybe it can help you out :-)

(Of course, before choosing a framework to use in your projects, make a research on which one can help you most.)

Jens

unread,
Aug 17, 2016, 3:35:15 PM8/17/16
to GWT Users

Pablo Nussembaum

unread,
Aug 17, 2016, 6:20:46 PM8/17/16
to google-we...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages