Package org.cef.handler
Class CefCookieAccessFilterAdapter
- java.lang.Object
-
- org.cef.handler.CefCookieAccessFilterAdapter
-
- All Implemented Interfaces:
CefCookieAccessFilter
public abstract class CefCookieAccessFilterAdapter extends java.lang.Object implements CefCookieAccessFilter
An abstract adapter class for cookie access filter events. The methods in this class are empty. This class exists as convenience for creating handler objects.
-
-
Constructor Summary
Constructors Constructor Description CefCookieAccessFilterAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canSaveCookie(CefBrowser browser, CefFrame frame, CefRequest request, CefResponse response, CefCookie cookie)
Called on the IO thread after a resource response is received.boolean
canSendCookie(CefBrowser browser, CefFrame frame, CefRequest request, CefCookie cookie)
Called on the IO thread before a resource request is sent.
-
-
-
Method Detail
-
canSendCookie
public boolean canSendCookie(CefBrowser browser, CefFrame frame, CefRequest request, CefCookie cookie)
Description copied from interface:CefCookieAccessFilter
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.- Specified by:
canSendCookie
in interfaceCefCookieAccessFilter
- 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
public boolean canSaveCookie(CefBrowser browser, CefFrame frame, CefRequest request, CefResponse response, CefCookie cookie)
Description copied from interface:CefCookieAccessFilter
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.- Specified by:
canSaveCookie
in interfaceCefCookieAccessFilter
- 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.
-
-