Streaming between two URLs

Hello,

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: http://demo.vaadin.com/book-examples-vaadin7/book/#advanced.printing.pdfgeneration

More elegant solution might be using an URL rewriting filter such as this http://tuckey.org/urlrewrite/