public class WxArgumentResolver
extends org.springframework.web.method.annotation.AbstractNamedValueMethodArgumentResolver
| Modifier and Type | Field and Description |
|---|---|
static String |
WX_FROM_USER
Deprecated.
|
static String |
WX_TO_USER
Deprecated.
|
static String |
WX_USER |
| Constructor and Description |
|---|
WxArgumentResolver(org.springframework.beans.factory.config.ConfigurableBeanFactory beanFactory) |
WxArgumentResolver(WxUserManager wxUserManager,
WxUserProvider wxUserProvider) |
| Modifier and Type | Method and Description |
|---|---|
protected org.springframework.web.method.annotation.AbstractNamedValueMethodArgumentResolver.NamedValueInfo |
createNamedValueInfo(org.springframework.core.MethodParameter parameter) |
protected Object |
getUser(org.springframework.core.MethodParameter parameter,
WxRequest wxRequest) |
protected void |
handleMissingValue(String name,
org.springframework.core.MethodParameter parameter,
org.springframework.web.context.request.NativeWebRequest request) |
protected Object |
resolveName(String name,
org.springframework.core.MethodParameter parameter,
org.springframework.web.context.request.NativeWebRequest request)
所有的转换都卸载了一起,有空可以分离为多个,抽象一层
|
boolean |
supportsParameter(org.springframework.core.MethodParameter parameter) |
@Deprecated public static final String WX_FROM_USER
public static final String WX_USER
@Deprecated public static final String WX_TO_USER
public WxArgumentResolver(WxUserManager wxUserManager, WxUserProvider wxUserProvider)
public WxArgumentResolver(org.springframework.beans.factory.config.ConfigurableBeanFactory beanFactory)
beanFactory - a bean factory used for resolving ${...} placeholder
and #{...} SpEL expressions in default values, or null if default
values are not expected to contain expressionspublic boolean supportsParameter(org.springframework.core.MethodParameter parameter)
protected org.springframework.web.method.annotation.AbstractNamedValueMethodArgumentResolver.NamedValueInfo createNamedValueInfo(org.springframework.core.MethodParameter parameter)
createNamedValueInfo in class org.springframework.web.method.annotation.AbstractNamedValueMethodArgumentResolverprotected Object resolveName(String name, org.springframework.core.MethodParameter parameter, org.springframework.web.context.request.NativeWebRequest request) throws Exception
resolveName in class org.springframework.web.method.annotation.AbstractNamedValueMethodArgumentResolvername - parameter - request - Exceptionprotected Object getUser(org.springframework.core.MethodParameter parameter, WxRequest wxRequest)
protected void handleMissingValue(String name, org.springframework.core.MethodParameter parameter, org.springframework.web.context.request.NativeWebRequest request) throws Exception
handleMissingValue in class org.springframework.web.method.annotation.AbstractNamedValueMethodArgumentResolverExceptionCopyright © 2018 Guangshan Technology, Inc.. All rights reserved.