public abstract class CefResourceRequestHandlerAdapter extends java.lang.Object implements CefResourceRequestHandler
| Constructor and Description |
|---|
CefResourceRequestHandlerAdapter() |
| Modifier and Type | Method and Description |
|---|---|
CefCookieAccessFilter |
getCookieAccessFilter(CefBrowser browser,
CefFrame frame,
CefRequest request)
Called on the IO thread before a resource is loaded.
|
CefResourceHandler |
getResourceHandler(CefBrowser browser,
CefFrame frame,
CefRequest request)
Called on the IO thread before a resource is loaded.
|
boolean |
onBeforeResourceLoad(CefBrowser browser,
CefFrame frame,
CefRequest request)
Called on the IO thread before a resource request is loaded.
|
void |
onProtocolExecution(CefBrowser browser,
CefFrame frame,
CefRequest request,
BoolRef allowOsExecution)
Called on the IO thread to handle requests for URLs with an unknown protocol component.
|
void |
onResourceLoadComplete(CefBrowser browser,
CefFrame frame,
CefRequest request,
CefResponse response,
CefURLRequest.Status status,
long receivedContentLength)
Called on the IO thread when a resource load has completed.
|
void |
onResourceRedirect(CefBrowser browser,
CefFrame frame,
CefRequest request,
CefResponse response,
StringRef new_url)
Called on the IO thread when a resource load is redirected.
|
boolean |
onResourceResponse(CefBrowser browser,
CefFrame frame,
CefRequest request,
CefResponse response)
Called on the IO thread when a resource response is received.
|
public CefCookieAccessFilter getCookieAccessFilter(CefBrowser browser, CefFrame frame, CefRequest request)
CefResourceRequestHandlergetCookieAccessFilter in interface CefResourceRequestHandlerbrowser - 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.public CefResourceHandler getResourceHandler(CefBrowser browser, CefFrame frame, CefRequest request)
CefResourceRequestHandlergetResourceHandler in interface CefResourceRequestHandlerbrowser - 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.public boolean onBeforeResourceLoad(CefBrowser browser, CefFrame frame, CefRequest request)
CefResourceRequestHandleronBeforeResourceLoad in interface CefResourceRequestHandlerbrowser - The corresponding browser.frame - The frame generating the event. Instance only valid within the scope of this
method.request - The request itself. May be modified in this callback. Instance only valid
within the scope of this method.public void onProtocolExecution(CefBrowser browser, CefFrame frame, CefRequest request, BoolRef allowOsExecution)
CefResourceRequestHandleronProtocolExecution in interface CefResourceRequestHandlerbrowser - 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.allowOsExecution - Set to true to attempt execution via the registered
OS protocol handler, if any.public void onResourceLoadComplete(CefBrowser browser, CefFrame frame, CefRequest request, CefResponse response, CefURLRequest.Status status, long receivedContentLength)
CefResourceRequestHandleronResourceLoadComplete in interface CefResourceRequestHandlerbrowser - 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.status - The load completion status.receivedContentLength - The number of bytes read.public void onResourceRedirect(CefBrowser browser, CefFrame frame, CefRequest request, CefResponse response, StringRef new_url)
CefResourceRequestHandleronResourceRedirect in interface CefResourceRequestHandlerbrowser - 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 response that resulted in the redirect. Cannot be modified in this
callback. Instance only valid within the scope of this method.new_url - Contains the new URL and can be changed if desired.public boolean onResourceResponse(CefBrowser browser, CefFrame frame, CefRequest request, CefResponse response)
CefResourceRequestHandleronResourceResponse in interface CefResourceRequestHandlerbrowser - The corresponding browser.frame - The frame generating the event. Instance only valid within the scope of this
method.request - The request itself. May 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.