public interface CookiePolicyHandler
CookieModule.setCookiePolicyHandler(HTTPClient.CookiePolicyHandler)
Modifier and Type | Method and Description |
---|---|
boolean |
acceptCookie(Cookie cookie,
RoRequest req,
RoResponse resp)
This method is called for each cookie that a server tries to set via
the Set-Cookie header.
|
boolean |
sendCookie(Cookie cookie,
RoRequest req)
This method is called for each cookie that is eligible for sending
with a request (according to the matching rules for the path, domain,
protocol, etc).
|
boolean acceptCookie(Cookie cookie, RoRequest req, RoResponse resp)
cookie
- the cookie in questionreq
- the request sent which prompted the responseresp
- the response which is trying to set the cookieboolean sendCookie(Cookie cookie, RoRequest req)
cookie
- the cookie in questionreq
- the request this cookie is to be sent with