Interface CachedPackUriProvider


  • public interface CachedPackUriProvider
    Provider of URIs corresponding to cached packs. For use with the "packfile-uris" feature.
    Since:
    5.5
    • Method Detail

      • getInfo

        @Nullable
        CachedPackUriProvider.PackInfo getInfo​(CachedPack pack,
                                               Collection<String> protocolsSupported)
                                        throws IOException
        Parameters:
        pack - the cached pack for which to check if a corresponding URI exists
        protocolsSupported - the protocols that the client has declared support for; if a URI is returned, it must be of one of these protocols
        Returns:
        if a URI corresponds to the cached pack, an object containing the URI and some other information; null otherwise
        Throws:
        IOException - implementations may throw this
        Since:
        5.5