Class HttpCookieStore.Empty
java.lang.Object
org.eclipse.jetty.http.HttpCookieStore.Empty
- All Implemented Interfaces:
HttpCookieStore
- Enclosing interface:
HttpCookieStore
An implementation of HttpCookieStore that does not store any cookie.
-
Nested Class Summary
Nested classes/interfaces inherited from interface HttpCookieStore
HttpCookieStore.Default, HttpCookieStore.Empty -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanadd(URI uri, HttpCookie cookie) Adds a cookie to this store, if possible.all()booleanclear()Removes all the cookies from this store.Returns the cookies that match the givenURI.booleanremove(URI uri, HttpCookie cookie) Removes the cookie associated with the givenURI.
-
Constructor Details
-
Empty
public Empty()
-
-
Method Details
-
add
Description copied from interface:HttpCookieStoreAdds a cookie to this store, if possible.
The cookie may not be added for various reasons; for example, it may be already expired, or its domain attribute does not match that of the URI, etc.
The cookie is associated with the given
URI, so that a call toHttpCookieStore.match(URI)returns the cookie only if the URIs match.- Specified by:
addin interfaceHttpCookieStore- Parameters:
uri- theURIassociated with the cookiecookie- the cookie to add- Returns:
- whether the cookie has been added
-
all
- Specified by:
allin interfaceHttpCookieStore- Returns:
- all the cookies
-
match
Description copied from interface:HttpCookieStoreReturns the cookies that match the given
URI.- Specified by:
matchin interfaceHttpCookieStore- Parameters:
uri- theURIto match against- Returns:
- a list of cookies that match the given
URI
-
remove
Description copied from interface:HttpCookieStoreRemoves the cookie associated with the given
URI.- Specified by:
removein interfaceHttpCookieStore- Parameters:
uri- theURIassociated with the cookie to removecookie- the cookie to remove- Returns:
- whether the cookie has been removed
-
clear
public boolean clear()Description copied from interface:HttpCookieStoreRemoves all the cookies from this store.
- Specified by:
clearin interfaceHttpCookieStore- Returns:
- whether the store modified by this call
-