nl.surfnet.coin.teams.util
Class ViewUtil

java.lang.Object
  extended by nl.surfnet.coin.teams.util.ViewUtil

public final class ViewUtil
extends Object

Util class to define which view should be used (gadget or app)


Method Summary
static void addViewToModelMap(javax.servlet.http.HttpServletRequest request, org.springframework.ui.ModelMap modelMap)
          Defines which view must be presented and adds it to the ModelMap
static String getView(javax.servlet.http.HttpServletRequest request)
          Defines which view must be presented
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

addViewToModelMap

public static void addViewToModelMap(javax.servlet.http.HttpServletRequest request,
                                     org.springframework.ui.ModelMap modelMap)
Defines which view must be presented and adds it to the ModelMap

Parameters:
request - current HttpServletRequest
modelMap - ModelMap on which the view name is added

getView

public static String getView(javax.servlet.http.HttpServletRequest request)
Defines which view must be presented

Parameters:
request - current HttpServletRequest
Returns:
the name of the view


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