users@jersey.java.net

[Jersey] Having sessions and cookies in Jersey Test Framework

From: Christof Doll <christof.doll_at_fortis-it.de>
Date: Thu, 30 Aug 2012 18:19:37 +0200

Hi,

in my current project I use a JaxRS interface between a JavaScript client and a Java server. Users authenticate via a form post. Afterwards the session id is stored in a cookie. I know that this is not restful. However, I don't want authentication upon each single request.

Is there any way to test my application using the Jersey Test Framework? I haven't found any possibility to have control over sessions and cookies.

Best regards,
Christof