Hi,
I wrote my own UIProvider and need a way to get the request URI from an UIProviderEvent.
Right now my code looks like this:
val request = event.request as VaadinServletRequest
val urlPattern = request.requestURI
I would like to avoid the explicit cast of the given VaadinRequest to a VaadinServletRequest, but I could not find any method in VaadinRequest to get the currently used URI.
Is there a way that I’m not aware of? Why is there no getRequestURI() method in VaadinRequest?
Any advice is highly appreciated.
Kind regards,
Thomas