|
Oracle Application Server 10g HTTPClient API Reference 10g Release 2(10.1.2) B14020-01 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
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.
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 |
public 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
public boolean sendCookie(Cookie cookie,
RoRequest req)
cookie - the cookie in questionreq - the request this cookie is to be sent with
|
Oracle Application Server 10g HTTPClient API Reference 10g Release 2(10.1.2) B14020-01 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||