Streaming between two URLs


I have a backend server, which is communicating with my vaadin app with wsdl. From that backend I get an url of a pdf. I’d like to generate a new custom url based on the user session, and stream between the pdf url and the newly generated one, so the original url could be “hidden”.

Do you guys have a solution for this problem?

Thx, for your help!

I think it is possible by first reading the pdf in your Vaadin application and then streaming it out.
An example of pdf streaming:

More elegant solution might be using an URL rewriting filter such as this