public interface CefResourceHandler
| Modifier and Type | Method and Description |
|---|---|
void |
cancel()
Request processing has been canceled.
|
void |
getResponseHeaders(CefResponse response,
IntRef responseLength,
StringRef redirectUrl)
Retrieve response header information.
|
boolean |
processRequest(CefRequest request,
CefCallback callback)
Begin processing the request.
|
boolean |
readResponse(byte[] dataOut,
int bytesToRead,
IntRef bytesRead,
CefCallback callback)
Read response data.
|
void cancel()
void getResponseHeaders(CefResponse response, IntRef responseLength, StringRef redirectUrl)
response - The request response that should be returned. Instance only valid within the
scope of this method.responseLength - Optionally set the response length if known.redirectUrl - Optionally redirect the request to a new URL.boolean processRequest(CefRequest request, CefCallback callback)
request - The request itself. Cannot be modified in this callback. Instance only valid
within the scope of this method.callback - Callback to continue or cancel the request.boolean readResponse(byte[] dataOut,
int bytesToRead,
IntRef bytesRead,
CefCallback callback)
dataOut - Write data to this buffer.bytesToRead - Size of the buffer.bytesRead - Number of bytes written to the buffer.callback - Callback to execute if data will be available asynchronously.