jeudi 5 mars 2015

How to parse the 'Cookie' header into `javax.servlet.http.Cookie` with Spring?

I want to parse the value of the cookie header from a http request, into a javax.servlet.http.Cookie instance.


Example, Cookie in a request:



Cookie: HSID=AYQEVnDKrdst; Domain=.foo.com; Path=/aaa; HttpOnly


Does spring provided any utils to parse it easily? I don't want to parse it manually or involve some other libraries


Aucun commentaire:

Enregistrer un commentaire