Class NanoHTTPD.CookieHandler
java.lang.Object
fi.iki.elonen.NanoHTTPD.CookieHandler
- Enclosing class:
NanoHTTPD
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidSet a cookie with an expiration date from a month ago, effectively deleting it on the client side.iterator()Read a cookie from the HTTP Headers.voidset(NanoHTTPD.Cookie cookie) voidSets a cookie.voidunloadQueue(NanoHTTPD.Response response) Internally used by the webserver to add all queued cookies into the Response's HTTP Headers.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Iterable
forEach, spliterator
-
Field Details
-
cookies
-
queue
-
-
Constructor Details
-
CookieHandler
-
-
Method Details
-
delete
Set a cookie with an expiration date from a month ago, effectively deleting it on the client side.- Parameters:
name- The cookie name.
-
iterator
-
read
-
set
-
set
-
unloadQueue
Internally used by the webserver to add all queued cookies into the Response's HTTP Headers.- Parameters:
response- The Response object to which headers the queued cookies will be added.
-