Spring Social Facebook

org.springframework.social.facebook.web
Class SignedRequestArgumentResolver

java.lang.Object
  extended by org.springframework.social.facebook.web.SignedRequestArgumentResolver
All Implemented Interfaces:
org.springframework.web.method.support.HandlerMethodArgumentResolver

public class SignedRequestArgumentResolver
extends java.lang.Object
implements org.springframework.web.method.support.HandlerMethodArgumentResolver

Web argument resolver for controller handler method arguments that are annotated with SignedRequest. Binds JSON payload of the signed_request parameter to the parameter type. JSON properties named with underbar (_) separates will be converted to camel-case when binding to field name. (e.g., "user_id" will bind to a property named "userId"). Any JSON properties without corresponding fields in the target type will be ignored.

Author:
Craig Walls

Constructor Summary
SignedRequestArgumentResolver(java.lang.String appSecret)
           
 
Method Summary
 java.lang.Object resolveArgument(org.springframework.core.MethodParameter parameter, org.springframework.web.method.support.ModelAndViewContainer mavContainer, org.springframework.web.context.request.NativeWebRequest request, org.springframework.web.bind.support.WebDataBinderFactory binderFactory)
           
 boolean supportsParameter(org.springframework.core.MethodParameter parameter)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SignedRequestArgumentResolver

public SignedRequestArgumentResolver(java.lang.String appSecret)
Method Detail

supportsParameter

public boolean supportsParameter(org.springframework.core.MethodParameter parameter)
Specified by:
supportsParameter in interface org.springframework.web.method.support.HandlerMethodArgumentResolver

resolveArgument

public java.lang.Object resolveArgument(org.springframework.core.MethodParameter parameter,
                                        org.springframework.web.method.support.ModelAndViewContainer mavContainer,
                                        org.springframework.web.context.request.NativeWebRequest request,
                                        org.springframework.web.bind.support.WebDataBinderFactory binderFactory)
                                 throws java.lang.Exception
Specified by:
resolveArgument in interface org.springframework.web.method.support.HandlerMethodArgumentResolver
Throws:
java.lang.Exception

Spring Social Facebook