public abstract class CefResourceRequestHandlerAdapter extends java.lang.Object implements CefResourceRequestHandler
构造器和说明 |
---|
CefResourceRequestHandlerAdapter() |
限定符和类型 | 方法和说明 |
---|---|
CefCookieAccessFilter |
getCookieAccessFilter(CefBrowser browser, CefFrame frame, CefRequest request)
Called on the IO thread before a resource is loaded.
(加载资源之前在IO线程上调用。)
|
CefResourceHandler |
getResourceHandler(CefBrowser browser, CefFrame frame, CefRequest request)
Called on the IO thread before a resource is loaded.
(加载资源之前在IO线程上调用。)
|
boolean |
onBeforeResourceLoad(CefBrowser browser, CefFrame frame, CefRequest request)
Called on the IO thread before a resource request is loaded.
(在加载资源请求之前在IO线程上调用。)
|
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.
(在IO线程上调用,以处理对具有未知协议组件的URL的请求。)
|
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.
(资源加载完成后在IO线程上调用。)
|
void |
onResourceRedirect(CefBrowser browser, CefFrame frame, CefRequest request, CefResponse response, StringRef new_url)
Called on the IO thread when a resource load is redirected.
(重定向资源负载时在IO线程上调用。)
|
boolean |
onResourceResponse(CefBrowser browser, CefFrame frame, CefRequest request, CefResponse response)
Called on the IO thread when a resource response is received.
(收到资源响应时在IO线程上调用。)
|
public CefCookieAccessFilter getCookieAccessFilter(CefBrowser browser, CefFrame frame, CefRequest request)
CefResourceRequestHandler
getCookieAccessFilter
在接口中
CefResourceRequestHandler
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.
(-请求本身。无法在此回调中修改。实例仅在此方法的范围内有效。)
public CefResourceHandler getResourceHandler(CefBrowser browser, CefFrame frame, CefRequest request)
CefResourceRequestHandler
getResourceHandler
在接口中
CefResourceRequestHandler
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.
(-请求本身。无法在此回调中修改。实例仅在此方法的范围内有效。)
public boolean onBeforeResourceLoad(CefBrowser browser, CefFrame frame, CefRequest request)
CefResourceRequestHandler
onBeforeResourceLoad
在接口中
CefResourceRequestHandler
browser
- 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)
CefResourceRequestHandler
onProtocolExecution
在接口中
CefResourceRequestHandler
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.
(-请求本身。无法在此回调中修改。实例仅在此方法的范围内有效。)
allowOsExecution
- Set to true to attempt execution via the registered OS protocol handler, if any.
(-设置为true以尝试通过注册的OS协议处理程序执行(如果有)。)
public void onResourceLoadComplete(CefBrowser browser, CefFrame frame, CefRequest request, CefResponse response, CefURLRequest.Status status, long receivedContentLength)
CefResourceRequestHandler
onResourceLoadComplete
在接口中
CefResourceRequestHandler
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.
(-请求响应。无法在此回调中修改。实例仅在此方法的范围内有效。)
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)
CefResourceRequestHandler
onResourceRedirect
在接口中
CefResourceRequestHandler
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 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)
CefResourceRequestHandler
onResourceResponse
在接口中
CefResourceRequestHandler
browser
- 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.
(-请求响应。无法在此回调中修改。实例仅在此方法的范围内有效。)