@Controller public class AvatarController extends Object
Controller that provides avatar Thumbnails for users. The actual avatar thumbnail lookup logic is configurable through the injected AvatarManager
implementation.
| Constructor and Description | 
|---|
AvatarController(AvatarManager avatarManager)  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
getAvatar(String ambiguousId,
         int size,
         javax.servlet.http.HttpServletResponse response)
Returns the avatar  
Thumbnail image. | 
public AvatarController(AvatarManager avatarManager)
@RequestMapping(value="/avatar/user/{ambiguousId}",
                method=GET)
 @ResponseBody
public void getAvatar(@PathVariable
                                                                                                                     String ambiguousId,
                                                                                                                     @RequestParam(defaultValue="0")
                                                                                                                     int size,
                                                                                                                     javax.servlet.http.HttpServletResponse response)
                                                                                                              throws IOException
Returns the avatar Thumbnail image. Returns a 404 HTTP response status if the user could not be found and a 500 HTTP response status if there was an error while
getting the avatar thumbnail.
ambiguousId - the user global id for which to return the avatar thumbnailsize - the size of the avatar thumbnailresponse - the http servlet responseIOException - if there is an error creating the output stream for the responseCopyright © 2010 - 2018 edorasware ag. All Rights Reserved.