|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface GravatarService
A gravatar is a dynamic image resource that is requested from the gravatar.com server. This class calculates the gravatar url and fetches gravatar images. See http://en.gravatar.com/site/implement/url .
This class is thread-safe, Gravatar objects can be shared. Currently this service is set to only allow images for general audiences and the Default image is hardcoded.
Method Summary | |
---|---|
java.lang.String |
getDefaultGravatarUrl(int size)
Returns the url for the default gravatar. |
java.lang.String |
getGravatarUrl(java.lang.String email)
Returns A gravatar for the given emails with the default size of 25 pixels. |
java.lang.String |
getGravatarUrl(java.lang.String email,
int size)
|
boolean |
isGravatarSupportEnabled()
|
void |
setGravatarSupported(boolean enabled)
Updates whether or not gravatars are enabled for this Bamboo instance |
Method Detail |
---|
@Nullable java.lang.String getGravatarUrl(@Nullable java.lang.String email, int size)
email
- to get gravatar url forsize
- Specify a gravatar size between 1 and 512 pixels.
@Nullable java.lang.String getGravatarUrl(@Nullable java.lang.String email)
email
- to get gravatar url for
@Nullable java.lang.String getDefaultGravatarUrl(int size)
size
- a gravatar size between 1 and 512 pixels.
void setGravatarSupported(boolean enabled)
enabled
- whether its enabled or notboolean isGravatarSupportEnabled()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |