acceptsUrl

abstract fun acceptsUrl(url: String): Boolean

Returns true if this ResourceProvider can handle the given relative or absolute URL.

Note that this method cannot be used to check if a resource exists. Calling fetch() with the given URL can still fail even if this method returns true.

For example: An HTTP ResourceProvider's acceptsUrl() method may return true for all http or https URLs, indicating that it can handle those protocols. However, calling fetch() with the URL fails if no resource exists for the URL. When the HTTP Resource provider's acceptsUrl() method is passed the URL "com.colibrio://xyz/index.html", it returns false as it does not know how to handle the protocol "com.colibrio".