Interface AvatarsProvider
public interface AvatarsProvider
Avatar provider API.
-
Method Summary
Modifier and TypeMethodDescriptiongetAvatarUrl
(String email) Return a URL for avatar image.getLocalAvatarPath
(String email) Return a local path to downloaded avatar image.void
setBaseUrl
(String baseUrl) Set a base URL for providervoid
setOutputDirectory
(File outputDirectory) Set site output directory.
-
Method Details
-
setBaseUrl
Set a base URL for provider- Parameters:
baseUrl
- for provider
-
setOutputDirectory
Set site output directory. Used to store avatar images in project.- Parameters:
outputDirectory
- a site output directory
-
getAvatarUrl
Return a URL for avatar image.- Parameters:
email
- email address for gravatar image- Returns:
- a URL for avatar image
-
getLocalAvatarPath
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
-