nl.surfnet.coin.api.playground
Class OAuthClientController

java.lang.Object
  extended by nl.surfnet.coin.api.playground.OAuthClientController

@Controller
public class OAuthClientController
extends Object

Controller for all OAuth client calls


Constructor Summary
OAuthClientController()
           
 
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
 

Constructor Detail

OAuthClientController

public OAuthClientController()
Method Detail

socialQueries

@RequestMapping(value="/test",
                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="/test",
                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="/test",
                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="/test",
                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="/test",
                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="/test/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="/test/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.