Interface CachedPackUriProvider
public interface CachedPackUriProvider
Provider of URIs corresponding to cached packs. For use with the
"packfile-uris" feature.
- Since:
- 5.5
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic class
Information about a packfile. -
Method Summary
Modifier and TypeMethodDescriptiongetInfo
(CachedPack pack, Collection<String> protocolsSupported)
-
Method Details
-
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 existsprotocolsSupported
- 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
-