Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jersey-dev] Cookies not obtained from object org.glassfish.jersey.server.ContainerRequest

Hi Team,

Could you please help me with this ?

Thanks and Regards,
Sonali Dasgupta

On Thu, Apr 23, 2020 at 5:36 PM Sonali Dasgupta <sonalidasgupta95.2011@xxxxxxxxx> wrote:
Hi Team,

I am sending the following CURL request : curl -X POST "http://sdasgupt-t470.apac.tibco.com:8080/streams?callbackUrl=a" -H  "accept: application/json" -b  "value=a" -H  "Content-Type: application/json" -d "string"

In the above request I am passing the following cookie : "value=a" .

I have written a java class which extends org.glassfish.jersey.process.Inflector ,  and in the apply() method, I aim to process the request object of type org.glassfish.jersey.server.ContainerRequest. However I cannot obtain the cookies from the request. I have tried request.getCookies() and request.getRequestCookies() , however they return empty map values.

Please could you help me with this issue by pointing out how to access the cookies ? Shall greatly appreciate your help in this matter, since it is for an important project.

Thanks and Regards,
Sonali Dasgupta

Back to the top