Design pattern to handle an asynchronous response in Java

前端 未结 5 2358
遥遥无期
遥遥无期 2021-01-30 18:51

I read answers from similar Q&A

How do you create an asynchronous HTTP request in JAVA? | Asynchronous programming design pattern |
AsyncTask Android - Design P

5条回答
  •  情深已故
    2021-01-30 19:24

    If you want a page flow in a web application, you have to handle in the web way : storing some data either in the session, or cookies or hidden fields, etc.

    The problem you're trying to tackle, as far as I understand it, doesn't come from asynchronousness but from the stateless http protocole.

    Regards, Stéphane

提交回复
热议问题