public final class Session
extends java.lang.Object
Session
stores the cookie from the last successful call by a AbstractRestOperation
. Session
exists at the same time and will be reused for following calls. To delete the Session
call:
Session.destroy();This forces the
AbstractRestOperation
to recreate the Session
after the next successful call.
The create(String[])
method is internally called by the AbstractRestOperation
. This class is not meant to be extended by clients.
public java.lang.String getCookie()
public static Session get()
Session
. public static Session create(java.lang.String[] cookies)
cookies
- Session
or the existing one.public static void destroy()
Session
.AbstractRestOperation
to recreate the Session
after the next successful call.