| Constructor and Description |
|---|
Gravatar() |
| Modifier and Type | Method and Description |
|---|---|
static Gravatar |
getInstance()
If you want to have a email converted to a Gravatar URL, you need to get
an instance of
Gravatar. |
String |
imageUrl(String email) |
String |
imageUrl(String email,
Default def) |
String |
imageUrl(String email,
Default def,
Rating rating) |
String |
imageUrl(String email,
int size) |
String |
imageUrl(String email,
int size,
Default def) |
String |
imageUrl(String email,
int size,
Default def,
Rating rating) |
String |
imageUrl(String email,
Rating rating) |
public static Gravatar getInstance()
Gravatar.
Static access is not the best solution, though it might seem to be the
best solution to this simple task. Still, there will be some further
improvement to this class. And a pure static approach will not be the
only solution. Providing a Singleton Access is a good solution for now.Gravatar.public String imageUrl(String email)
email - Provide the email-address that is wanted to be converted.Gravatar-image.public String imageUrl(String email, int size)
email - Provide the email-address that is wanted to be converted.size - The size of the gravatar imageGravatar-image.public String imageUrl(String email, int size, Default def, Rating rating)
email - Provide the email-address that is wanted to be converted.size - The size of the gravatar imagedef - Which default image should be used if no Gravatar
-image is available.rating - Default Rating is
"suitable for display on all websites with any audience type".
Depending on your visitors, you could allow other ratings
(https://gravatar.com/site/implement/images/).Gravatar-image.public String imageUrl(String email, Default def, Rating rating)
email - Provide the email-address that is wanted to be converted.def - Which default image should be used if no Gravatar
-image is available.rating - Default Rating is
"suitable for display on all websites with any audience type".
Depending on your visitors, you could allow other ratings
(https://gravatar.com/site/implement/images/).Gravatar-image.public String imageUrl(String email, Rating rating)
email - Provide the email-address that is wanted to be converted.rating - Default Rating is
"suitable for display on all websites with any audience type".
Depending on your visitors, you could allow other ratings
(https://gravatar.com/site/implement/images/).Gravatar-image.Copyright © 2014. All Rights Reserved.