public interface CookiePolicyHandler
Title: Framework Support Library
Description: This is the interface that a cookie policy handler must implement.
Copyright: Copyright (c) 2012
Company: StreamScape Technologies
CookieModule.setCookiePolicyHandler(com.streamscape.lib.http.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 withCopyright © 2015-2024 StreamScape Technologies. All rights reserved.