spring-mobile-device

org.springframework.mobile.device
Class DeviceWebArgumentResolver

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

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

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

Author:
Keith Donald

Field Summary
 
Fields inherited from interface org.springframework.web.bind.support.WebArgumentResolver
UNRESOLVED
 
Constructor Summary
DeviceWebArgumentResolver()
           
 
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

DeviceWebArgumentResolver

public DeviceWebArgumentResolver()
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