public class DestinationVariableMethodArgumentResolver extends AbstractNamedValueMethodArgumentResolver
@DestinationVariable.AbstractNamedValueMethodArgumentResolver.NamedValueInfo| Modifier and Type | Field and Description |
|---|---|
static String |
DESTINATION_TEMPLATE_VARIABLES_HEADER |
| Constructor and Description |
|---|
DestinationVariableMethodArgumentResolver(org.springframework.core.convert.ConversionService cs) |
| Modifier and Type | Method and Description |
|---|---|
protected AbstractNamedValueMethodArgumentResolver.NamedValueInfo |
createNamedValueInfo(org.springframework.core.MethodParameter parameter)
Create the
AbstractNamedValueMethodArgumentResolver.NamedValueInfo object for the given method parameter. |
protected void |
handleMissingValue(String name,
org.springframework.core.MethodParameter parameter,
Message<?> message)
Invoked when a named value is required, but
AbstractNamedValueMethodArgumentResolver.resolveArgumentInternal(MethodParameter, Message, String) returned null and
there is no default value. |
protected Object |
resolveArgumentInternal(org.springframework.core.MethodParameter parameter,
Message<?> message,
String name)
Resolves the given parameter type and value name into an argument value.
|
boolean |
supportsParameter(org.springframework.core.MethodParameter parameter)
Whether the given method parameter is
supported by this resolver.
|
handleResolvedValue, resolveArgumentpublic static final String DESTINATION_TEMPLATE_VARIABLES_HEADER
public DestinationVariableMethodArgumentResolver(org.springframework.core.convert.ConversionService cs)
public boolean supportsParameter(org.springframework.core.MethodParameter parameter)
HandlerMethodArgumentResolverparameter - the method parameter to checktrue if this resolver supports the supplied parameter;
false otherwiseprotected AbstractNamedValueMethodArgumentResolver.NamedValueInfo createNamedValueInfo(org.springframework.core.MethodParameter parameter)
AbstractNamedValueMethodArgumentResolverAbstractNamedValueMethodArgumentResolver.NamedValueInfo object for the given method parameter. Implementations typically
retrieve the method annotation by means of MethodParameter.getParameterAnnotation(Class).createNamedValueInfo in class AbstractNamedValueMethodArgumentResolverparameter - the method parameterprotected Object resolveArgumentInternal(org.springframework.core.MethodParameter parameter, Message<?> message, String name) throws Exception
AbstractNamedValueMethodArgumentResolverresolveArgumentInternal in class AbstractNamedValueMethodArgumentResolverparameter - the method parameter to resolve to an argument valuemessage - the current requestname - the name of the value being resolvednullException - in case of errorsprotected void handleMissingValue(String name, org.springframework.core.MethodParameter parameter, Message<?> message)
AbstractNamedValueMethodArgumentResolverAbstractNamedValueMethodArgumentResolver.resolveArgumentInternal(MethodParameter, Message, String) returned null and
there is no default value. Subclasses typically throw an exception in this case.handleMissingValue in class AbstractNamedValueMethodArgumentResolvername - the name for the valueparameter - the method parametermessage - the message being processed