nl.surfnet.mujina.controllers
Class OpenSocialAPI
java.lang.Object
nl.surfnet.mujina.controllers.OpenSocialAPI
@Controller
public class OpenSocialAPI
- extends Object
http://stackoverflow.com/questions/8573272/oauth-problems-with-scribe
http://tutorials.jenkov.com/oauth2/authorization-code-request-response.html
|
Method Summary |
String |
oauthCallBack(org.springframework.ui.ModelMap modelMap,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
|
String |
parseAnchor(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
|
Collection<String> |
populateAccessTokenRequestOptions()
|
Collection<String> |
populateOAuthVersions()
|
String |
reset(org.springframework.ui.ModelMap modelMap,
ApiSettings settings,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
|
String |
socialQueries(org.springframework.ui.ModelMap modelMap,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
|
String |
step1(org.springframework.ui.ModelMap modelMap,
ApiSettings settings,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
|
void |
step2(org.springframework.ui.ModelMap modelMap,
ApiSettings settings,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
|
String |
step3(org.springframework.ui.ModelMap modelMap,
ApiSettings settings,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OpenSocialAPI
public OpenSocialAPI()
socialQueries
@RequestMapping(value="/social-queries.shtml",
method=GET)
public String socialQueries(org.springframework.ui.ModelMap modelMap,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws IOException
- Throws:
IOException
step1
@RequestMapping(value="/api.shtml",
method=POST,
params="step1")
public String step1(org.springframework.ui.ModelMap modelMap,
@ModelAttribute(value="settings")
ApiSettings settings,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws IOException
- Throws:
IOException
step2
@RequestMapping(value="/api.shtml",
method=POST,
params="step2")
public void step2(org.springframework.ui.ModelMap modelMap,
@ModelAttribute(value="settings")
ApiSettings settings,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws IOException
- Throws:
IOException
step3
@RequestMapping(value="/api.shtml",
method=POST,
params="step3")
public String step3(org.springframework.ui.ModelMap modelMap,
@ModelAttribute(value="settings")
ApiSettings settings,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws IOException
- Throws:
IOException
reset
@RequestMapping(value="/api.shtml",
method=POST,
params="reset")
public String reset(org.springframework.ui.ModelMap modelMap,
@ModelAttribute(value="settings")
ApiSettings settings,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws IOException
- Throws:
IOException
parseAnchor
@RequestMapping(value="/parseAnchor.shtml",
method=GET)
@ResponseBody
public String parseAnchor(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws IOException
- Throws:
IOException
oauthCallBack
@RequestMapping(value="/oauth-callback.shtml",
method=GET)
public String oauthCallBack(org.springframework.ui.ModelMap modelMap,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
populateOAuthVersions
@ModelAttribute(value="versions")
public Collection<String> populateOAuthVersions()
populateAccessTokenRequestOptions
@ModelAttribute(value="accessTokenRequestOptions")
public Collection<String> populateAccessTokenRequestOptions()
Copyright © 2009-2012 SURFnet bv, The Netherlands. All Rights Reserved.