ProtocolHandler allows implementing custom resource loading for a specific protocol. More...
Classes | |
| class | Result |
| Holds the result of ProtocolHandler handle callback. More... | |
Public Member Functions | |
| 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. | |
ProtocolHandler allows implementing custom resource loading for a specific protocol.
See com.rightware.kanzi.ResourceManager#registerProtocolHandler.
| 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.
| 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. |