com.atlassian.confluence.plugins.avatar
Class HashingAvatarUrlHelper

java.lang.Object
  extended by com.atlassian.confluence.plugins.avatar.HashingAvatarUrlHelper
All Implemented Interfaces:
AvatarUrlHelper

public class HashingAvatarUrlHelper
extends java.lang.Object
implements AvatarUrlHelper


Constructor Summary
HashingAvatarUrlHelper(ContextPathHolder contextPathHolder)
           
 
Method Summary
 java.lang.String getAvatarUrl(java.lang.String username, int width)
          The avatar URL including any context path.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HashingAvatarUrlHelper

public HashingAvatarUrlHelper(ContextPathHolder contextPathHolder)
Method Detail

getAvatarUrl

public java.lang.String getAvatarUrl(java.lang.String username,
                                     int width)
Description copied from interface: AvatarUrlHelper
The avatar URL including any context path.

Specified by:
getAvatarUrl in interface AvatarUrlHelper
Parameters:
username - the name of the user
width - the width of the avatar. Must be greater than 0.
Returns:
the avatar URL including any context path.


Copyright © 2003-2014 Atlassian. All Rights Reserved.