Package org.cef.handler
Interface CefCookieAccessFilter
-
- All Known Implementing Classes:
CefCookieAccessFilterAdapter
public interface CefCookieAccessFilterImplement this interface to filter cookies that may be sent or received from resource requests. The methods of this class will be called on the IO thread.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancanSaveCookie(CefBrowser browser, CefFrame frame, CefRequest request, CefResponse response, CefCookie cookie)Called on the IO thread after a resource response is received.booleancanSendCookie(CefBrowser browser, CefFrame frame, CefRequest request, CefCookie cookie)Called on the IO thread before a resource request is sent.
-
-
-
Method Detail
-
canSendCookie
boolean canSendCookie(CefBrowser browser, CefFrame frame, CefRequest request, CefCookie cookie)
Called on the IO thread before a resource request is sent. The |browser| and |frame| values represent the source of the request, and may be null for requests originating from service workers or CefURLRequest.- Parameters:
browser- The corresponding browser.frame- The frame generating the event. Instance only valid within the scope of this method.request- The request itself. Cannot be modified in this callback. Instance only valid within the scope of this method.cookie- The cookie that will be sent with the request. Cannot be modified in this callback. Instance only valid within the scope of this method.- Returns:
- True if the cookie can be sent or false otherwise.
-
canSaveCookie
boolean canSaveCookie(CefBrowser browser, CefFrame frame, CefRequest request, CefResponse response, CefCookie cookie)
Called on the IO thread after a resource response is received. The |browser| and |frame| values represent the source of the request, and may be null for requests originating from service workers or CefURLRequest.- Parameters:
browser- The corresponding browser.frame- The frame generating the event. Instance only valid within the scope of this method.request- The request itself. Cannot be modified in this callback. Instance only valid within the scope of this method.response- The request response. Cannot be modified in this callback. Instance only valid within the scope of this method.cookie- The cookie that will be sent with the request. Cannot be modified in this callback. Instance only valid within the scope of this method.- Returns:
- True if the cookie can be saved or false otherwise.
-
-