Interface AvatarsProvider


public interface AvatarsProvider
Avatar provider API.
  • Method Details

    • setBaseUrl

      void setBaseUrl(String baseUrl)
      Set a base URL for provider
      Parameters:
      baseUrl - for provider
    • setOutputDirectory

      void setOutputDirectory(File outputDirectory)
      Set site output directory. Used to store avatar images in project.
      Parameters:
      outputDirectory - a site output directory
    • getAvatarUrl

      String getAvatarUrl(String email)
      Return a URL for avatar image.
      Parameters:
      email - email address for gravatar image
      Returns:
      a URL for avatar image
    • getLocalAvatarPath

      String getLocalAvatarPath(String email) throws IOException
      Return a local path to downloaded avatar image.
      Parameters:
      email - email address for gravatar image
      Returns:
      a local avatar path
      Throws:
      IOException - if problem with image downloading