public class ThreadLocalCookieStore extends Object implements CookieStore
Constructor and Description |
---|
ThreadLocalCookieStore() |
Modifier and Type | Method and Description |
---|---|
void |
add(URI uri,
HttpCookie cookie) |
List<HttpCookie> |
get(URI uri) |
List<HttpCookie> |
getCookies() |
CookieStore |
getCookieStore()
获取本线程下的CookieStore
|
List<URI> |
getURIs() |
boolean |
remove(URI uri,
HttpCookie cookie) |
boolean |
removeAll() |
ThreadLocalCookieStore |
removeCurrent()
移除当前线程的Cookie
|
public CookieStore getCookieStore()
public ThreadLocalCookieStore removeCurrent()
public void add(URI uri, HttpCookie cookie)
add
in interface CookieStore
public List<HttpCookie> get(URI uri)
get
in interface CookieStore
public List<HttpCookie> getCookies()
getCookies
in interface CookieStore
public List<URI> getURIs()
getURIs
in interface CookieStore
public boolean remove(URI uri, HttpCookie cookie)
remove
in interface CookieStore
public boolean removeAll()
removeAll
in interface CookieStore
Copyright © 2024. All rights reserved.