org.surfnet.oaaas.web
Class ClientController

java.lang.Object
  extended by org.surfnet.oaaas.web.ClientController

@Controller
public class ClientController
extends Object

Entry point for testing the resource server. Listens to http://localhost:8084/test


Constructor Summary
ClientController(org.springframework.core.env.Environment env)
           
 
Method Summary
protected  ClientSettings createDefaultSettings(boolean implicitGrant)
          See /apis-authorization-server/src/main/resources/db/migration/hsqldb/V1__auth-server-admin.sql
 String redirect(org.springframework.ui.ModelMap modelMap, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 String reset(org.springframework.ui.ModelMap modelMap, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 String start(org.springframework.ui.ModelMap modelMap, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 String step1(org.springframework.ui.ModelMap modelMap, ClientSettings settings, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 void step2(org.springframework.ui.ModelMap modelMap, ClientSettings settings, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 String step3(org.springframework.ui.ModelMap modelMap, ClientSettings 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

ClientController

public ClientController(org.springframework.core.env.Environment env)
Parameters:
env -
Method Detail

start

@RequestMapping(value="test",
                method=GET)
public String start(org.springframework.ui.ModelMap modelMap,
                                   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,
                                   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")
                                   ClientSettings 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")
                                 ClientSettings settings,
                                 javax.servlet.http.HttpServletRequest request,
                                 javax.servlet.http.HttpServletResponse response)
           throws IOException
Throws:
IOException

redirect

@RequestMapping(value="redirect",
                method=GET)
public String redirect(org.springframework.ui.ModelMap modelMap,
                                      javax.servlet.http.HttpServletRequest request,
                                      javax.servlet.http.HttpServletResponse response)
                throws org.codehaus.jackson.JsonParseException,
                       org.codehaus.jackson.map.JsonMappingException,
                       IOException
Throws:
org.codehaus.jackson.JsonParseException
org.codehaus.jackson.map.JsonMappingException
IOException

step3

@RequestMapping(value="test",
                method=POST,
                params="step3")
public String step3(org.springframework.ui.ModelMap modelMap,
                                   @ModelAttribute(value="settings")
                                   ClientSettings settings,
                                   javax.servlet.http.HttpServletRequest request,
                                   javax.servlet.http.HttpServletResponse response)
             throws IOException
Throws:
IOException

createDefaultSettings

protected ClientSettings createDefaultSettings(boolean implicitGrant)
See /apis-authorization-server/src/main/resources/db/migration/hsqldb/V1__auth-server-admin.sql



Copyright © 2012-2013 SURFnet bv, The Netherlands. All Rights Reserved.