ProtocolHandler allows implementing custom resource loading for a specific protocol.
More...
|
| Result | handle (ResourceManager resourceManager, String url, String protocol, String hostname, String path) |
| | Takes a resource URL and either creates a new resource or a load task that can create the resource. More...
|
| |
ProtocolHandler allows implementing custom resource loading for a specific protocol.
See ResourceManager#registerProtocolHandler.
◆ handle()
| Result handle |
( |
ResourceManager |
resourceManager, |
|
|
String |
url, |
|
|
String |
protocol, |
|
|
String |
hostname, |
|
|
String |
path |
|
) |
| |
Takes a resource URL and either creates a new resource or a load task that can create the resource.
- Parameters
-
| resourceManager | The resource manager. |
| url | The full URL of the resource in the form of "protocol://hostname/path". |
| protocol | Extracted protocol part of the resource URL. |
| hostname | Extracted hostname part of the resource URL. |
| path | Extracted path part of the resource URL. |
- Returns
- An instance of ProtocolHandler.Result holding the created Resource or LoadTask.