@Controller @RequestMapping(value="/api/3/profile") public class ProfileHelperController extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
AVATAR |
protected org.craftercms.profile.api.services.ProfileService |
profileService |
| Constructor and Description |
|---|
ProfileHelperController() |
| Modifier and Type | Method and Description |
|---|---|
void |
getProfileAvatar(javax.servlet.http.HttpServletResponse response,
String profileId,
javax.servlet.http.HttpServletRequest request) |
org.craftercms.profile.api.Profile |
getProfileAvatar(org.springframework.web.multipart.MultipartHttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String profileId) |
public static final String AVATAR
@Autowired protected org.craftercms.profile.api.services.ProfileService profileService
@RequestMapping(value="/avatar/{profileId}",
method=POST)
@ResponseBody
public org.craftercms.profile.api.Profile getProfileAvatar(org.springframework.web.multipart.MultipartHttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
@PathVariable(value="profileId")
String profileId)
throws IOException,
org.craftercms.profile.api.exceptions.ProfileException
IOExceptionorg.craftercms.profile.api.exceptions.ProfileException@RequestMapping(value="/avatar/{profileId}",
method=GET)
public void getProfileAvatar(javax.servlet.http.HttpServletResponse response,
@PathVariable(value="profileId")
String profileId,
javax.servlet.http.HttpServletRequest request)
throws IOException,
SocialException
IOExceptionSocialExceptionCopyright © 2019 CrafterCMS. All Rights Reserved.