|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface CookiePolicyHandler
This is the interface that a cookie policy handler must implement. A policy handler allows you to control which cookies are accepted and which are sent.
org.exoplatform.common.http.client.CookieModule#setCookiePolicyHandler(HTTPClient.CookiePolicyHandler)| Method Summary | |
|---|---|
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). |
| Method Detail |
|---|
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 cookie
boolean sendCookie(Cookie cookie,
RoRequest req)
cookie - the cookie in questionreq - the request this cookie is to be sent with
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||