CookiePolicy implementations decide which cookies should be accepted and which should be rejected. Three pre-defined policy implementations are provided, namely ACCEPT_ALL, ACCEPT_NONE and ACCEPT_ORIGINAL_SERVER.
See RFC 2965 sec. 3.3 and 7 for more detail.
CookiePolicy implementations decide which cookies should be accepted and which should be rejected. Three pre-defined policy implementations are provided, namely ACCEPT_ALL, ACCEPT_NONE and ACCEPT_ORIGINAL_SERVER. See RFC 2965 sec. 3.3 and 7 for more detail.
(should-accept? this uri cookie)
Will be called to see whether or not this cookie should be accepted.
uri - the URI to consult accept policy with - java.net.URI
cookie - the HttpCookie object in question - java.net.HttpCookie
returns: true if this cookie should be accepted;
otherwise, false - boolean
Will be called to see whether or not this cookie should be accepted. uri - the URI to consult accept policy with - `java.net.URI` cookie - the HttpCookie object in question - `java.net.HttpCookie` returns: true if this cookie should be accepted; otherwise, false - `boolean`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close