Class UrlAvatarCacheSource
java.lang.Object
com.cloudbees.jenkins.plugins.bitbucket.avatars.UrlAvatarCacheSource
- All Implemented Interfaces:
AvatarCacheSource
Basic URL based Cache Source - Replacement for original functionality
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.cloudbees.jenkins.plugins.bitbucket.avatars.AvatarCacheSource
AvatarCacheSource.AvatarImage
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
UrlAvatarCacheSource
-
-
Method Details
-
canFetch
public boolean canFetch()Description copied from interface:AvatarCacheSource
Make sure we can fetch- Specified by:
canFetch
in interfaceAvatarCacheSource
- Returns:
- true if can fetch
-
fetch
public AvatarCacheSource.AvatarImage fetch(com.cloudbees.plugins.credentials.common.StandardCredentials credentials) Description copied from interface:AvatarCacheSource
Fetch image from source- Specified by:
fetch
in interfaceAvatarCacheSource
- Parameters:
credentials
- the credentials to use- Returns:
- AvatarImage object
-
fetch
- Specified by:
fetch
in interfaceAvatarCacheSource
- Returns:
- AvatarImage object
-
hashKey
Description copied from interface:AvatarCacheSource
Get unique hashKey for this item- Specified by:
hashKey
in interfaceAvatarCacheSource
- Returns:
- AvatarImage object
-