C
C
click_f2017-01-18 19:47:38
Java
click_f, 2017-01-18 19:47:38

What are the ways to work with cookies in java?

As part of working with REST, it is required to keep the session and store cookies accordingly.
Question: what is the best way to implement this?
Ideas: use RequestInterceptor to add cookies to requests, and store them in the form of a list directly in memory. Is this a good solution or could it be better?
I found the standard CookieStore type, but I don’t understand how it can be better than the previous method.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Evgeny Shklyaev, 2017-03-07
@lolchtoo

It is normal practice to keep the session in memory. For example Map

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question