org.apache.amber.oauth2.client.demo.controller
Class MainController

java.lang.Object
  extended by org.apache.amber.oauth2.client.demo.controller.MainController

@Controller
@RequestMapping(value="/")
public class MainController
extends Object


Constructor Summary
MainController()
           
 
Method Summary
 org.springframework.web.servlet.ModelAndView authorize(OAuthParams oauthParams)
           
 org.springframework.web.servlet.ModelAndView authorize(OAuthParams oauthParams, OAuthRegParams oauthRegParams, String app, javax.servlet.http.HttpServletResponse res)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MainController

public MainController()
Method Detail

authorize

@RequestMapping(value="/index")
public org.springframework.web.servlet.ModelAndView authorize(@ModelAttribute(value="oauthParams")
                                                                             OAuthParams oauthParams)
                                                       throws OAuthSystemException,
                                                              IOException
Throws:
OAuthSystemException
IOException

authorize

@RequestMapping(value="/main/{app}")
public org.springframework.web.servlet.ModelAndView authorize(@ModelAttribute(value="oauthParams")
                                                                             OAuthParams oauthParams,
                                                                             @ModelAttribute(value="oauthRegParams")
                                                                             OAuthRegParams oauthRegParams,
                                                                             @PathVariable(value="app")
                                                                             String app,
                                                                             javax.servlet.http.HttpServletResponse res)
                                                       throws OAuthSystemException,
                                                              IOException
Throws:
OAuthSystemException
IOException


Copyright © 2010-2013 The Apache Software Foundation. All Rights Reserved.