-
1. Re: ConversationScoped - cid from http header instead of query parameters
mkouba Sep 7, 2016 7:11 AM (in response to poiu77)Hi Darek, this is not possible right now. The spec defines that
cid
must be either in query string or in posted form data. Maybe you could use a Servlet filter, wrap the request and extract the conversation id from an HTTP header? -
2. Re: ConversationScoped - cid from http header instead of query parameters
poiu77 Sep 7, 2016 8:24 AM (in response to mkouba)Hi Martin.
Thanks for response.
I've tried to use HttpServletRequestWrapper in @WebFilter but without success. I suppose my implementation was not visible during determining "cid" in ConversationContextActivator. There was HttpServletRequest object visible instead of my wrapper.
I think I have to use default way for transport "cid" in http parameter.
Best Regards, Darek.
-
3. Re: ConversationScoped - cid from http header instead of query parameters
mkouba Sep 8, 2016 3:13 AM (in response to poiu77)Oh yes, I've forgotten to mention that you'll have to map your filter before the "CDI Conversation Filter". See also the CDI Conversation filter section in the docs.
-
4. Re: ConversationScoped - cid from http header instead of query parameters
poiu77 Sep 13, 2016 8:14 AM (in response to mkouba)Hi Martin.
Now it's working as expected. Thanks a lot.
Best Regards, Darek.
-
5. Re: ConversationScoped - cid from http header instead of query parameters
mkouba Sep 13, 2016 8:19 AM (in response to poiu77)That's great, you're welcome.