Application internal links

I’d like to support internal links to my web application (eg a user could receive a confirmation email with a link to his purchase/reservation/whatever inside the app). I’m using Vaadin framework to build my web application GUI. I know Vaadin 7 will support this feature, but it was not released yet; therefore, I use Vaadin 6.

From the documentation, I see 2 methods:

  1. UriHandler Doc: https://vaadin.com/book/-/page/advanced.resources.html URL example: www.app.com/reservation/123

  2. UriFragmentUtility Doc: https://vaadin.com/book/-/page/advanced.urifu.html URL example: www.app.com#reservation123

I’ve built an example with the 2nd method and it works. It seems to be that I could achieve similar results with UriHandler, is that right? If so, what are the advantages and disadvantages of each method?

Thanks in advance.