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.bind.support.WebArgumentResolver

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

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

Field Summary
 
Fields inherited from interface org.springframework.web.bind.support.WebArgumentResolver
UNRESOLVED
 
Constructor Summary
SignedRequestArgumentResolver(java.lang.String appSecret)
           
 
Method Summary
 java.lang.Object resolveArgument(org.springframework.core.MethodParameter parameter, 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

SignedRequestArgumentResolver

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

resolveArgument

public java.lang.Object resolveArgument(org.springframework.core.MethodParameter parameter,
                                        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 Social Facebook