public final class WatsonCookieJar
extends java.lang.Object
implements okhttp3.CookieJar
JavaNetCookieJar
and ignore Speech to Text sessions for session less requests.Constructor and Description |
---|
WatsonCookieJar(java.net.CookieHandler cookieHandler)
Instantiates a new Watson cookie jar.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<okhttp3.Cookie> |
loadForRequest(okhttp3.HttpUrl url) |
void |
saveFromResponse(okhttp3.HttpUrl url,
java.util.List<okhttp3.Cookie> cookies) |
public WatsonCookieJar(java.net.CookieHandler cookieHandler)
cookieHandler
- the cookie handlerpublic void saveFromResponse(okhttp3.HttpUrl url, java.util.List<okhttp3.Cookie> cookies)
saveFromResponse
in interface okhttp3.CookieJar
public java.util.List<okhttp3.Cookie> loadForRequest(okhttp3.HttpUrl url)
loadForRequest
in interface okhttp3.CookieJar