Class UrlAvatarCacheSource

  • All Implemented Interfaces:

    public class UrlAvatarCacheSource
    extends Object
    implements AvatarImageSource
    Basic URL based Cache Source - Fetches Image from HTTP/HTTPS URL without authentication
    • Constructor Detail

      • UrlAvatarCacheSource

        public UrlAvatarCacheSource​(String url)
    • Method Detail

      • canFetch

        public boolean canFetch()
        CHeck if we can fetch. Only HTTP/HTTPS urls are supported
        Specified by:
        canFetch in interface AvatarImageSource
        true if can fetch
      • fetch

        public AvatarImage fetch()
        Fetch image and return along with lastModified
        Specified by:
        fetch in interface AvatarImageSource
        image as AvatarImage object