DataSpec resolveDataSpec(DataSpec dataSpec) throws IOExceptionResolves a
DataSpecbefore forwarding it to the wrapped
DataSource. This method is allowed to block until the
DataSpechas been resolved.
Note that this method is called for every new connection, so caching of results is recommended, especially if network operations are involved.
resolveReportedUriResolves a URI reported by
DataSource.getUri()for event reporting and caching purposes.
Implementations do not need to overwrite this method unless they want to change the reported URI.
This method is not allowed to block.
uri- The URI as reported by
- The resolved URI used for event reporting and caching.