spring-mobile-device

org.springframework.mobile.device.site
Class SitePreferenceWebArgumentResolver

java.lang.Object
  extended by org.springframework.mobile.device.site.SitePreferenceWebArgumentResolver
All Implemented Interfaces:
org.springframework.web.bind.support.WebArgumentResolver

public class SitePreferenceWebArgumentResolver
extends java.lang.Object
implements org.springframework.web.bind.support.WebArgumentResolver

Spring MVC WebArgumentResolver that resolves @Controller MethodParameters of type SitePreference to the value of the web request's current site preference attribute.

Author:
Keith Donald

Field Summary
 
Fields inherited from interface org.springframework.web.bind.support.WebArgumentResolver
UNRESOLVED
 
Constructor Summary
SitePreferenceWebArgumentResolver()
           
 
Method Summary
 java.lang.Object resolveArgument(org.springframework.core.MethodParameter param, org.springframework.web.context.request.NativeWebRequest request)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SitePreferenceWebArgumentResolver

public SitePreferenceWebArgumentResolver()
Method Detail

resolveArgument

public java.lang.Object resolveArgument(org.springframework.core.MethodParameter param,
                                        org.springframework.web.context.request.NativeWebRequest request)
                                 throws java.lang.Exception
Specified by:
resolveArgument in interface org.springframework.web.bind.support.WebArgumentResolver
Throws:
java.lang.Exception

spring-mobile-device