org.jasig.portlet.newsreader.service
Class ThemeNameViewResolverImpl
java.lang.Object
org.jasig.portlet.newsreader.service.AbstractViewResolver
org.jasig.portlet.newsreader.service.ThemeNameViewResolverImpl
- All Implemented Interfaces:
- IViewResolver
public class ThemeNameViewResolverImpl
- extends AbstractViewResolver
ThemeNameViewResolver determines appropriate views by examining a "themeName"
portlet request property and comparing it to known mobile theme names. This
implementation allows the portlet to delegate user agent inspection to the
portal and also accounts for a potential user choice to use a portal version
that does not match the automatic assignment.
- Version:
- $Revision$
- Author:
- Jen Bourey, jennifer.bourey@gmail.com
|
Method Summary |
protected boolean |
isMobile(javax.portlet.PortletRequest request)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
THEME_NAME_PROPERTY
protected static final String THEME_NAME_PROPERTY
- See Also:
- Constant Field Values
MOBILE_THEMES_KEY
protected static final String MOBILE_THEMES_KEY
- See Also:
- Constant Field Values
MOBILE_THEMES_DEFAULT
protected static final String[] MOBILE_THEMES_DEFAULT
ThemeNameViewResolverImpl
public ThemeNameViewResolverImpl()
isMobile
protected boolean isMobile(javax.portlet.PortletRequest request)
- Specified by:
isMobile in class AbstractViewResolver
Copyright © 2009-2013 Jasig. All Rights Reserved.