Uses of Class
org.springframework.core.MethodParameter
Package
Description
This package contains interfaces and classes for manipulating Java beans.
The core package implementing Spring's lightweight Inversion of Control (IoC) container.
SPI interfaces and configuration-related convenience classes for bean factories.
Provides basic classes for exception handling and version detection,
and other core helpers that are not specific to any part of the framework.
Core support package for annotations, meta-annotations, and merged
annotations with attribute overrides.
Type conversion system API.
JSON encoder and decoder support.
Provides support for accessing remote MBean resources.
Basic abstractions for working with message handler methods.
Support classes for working with annotated message-handling methods with
non-blocking, reactive contracts.
Support classes for working with annotated message-handling methods.
Common infrastructure for invoking message handler methods.
Common infrastructure for invoking message handler methods with non-blocking,
and reactive contracts.
Support classes for working with annotated RSocket stream handling methods.
Annotations to declare an RSocket service contract with request methods along
with a proxy factory backed by an
RSocketRequester
.Support classes for handling messages from simple messaging protocols
(like STOMP).
Provides data binding and validation functionality,
for usage in business and/or UI layers.
Provides web-specific data binding functionality.
Support classes for web data binding.
Common infrastructure for handler method processing, as used by
Spring MVC's
org.springframework.web.servlet.mvc.method
package.Support classes for annotation-based handler method processing.
Generic support classes for handler method processing.
Support classes for the multipart resolution framework.
Top-level package for the
spring-webflux
module that contains
DispatcherHandler
, the main entry
point for WebFlux server endpoint processing including key contracts used to
map requests to handlers, invoke them, and process the result.Infrastructure for handler method processing.
Infrastructure for annotation-based handler method processing.
Core interfaces and classes for Spring's generic, reactive web support.
Support for creating a client proxy for an HTTP service annotated with
HttpExchange
methods.MVC infrastructure for annotation-based handler method processing, building on the
org.springframework.web.method.annotation
package.-
Uses of MethodParameter in org.springframework.beans
Modifier and TypeMethodDescriptionstatic MethodParameter
BeanUtils.getWriteMethodParameter
(PropertyDescriptor pd) Obtain a new MethodParameter object for the write method of the specified property.Modifier and TypeMethodDescription<T> T
TypeConverter.convertIfNecessary
(Object value, Class<T> requiredType, MethodParameter methodParam) Convert the value to the required type (if necessary from a String).<T> T
TypeConverterSupport.convertIfNecessary
(Object value, Class<T> requiredType, MethodParameter methodParam) -
Uses of MethodParameter in org.springframework.beans.factory
Modifier and TypeMethodDescriptionInjectionPoint.getMethodParameter()
Return the wrapped MethodParameter, if any.protected final MethodParameter
InjectionPoint.obtainMethodParameter()
Return the wrapped MethodParameter, assuming it is present.ModifierConstructorDescriptionInjectionPoint
(MethodParameter methodParameter) Create an injection point descriptor for a method or constructor parameter. -
Uses of MethodParameter in org.springframework.beans.factory.config
ModifierConstructorDescriptionDependencyDescriptor
(MethodParameter methodParameter, boolean required) Create a new descriptor for a method or constructor parameter.DependencyDescriptor
(MethodParameter methodParameter, boolean required, boolean eager) Create a new descriptor for a method or constructor parameter. -
Uses of MethodParameter in org.springframework.core
Modifier and TypeMethodDescriptionMethodParameter.clone()
static MethodParameter
MethodParameter.forExecutable
(Executable executable, int parameterIndex) Create a new MethodParameter for the given method or constructor.static MethodParameter
MethodParameter.forMethodOrConstructor
(Object methodOrConstructor, int parameterIndex) Deprecated.static MethodParameter
MethodParameter.forParameter
(Parameter parameter) Create a new MethodParameter for the given parameter descriptor.MethodParameter.nested()
Return a variant of thisMethodParameter
which points to the same parameter but one nesting level deeper.Return a variant of thisMethodParameter
which points to the same parameter but one nesting level deeper.MethodParameter.nestedIfOptional()
Return a variant of thisMethodParameter
which points to the same parameter but one nesting level deeper in case of aOptional
declaration.MethodParameter.withContainingClass
(Class<?> containingClass) Return a variant of thisMethodParameter
which refers to the given containing class.MethodParameter.withTypeIndex
(int typeIndex) Return a variant of thisMethodParameter
with the type for the current level set to the specified value.Modifier and TypeMethodDescriptionstatic ResolvableType
ResolvableType.forMethodParameter
(MethodParameter methodParameter) Return aResolvableType
for the specifiedMethodParameter
.static ResolvableType
ResolvableType.forMethodParameter
(MethodParameter methodParameter, Type targetType) Return aResolvableType
for the specifiedMethodParameter
, overriding the target type to resolve with a specific given type.static ResolvableType
ResolvableType.forMethodParameter
(MethodParameter methodParameter, ResolvableType implementationType) Return aResolvableType
for the specifiedMethodParameter
with a given implementation type.static String
Conventions.getVariableNameForParameter
(MethodParameter parameter) Determine the conventional variable name for the given parameter taking the generic collection type, if any, into account.static Class<?>
GenericTypeResolver.resolveParameterType
(MethodParameter methodParameter, Class<?> implementationClass) Deprecated.since 5.2 in favor ofmethodParameter.withContainingClass(implementationClass).getParameterType()
ModifierConstructorDescriptionMethodParameter
(MethodParameter original) Copy constructor, resulting in an independent MethodParameter object based on the same metadata and cache state that the original object was in. -
Uses of MethodParameter in org.springframework.core.annotation
Modifier and TypeClassDescriptionclass
AMethodParameter
variant which synthesizes annotations that declare attribute aliases via@AliasFor
. -
Uses of MethodParameter in org.springframework.core.convert
Modifier and TypeMethodDescriptionstatic TypeDescriptor
TypeDescriptor.nested
(MethodParameter methodParameter, int nestingLevel) Create a type descriptor for a nested type declared within the method parameter.ModifierConstructorDescriptionTypeDescriptor
(MethodParameter methodParameter) Create a new type descriptor from aMethodParameter
. -
Uses of MethodParameter in org.springframework.http.codec.json
Modifier and TypeMethodDescriptionprotected MethodParameter
Jackson2CodecSupport.getParameter
(ResolvableType type) Modifier and TypeMethodDescriptionprotected <A extends Annotation>
AAbstractJackson2Decoder.getAnnotation
(MethodParameter parameter, Class<A> annotType) protected <A extends Annotation>
AAbstractJackson2Encoder.getAnnotation
(MethodParameter parameter, Class<A> annotType) protected abstract <A extends Annotation>
AJackson2CodecSupport.getAnnotation
(MethodParameter parameter, Class<A> annotType) -
Uses of MethodParameter in org.springframework.jmx.access
Modifier and TypeMethodDescriptionprotected Object
MBeanClientInterceptor.convertResultValueIfNecessary
(Object result, MethodParameter parameter) Convert the given result object (from attribute access or operation invocation) to the specified target class for returning from the proxy method. -
Uses of MethodParameter in org.springframework.messaging.handler
Modifier and TypeClassDescriptionprotected class
A MethodParameter with HandlerMethod-specific behavior.Modifier and TypeMethodDescriptionHandlerMethod.getMethodParameters()
Return the method parameters for this handler method.HandlerMethod.getReturnType()
Return the HandlerMethod return type.HandlerMethod.getReturnValueType
(Object returnValue) Return the actual return value type.Modifier and TypeMethodDescriptionprotected static Object
HandlerMethod.findProvidedArgument
(MethodParameter parameter, Object... providedArgs) protected static String
HandlerMethod.formatArgumentError
(MethodParameter param, String message) -
Uses of MethodParameter in org.springframework.messaging.handler.annotation.reactive
Modifier and TypeMethodDescriptionprotected abstract AbstractNamedValueMethodArgumentResolver.NamedValueInfo
AbstractNamedValueMethodArgumentResolver.createNamedValueInfo
(MethodParameter parameter) Create theAbstractNamedValueMethodArgumentResolver.NamedValueInfo
object for the given method parameter.DestinationVariableMethodArgumentResolver.createNamedValueInfo
(MethodParameter parameter) HeaderMethodArgumentResolver.createNamedValueInfo
(MethodParameter parameter) protected abstract void
AbstractNamedValueMethodArgumentResolver.handleMissingValue
(String name, MethodParameter parameter, Message<?> message) Invoked when a value is required, butAbstractNamedValueMethodArgumentResolver.resolveArgumentInternal(org.springframework.core.MethodParameter, org.springframework.messaging.Message<?>, java.lang.String)
returnednull
and there is no default value.protected void
DestinationVariableMethodArgumentResolver.handleMissingValue
(String name, MethodParameter parameter, Message<?> message) protected void
HeaderMethodArgumentResolver.handleMissingValue
(String headerName, MethodParameter parameter, Message<?> message) reactor.core.publisher.Mono<Object>
ContinuationHandlerMethodArgumentResolver.resolveArgument
(MethodParameter parameter, Message<?> message) final reactor.core.publisher.Mono<Object>
PayloadMethodArgumentResolver.resolveArgument
(MethodParameter parameter, Message<?> message) Decode the content of the given message payload through a compatibleDecoder
.protected abstract Object
AbstractNamedValueMethodArgumentResolver.resolveArgumentInternal
(MethodParameter parameter, Message<?> message, String name) Resolves the given parameter type and value name into an argument value.protected Object
DestinationVariableMethodArgumentResolver.resolveArgumentInternal
(MethodParameter parameter, Message<?> message, String name) protected Object
HeaderMethodArgumentResolver.resolveArgumentInternal
(MethodParameter parameter, Message<?> message, String name) AbstractNamedValueMethodArgumentResolver.resolveArgumentValue
(MethodParameter parameter, Message<?> message) HeadersMethodArgumentResolver.resolveArgumentValue
(MethodParameter parameter, Message<?> message) boolean
ContinuationHandlerMethodArgumentResolver.supportsParameter
(MethodParameter parameter) boolean
DestinationVariableMethodArgumentResolver.supportsParameter
(MethodParameter parameter) boolean
HeaderMethodArgumentResolver.supportsParameter
(MethodParameter parameter) boolean
HeadersMethodArgumentResolver.supportsParameter
(MethodParameter parameter) boolean
PayloadMethodArgumentResolver.supportsParameter
(MethodParameter parameter) -
Uses of MethodParameter in org.springframework.messaging.handler.annotation.support
Modifier and TypeMethodDescriptionprotected abstract AbstractNamedValueMethodArgumentResolver.NamedValueInfo
AbstractNamedValueMethodArgumentResolver.createNamedValueInfo
(MethodParameter parameter) Create theAbstractNamedValueMethodArgumentResolver.NamedValueInfo
object for the given method parameter.DestinationVariableMethodArgumentResolver.createNamedValueInfo
(MethodParameter parameter) HeaderMethodArgumentResolver.createNamedValueInfo
(MethodParameter parameter) protected Class<?>
MessageMethodArgumentResolver.getPayloadType
(MethodParameter parameter, Message<?> message) Resolve the target class to convert the payload to.protected abstract void
AbstractNamedValueMethodArgumentResolver.handleMissingValue
(String name, MethodParameter parameter, Message<?> message) Invoked when a value is required, butAbstractNamedValueMethodArgumentResolver.resolveArgumentInternal(org.springframework.core.MethodParameter, org.springframework.messaging.Message<?>, java.lang.String)
returnednull
and there is no default value.protected void
DestinationVariableMethodArgumentResolver.handleMissingValue
(String name, MethodParameter parameter, Message<?> message) protected void
HeaderMethodArgumentResolver.handleMissingValue
(String headerName, MethodParameter parameter, Message<?> message) protected void
AbstractNamedValueMethodArgumentResolver.handleResolvedValue
(Object arg, String name, MethodParameter parameter, Message<?> message) Invoked after a value is resolved.AbstractNamedValueMethodArgumentResolver.resolveArgument
(MethodParameter parameter, Message<?> message) HeadersMethodArgumentResolver.resolveArgument
(MethodParameter parameter, Message<?> message) MessageMethodArgumentResolver.resolveArgument
(MethodParameter parameter, Message<?> message) PayloadMethodArgumentResolver.resolveArgument
(MethodParameter parameter, Message<?> message) protected abstract Object
AbstractNamedValueMethodArgumentResolver.resolveArgumentInternal
(MethodParameter parameter, Message<?> message, String name) Resolves the given parameter type and value name into an argument value.protected Object
DestinationVariableMethodArgumentResolver.resolveArgumentInternal
(MethodParameter parameter, Message<?> message, String name) protected Object
HeaderMethodArgumentResolver.resolveArgumentInternal
(MethodParameter parameter, Message<?> message, String name) protected Class<?>
PayloadMethodArgumentResolver.resolveTargetClass
(MethodParameter parameter, Message<?> message) Resolve the target class to convert the payload to.boolean
DestinationVariableMethodArgumentResolver.supportsParameter
(MethodParameter parameter) boolean
HeaderMethodArgumentResolver.supportsParameter
(MethodParameter parameter) boolean
HeadersMethodArgumentResolver.supportsParameter
(MethodParameter parameter) boolean
MessageMethodArgumentResolver.supportsParameter
(MethodParameter parameter) boolean
PayloadMethodArgumentResolver.supportsParameter
(MethodParameter parameter) protected void
PayloadMethodArgumentResolver.validate
(Message<?> message, MethodParameter parameter, Object target) Validate the payload if applicable.ModifierConstructorDescriptionMethodArgumentNotValidException
(Message<?> message, MethodParameter parameter) Create a new instance with the invalidMethodParameter
.MethodArgumentNotValidException
(Message<?> message, MethodParameter parameter, BindingResult bindingResult) Create a new instance with the invalidMethodParameter
and aBindingResult
.MethodArgumentTypeMismatchException
(Message<?> message, MethodParameter parameter, String description) -
Uses of MethodParameter in org.springframework.messaging.handler.invocation
Modifier and TypeMethodDescriptionfinal MethodParameter
MethodArgumentResolutionException.getMethodParameter()
Return the MethodParameter that was rejected.Modifier and TypeMethodDescriptionvoid
AbstractAsyncReturnValueHandler.handleReturnValue
(Object returnValue, MethodParameter returnType, Message<?> message) void
HandlerMethodReturnValueHandler.handleReturnValue
(Object returnValue, MethodParameter returnType, Message<?> message) Handle the given return value.void
HandlerMethodReturnValueHandlerComposite.handleReturnValue
(Object returnValue, MethodParameter returnType, Message<?> message) boolean
AbstractAsyncReturnValueHandler.isAsyncReturnValue
(Object returnValue, MethodParameter returnType) boolean
AsyncHandlerMethodReturnValueHandler.isAsyncReturnValue
(Object returnValue, MethodParameter returnType) Whether the return value represents an asynchronous, Future-like type with success and error callbacks.boolean
HandlerMethodReturnValueHandlerComposite.isAsyncReturnValue
(Object returnValue, MethodParameter returnType) boolean
ReactiveReturnValueHandler.isAsyncReturnValue
(Object returnValue, MethodParameter returnType) HandlerMethodArgumentResolver.resolveArgument
(MethodParameter parameter, Message<?> message) Resolves a method parameter into an argument value from a given message.HandlerMethodArgumentResolverComposite.resolveArgument
(MethodParameter parameter, Message<?> message) Iterate over registeredHandlerMethodArgumentResolvers
and invoke the one that supports it.boolean
HandlerMethodArgumentResolver.supportsParameter
(MethodParameter parameter) Whether the given method parameter is supported by this resolver.boolean
HandlerMethodArgumentResolverComposite.supportsParameter
(MethodParameter parameter) Whether the given method parameter is supported by any registeredHandlerMethodArgumentResolver
.boolean
CompletableFutureReturnValueHandler.supportsReturnType
(MethodParameter returnType) boolean
HandlerMethodReturnValueHandler.supportsReturnType
(MethodParameter returnType) Whether the given method return type is supported by this handler.boolean
HandlerMethodReturnValueHandlerComposite.supportsReturnType
(MethodParameter returnType) boolean
ListenableFutureReturnValueHandler.supportsReturnType
(MethodParameter returnType) Deprecated.boolean
ReactiveReturnValueHandler.supportsReturnType
(MethodParameter returnType) AsyncHandlerMethodReturnValueHandler.toCompletableFuture
(Object returnValue, MethodParameter returnType) Adapt the asynchronous return value to aCompletableFuture
.CompletableFutureReturnValueHandler.toCompletableFuture
(Object returnValue, MethodParameter returnType) HandlerMethodReturnValueHandlerComposite.toCompletableFuture
(Object returnValue, MethodParameter returnType) ListenableFutureReturnValueHandler.toCompletableFuture
(Object returnValue, MethodParameter returnType) Deprecated.ReactiveReturnValueHandler.toCompletableFuture
(Object returnValue, MethodParameter returnType) default ListenableFuture<?>
AsyncHandlerMethodReturnValueHandler.toListenableFuture
(Object returnValue, MethodParameter returnType) Deprecated.as of 6.0, in favor ofAsyncHandlerMethodReturnValueHandler.toCompletableFuture(Object, MethodParameter)
ListenableFutureReturnValueHandler.toListenableFuture
(Object returnValue, MethodParameter returnType) Deprecated.ModifierConstructorDescriptionMethodArgumentResolutionException
(Message<?> message, MethodParameter parameter) Create a new instance providing the invalidMethodParameter
.MethodArgumentResolutionException
(Message<?> message, MethodParameter parameter, String description) Create a new instance providing the invalidMethodParameter
and a prepared description.MethodArgumentResolutionException
(Message<?> message, MethodParameter parameter, String description, Throwable cause) Create a new instance providing the invalidMethodParameter
, prepared description, and a cause. -
Uses of MethodParameter in org.springframework.messaging.handler.invocation.reactive
Modifier and TypeMethodDescriptionHandlerMethodArgumentResolverComposite.getArgumentResolver
(MethodParameter parameter) Find a registeredHandlerMethodArgumentResolver
that supports the given method parameter.protected abstract reactor.core.publisher.Mono<Void>
AbstractEncoderMethodReturnValueHandler.handleEncodedContent
(reactor.core.publisher.Flux<DataBuffer> encodedContent, MethodParameter returnType, Message<?> message) Subclasses implement this method to handle encoded values in some way such as creating and sending messages.protected abstract reactor.core.publisher.Mono<Void>
AbstractEncoderMethodReturnValueHandler.handleNoContent
(MethodParameter returnType, Message<?> message) Invoked for anull
return value, which could mean a void method or method returning an async type parameterized by void.reactor.core.publisher.Mono<Void>
AbstractEncoderMethodReturnValueHandler.handleReturnValue
(Object returnValue, MethodParameter returnType, Message<?> message) reactor.core.publisher.Mono<Void>
HandlerMethodReturnValueHandler.handleReturnValue
(Object returnValue, MethodParameter returnType, Message<?> message) Handle the given return value.reactor.core.publisher.Mono<Void>
HandlerMethodReturnValueHandlerComposite.handleReturnValue
(Object returnValue, MethodParameter returnType, Message<?> message) reactor.core.publisher.Mono<Object>
HandlerMethodArgumentResolver.resolveArgument
(MethodParameter parameter, Message<?> message) Resolves a method parameter into an argument value from a given message.reactor.core.publisher.Mono<Object>
HandlerMethodArgumentResolverComposite.resolveArgument
(MethodParameter parameter, Message<?> message) Iterate over registeredHandlerMethodArgumentResolvers
and invoke the one that supports it.default reactor.core.publisher.Mono<Object>
SyncHandlerMethodArgumentResolver.resolveArgument
(MethodParameter parameter, Message<?> message) Resolves a method parameter into an argument value from a given message.SyncHandlerMethodArgumentResolver.resolveArgumentValue
(MethodParameter parameter, Message<?> message) Resolve the value for the method parameter synchronously.boolean
HandlerMethodArgumentResolver.supportsParameter
(MethodParameter parameter) Whether the given method parameter is supported by this resolver.boolean
HandlerMethodArgumentResolverComposite.supportsParameter
(MethodParameter parameter) Whether the given method parameter is supported by any registeredHandlerMethodArgumentResolver
.boolean
AbstractEncoderMethodReturnValueHandler.supportsReturnType
(MethodParameter returnType) boolean
HandlerMethodReturnValueHandler.supportsReturnType
(MethodParameter returnType) Whether the given method return type is supported by this handler.boolean
HandlerMethodReturnValueHandlerComposite.supportsReturnType
(MethodParameter returnType) -
Uses of MethodParameter in org.springframework.messaging.rsocket.annotation.support
Modifier and TypeMethodDescriptionprotected reactor.core.publisher.Mono<Void>
RSocketPayloadReturnValueHandler.handleEncodedContent
(reactor.core.publisher.Flux<DataBuffer> encodedContent, MethodParameter returnType, Message<?> message) protected reactor.core.publisher.Mono<Void>
RSocketPayloadReturnValueHandler.handleNoContent
(MethodParameter returnType, Message<?> message) reactor.core.publisher.Mono<Object>
RSocketRequesterMethodArgumentResolver.resolveArgument
(MethodParameter parameter, Message<?> message) boolean
RSocketRequesterMethodArgumentResolver.supportsParameter
(MethodParameter parameter) -
Uses of MethodParameter in org.springframework.messaging.rsocket.service
Modifier and TypeMethodDescriptionboolean
DestinationVariableArgumentResolver.resolve
(Object argument, MethodParameter parameter, RSocketRequestValues.Builder requestValues) boolean
MetadataArgumentResolver.resolve
(Object argument, MethodParameter parameter, RSocketRequestValues.Builder requestValues) boolean
PayloadArgumentResolver.resolve
(Object argument, MethodParameter parameter, RSocketRequestValues.Builder requestValues) boolean
RSocketServiceArgumentResolver.resolve
(Object argument, MethodParameter parameter, RSocketRequestValues.Builder requestValues) Resolve the argument value. -
Uses of MethodParameter in org.springframework.messaging.simp.annotation.support
Modifier and TypeMethodDescriptionvoid
SendToMethodReturnValueHandler.handleReturnValue
(Object returnValue, MethodParameter returnType, Message<?> message) void
SubscriptionMethodReturnValueHandler.handleReturnValue
(Object returnValue, MethodParameter returnType, Message<?> message) PrincipalMethodArgumentResolver.resolveArgument
(MethodParameter parameter, Message<?> message) boolean
PrincipalMethodArgumentResolver.supportsParameter
(MethodParameter parameter) boolean
SendToMethodReturnValueHandler.supportsReturnType
(MethodParameter returnType) boolean
SubscriptionMethodReturnValueHandler.supportsReturnType
(MethodParameter returnType) -
Uses of MethodParameter in org.springframework.validation
Modifier and TypeMethodDescription<T> T
DataBinder.convertIfNecessary
(Object value, Class<T> requiredType, MethodParameter methodParam) -
Uses of MethodParameter in org.springframework.web.bind
Modifier and TypeMethodDescriptionfinal MethodParameter
MethodArgumentNotValidException.getParameter()
Return the method parameter that failed validation.final MethodParameter
MissingMatrixVariableException.getParameter()
Return the method parameter bound to the matrix variable.final MethodParameter
MissingPathVariableException.getParameter()
Return the method parameter bound to the path variable.final MethodParameter
MissingRequestCookieException.getParameter()
Return the method parameter bound to the request cookie.final MethodParameter
MissingRequestHeaderException.getParameter()
Return the method parameter bound to the request header.ModifierConstructorDescriptionMethodArgumentNotValidException
(MethodParameter parameter, BindingResult bindingResult) Constructor forMethodArgumentNotValidException
.MissingMatrixVariableException
(String variableName, MethodParameter parameter) Constructor for MissingMatrixVariableException.MissingMatrixVariableException
(String variableName, MethodParameter parameter, boolean missingAfterConversion) Constructor for use when a value was present but converted tonull
.MissingPathVariableException
(String variableName, MethodParameter parameter) Constructor for MissingPathVariableException.MissingPathVariableException
(String variableName, MethodParameter parameter, boolean missingAfterConversion) Constructor for use when a value was present but converted tonull
.MissingRequestCookieException
(String cookieName, MethodParameter parameter) Constructor for MissingRequestCookieException.MissingRequestCookieException
(String cookieName, MethodParameter parameter, boolean missingAfterConversion) Constructor for use when a value was present but converted tonull
.MissingRequestHeaderException
(String headerName, MethodParameter parameter) Constructor for MissingRequestHeaderException.MissingRequestHeaderException
(String headerName, MethodParameter parameter, boolean missingAfterConversion) Constructor for use when a value was present but converted tonull
. -
Uses of MethodParameter in org.springframework.web.bind.support
Modifier and TypeMethodDescriptionWebArgumentResolver.resolveArgument
(MethodParameter methodParameter, NativeWebRequest webRequest) Resolve an argument for the given handler method parameter within the given web request.ModifierConstructorDescriptionWebExchangeBindException
(MethodParameter parameter, BindingResult bindingResult) -
Uses of MethodParameter in org.springframework.web.method
Modifier and TypeClassDescriptionprotected class
A MethodParameter with HandlerMethod-specific behavior.Modifier and TypeMethodDescriptionHandlerMethod.getMethodParameters()
Return the method parameters for this handler method.HandlerMethod.getReturnType()
Return the HandlerMethod return type.HandlerMethod.getReturnValueType
(Object returnValue) Return the actual return value type.Modifier and TypeMethodDescriptionprotected static Object
HandlerMethod.findProvidedArgument
(MethodParameter parameter, Object... providedArgs) protected static String
HandlerMethod.formatArgumentError
(MethodParameter param, String message) -
Uses of MethodParameter in org.springframework.web.method.annotation
Modifier and TypeMethodDescriptionMethodArgumentConversionNotSupportedException.getParameter()
Return the target method parameter.MethodArgumentTypeMismatchException.getParameter()
Return the target method parameter.Modifier and TypeMethodDescriptionprotected Object
ModelAttributeMethodProcessor.constructAttribute
(Constructor<?> ctor, String attributeName, MethodParameter parameter, WebDataBinderFactory binderFactory, NativeWebRequest webRequest) Construct a new attribute instance with the given constructor.void
RequestParamMethodArgumentResolver.contributeMethodArgument
(MethodParameter parameter, Object value, UriComponentsBuilder builder, Map<String, Object> uriVariables, ConversionService conversionService) protected Object
ModelAttributeMethodProcessor.createAttribute
(String attributeName, MethodParameter parameter, WebDataBinderFactory binderFactory, NativeWebRequest webRequest) Extension point to create the model attribute if not found in the model, with subsequent parameter binding through bean properties (unless suppressed).AbstractCookieValueMethodArgumentResolver.createNamedValueInfo
(MethodParameter parameter) protected abstract AbstractNamedValueMethodArgumentResolver.NamedValueInfo
AbstractNamedValueMethodArgumentResolver.createNamedValueInfo
(MethodParameter parameter) Create theAbstractNamedValueMethodArgumentResolver.NamedValueInfo
object for the given method parameter.ExpressionValueMethodArgumentResolver.createNamedValueInfo
(MethodParameter parameter) RequestHeaderMethodArgumentResolver.createNamedValueInfo
(MethodParameter parameter) RequestParamMethodArgumentResolver.createNamedValueInfo
(MethodParameter parameter) static String
ModelFactory.getNameForParameter
(MethodParameter parameter) Derive the model attribute name for the given method parameter based on a@ModelAttribute
parameter annotation (if present) or falling back on parameter type based conventions.static String
ModelFactory.getNameForReturnValue
(Object returnValue, MethodParameter returnType) Derive the model attribute name for the given return value.protected void
AbstractCookieValueMethodArgumentResolver.handleMissingValue
(String name, MethodParameter parameter) protected void
AbstractNamedValueMethodArgumentResolver.handleMissingValue
(String name, MethodParameter parameter) Invoked when a named value is required, butAbstractNamedValueMethodArgumentResolver.resolveName(String, MethodParameter, NativeWebRequest)
returnednull
and there is no default value.protected void
AbstractNamedValueMethodArgumentResolver.handleMissingValue
(String name, MethodParameter parameter, NativeWebRequest request) Invoked when a named value is required, butAbstractNamedValueMethodArgumentResolver.resolveName(String, MethodParameter, NativeWebRequest)
returnednull
and there is no default value.protected void
ExpressionValueMethodArgumentResolver.handleMissingValue
(String name, MethodParameter parameter) protected void
RequestHeaderMethodArgumentResolver.handleMissingValue
(String name, MethodParameter parameter) protected void
RequestParamMethodArgumentResolver.handleMissingValue
(String name, MethodParameter parameter, NativeWebRequest request) protected void
AbstractCookieValueMethodArgumentResolver.handleMissingValueAfterConversion
(String name, MethodParameter parameter, NativeWebRequest request) protected void
AbstractNamedValueMethodArgumentResolver.handleMissingValueAfterConversion
(String name, MethodParameter parameter, NativeWebRequest request) Invoked when a named value is present but becomesnull
after conversion.protected void
RequestHeaderMethodArgumentResolver.handleMissingValueAfterConversion
(String name, MethodParameter parameter, NativeWebRequest request) protected void
RequestParamMethodArgumentResolver.handleMissingValueAfterConversion
(String name, MethodParameter parameter, NativeWebRequest request) protected void
RequestParamMethodArgumentResolver.handleMissingValueInternal
(String name, MethodParameter parameter, NativeWebRequest request, boolean missingAfterConversion) protected void
AbstractNamedValueMethodArgumentResolver.handleResolvedValue
(Object arg, String name, MethodParameter parameter, ModelAndViewContainer mavContainer, NativeWebRequest webRequest) Invoked after a value is resolved.void
MapMethodProcessor.handleReturnValue
(Object returnValue, MethodParameter returnType, ModelAndViewContainer mavContainer, NativeWebRequest webRequest) void
ModelAttributeMethodProcessor.handleReturnValue
(Object returnValue, MethodParameter returnType, ModelAndViewContainer mavContainer, NativeWebRequest webRequest) Add non-null return values to theModelAndViewContainer
.void
ModelMethodProcessor.handleReturnValue
(Object returnValue, MethodParameter returnType, ModelAndViewContainer mavContainer, NativeWebRequest webRequest) protected boolean
ModelAttributeMethodProcessor.isBindExceptionRequired
(MethodParameter parameter) Whether to raise a fatal bind exception on validation errors.protected boolean
ModelAttributeMethodProcessor.isBindExceptionRequired
(WebDataBinder binder, MethodParameter parameter) Whether to raise a fatal bind exception on validation errors.final Object
AbstractNamedValueMethodArgumentResolver.resolveArgument
(MethodParameter parameter, ModelAndViewContainer mavContainer, NativeWebRequest webRequest, WebDataBinderFactory binderFactory) AbstractWebArgumentResolverAdapter.resolveArgument
(MethodParameter parameter, ModelAndViewContainer mavContainer, NativeWebRequest webRequest, WebDataBinderFactory binderFactory) Delegate to theWebArgumentResolver
instance.ErrorsMethodArgumentResolver.resolveArgument
(MethodParameter parameter, ModelAndViewContainer mavContainer, NativeWebRequest webRequest, WebDataBinderFactory binderFactory) MapMethodProcessor.resolveArgument
(MethodParameter parameter, ModelAndViewContainer mavContainer, NativeWebRequest webRequest, WebDataBinderFactory binderFactory) final Object
ModelAttributeMethodProcessor.resolveArgument
(MethodParameter parameter, ModelAndViewContainer mavContainer, NativeWebRequest webRequest, WebDataBinderFactory binderFactory) Resolve the argument from the model or if not found instantiate it with its default if it is available.ModelMethodProcessor.resolveArgument
(MethodParameter parameter, ModelAndViewContainer mavContainer, NativeWebRequest webRequest, WebDataBinderFactory binderFactory) RequestHeaderMapMethodArgumentResolver.resolveArgument
(MethodParameter parameter, ModelAndViewContainer mavContainer, NativeWebRequest webRequest, WebDataBinderFactory binderFactory) RequestParamMapMethodArgumentResolver.resolveArgument
(MethodParameter parameter, ModelAndViewContainer mavContainer, NativeWebRequest webRequest, WebDataBinderFactory binderFactory) SessionStatusMethodArgumentResolver.resolveArgument
(MethodParameter parameter, ModelAndViewContainer mavContainer, NativeWebRequest webRequest, WebDataBinderFactory binderFactory) protected abstract Object
AbstractNamedValueMethodArgumentResolver.resolveName
(String name, MethodParameter parameter, NativeWebRequest request) Resolve the given parameter type and value name into an argument value.protected Object
ExpressionValueMethodArgumentResolver.resolveName
(String name, MethodParameter parameter, NativeWebRequest webRequest) protected Object
RequestHeaderMethodArgumentResolver.resolveName
(String name, MethodParameter parameter, NativeWebRequest request) protected Object
RequestParamMethodArgumentResolver.resolveName
(String name, MethodParameter parameter, NativeWebRequest request) boolean
AbstractCookieValueMethodArgumentResolver.supportsParameter
(MethodParameter parameter) boolean
AbstractWebArgumentResolverAdapter.supportsParameter
(MethodParameter parameter) Actually resolve the value and check the resolved value is notWebArgumentResolver.UNRESOLVED
absorbing _any_ exceptions.boolean
ErrorsMethodArgumentResolver.supportsParameter
(MethodParameter parameter) boolean
ExpressionValueMethodArgumentResolver.supportsParameter
(MethodParameter parameter) boolean
MapMethodProcessor.supportsParameter
(MethodParameter parameter) boolean
ModelAttributeMethodProcessor.supportsParameter
(MethodParameter parameter) Returnstrue
if the parameter is annotated withModelAttribute
or, if in default resolution mode, for any method parameter that is not a simple type.boolean
ModelMethodProcessor.supportsParameter
(MethodParameter parameter) boolean
RequestHeaderMapMethodArgumentResolver.supportsParameter
(MethodParameter parameter) boolean
RequestHeaderMethodArgumentResolver.supportsParameter
(MethodParameter parameter) boolean
RequestParamMapMethodArgumentResolver.supportsParameter
(MethodParameter parameter) boolean
RequestParamMethodArgumentResolver.supportsParameter
(MethodParameter parameter) Supports the following: @RequestParam-annotated method arguments.boolean
SessionStatusMethodArgumentResolver.supportsParameter
(MethodParameter parameter) boolean
MapMethodProcessor.supportsReturnType
(MethodParameter returnType) boolean
ModelAttributeMethodProcessor.supportsReturnType
(MethodParameter returnType) Returntrue
if there is a method-level@ModelAttribute
or, in default resolution mode, for any return value type that is not a simple type.boolean
ModelMethodProcessor.supportsReturnType
(MethodParameter returnType) protected void
ModelAttributeMethodProcessor.validateIfApplicable
(WebDataBinder binder, MethodParameter parameter) Validate the model attribute if applicable.protected void
ModelAttributeMethodProcessor.validateValueIfApplicable
(WebDataBinder binder, MethodParameter parameter, Class<?> targetType, String fieldName, Object value) Validate the specified candidate value if applicable.ModifierConstructorDescriptionMethodArgumentConversionNotSupportedException
(Object value, Class<?> requiredType, String name, MethodParameter param, Throwable cause) MethodArgumentTypeMismatchException
(Object value, Class<?> requiredType, String name, MethodParameter param, Throwable cause) -
Uses of MethodParameter in org.springframework.web.method.support
Modifier and TypeMethodDescriptionvoid
CompositeUriComponentsContributor.contributeMethodArgument
(MethodParameter parameter, Object value, UriComponentsBuilder builder, Map<String, Object> uriVariables) An overloaded method that uses the ConversionService created at construction.void
CompositeUriComponentsContributor.contributeMethodArgument
(MethodParameter parameter, Object value, UriComponentsBuilder builder, Map<String, Object> uriVariables, ConversionService conversionService) void
UriComponentsContributor.contributeMethodArgument
(MethodParameter parameter, Object value, UriComponentsBuilder builder, Map<String, Object> uriVariables, ConversionService conversionService) Process the given method argument and either update theUriComponentsBuilder
or add to the map with URI variables to use to expand the URI after all arguments are processed.void
HandlerMethodReturnValueHandler.handleReturnValue
(Object returnValue, MethodParameter returnType, ModelAndViewContainer mavContainer, NativeWebRequest webRequest) Handle the given return value by adding attributes to the model and setting a view or setting theModelAndViewContainer.setRequestHandled(boolean)
flag totrue
to indicate the response has been handled directly.void
HandlerMethodReturnValueHandlerComposite.handleReturnValue
(Object returnValue, MethodParameter returnType, ModelAndViewContainer mavContainer, NativeWebRequest webRequest) Iterate over registeredHandlerMethodReturnValueHandlers
and invoke the one that supports it.boolean
AsyncHandlerMethodReturnValueHandler.isAsyncReturnValue
(Object returnValue, MethodParameter returnType) Whether the given return value represents asynchronous computation.HandlerMethodArgumentResolver.resolveArgument
(MethodParameter parameter, ModelAndViewContainer mavContainer, NativeWebRequest webRequest, WebDataBinderFactory binderFactory) Resolves a method parameter into an argument value from a given request.HandlerMethodArgumentResolverComposite.resolveArgument
(MethodParameter parameter, ModelAndViewContainer mavContainer, NativeWebRequest webRequest, WebDataBinderFactory binderFactory) Iterate over registeredHandlerMethodArgumentResolvers
and invoke the one that supports it.boolean
CompositeUriComponentsContributor.supportsParameter
(MethodParameter parameter) boolean
HandlerMethodArgumentResolver.supportsParameter
(MethodParameter parameter) Whether the given method parameter is supported by this resolver.boolean
HandlerMethodArgumentResolverComposite.supportsParameter
(MethodParameter parameter) Whether the given method parameter is supported by any registeredHandlerMethodArgumentResolver
.boolean
UriComponentsContributor.supportsParameter
(MethodParameter parameter) Whether this contributor supports the given method parameter.boolean
HandlerMethodReturnValueHandler.supportsReturnType
(MethodParameter returnType) Whether the given method return type is supported by this handler.boolean
HandlerMethodReturnValueHandlerComposite.supportsReturnType
(MethodParameter returnType) Whether the given method return type is supported by any registeredHandlerMethodReturnValueHandler
. -
Uses of MethodParameter in org.springframework.web.multipart.support
Modifier and TypeMethodDescriptionstatic boolean
MultipartResolutionDelegate.isMultipartArgument
(MethodParameter parameter) static Object
MultipartResolutionDelegate.resolveMultipartArgument
(String name, MethodParameter parameter, HttpServletRequest request) -
Uses of MethodParameter in org.springframework.web.reactive
Modifier and TypeMethodDescriptionHandlerResult.getReturnTypeSource()
Return theMethodParameter
from whichreturnType
was created.ModifierConstructorDescriptionHandlerResult
(Object handler, Object returnValue, MethodParameter returnType) Create a newHandlerResult
.HandlerResult
(Object handler, Object returnValue, MethodParameter returnType, BindingContext context) Create a newHandlerResult
. -
Uses of MethodParameter in org.springframework.web.reactive.result.method
Modifier and TypeMethodDescriptionprotected <A extends Annotation>
booleanHandlerMethodArgumentResolverSupport.checkAnnotatedParamNoReactiveWrapper
(MethodParameter parameter, Class<A> annotationType, BiPredicate<A, Class<?>> typePredicate) Evaluate thePredicate
on the method parameter type if it has the given annotation, nesting withinOptional
if necessary, but raise anIllegalStateException
if the same matches the generic type within a reactive type wrapper.protected boolean
HandlerMethodArgumentResolverSupport.checkParameterType
(MethodParameter parameter, Predicate<Class<?>> predicate) Evaluate thePredicate
on the method parameter type or on the generic type within a reactive type wrapper.protected boolean
HandlerMethodArgumentResolverSupport.checkParameterTypeNoReactiveWrapper
(MethodParameter parameter, Predicate<Class<?>> predicate) Evaluate thePredicate
on the method parameter type but raise anIllegalStateException
if the same matches the generic type within a reactive type wrapper.reactor.core.publisher.Mono<Object>
HandlerMethodArgumentResolver.resolveArgument
(MethodParameter parameter, BindingContext bindingContext, ServerWebExchange exchange) Resolve the value for the method parameter.default reactor.core.publisher.Mono<Object>
SyncHandlerMethodArgumentResolver.resolveArgument
(MethodParameter parameter, BindingContext bindingContext, ServerWebExchange exchange) Resolve the value for the method parameter.SyncHandlerMethodArgumentResolver.resolveArgumentValue
(MethodParameter parameter, BindingContext bindingContext, ServerWebExchange exchange) Resolve the value for the method parameter synchronously.boolean
HandlerMethodArgumentResolver.supportsParameter
(MethodParameter parameter) Whether this resolver supports the given method parameter. -
Uses of MethodParameter in org.springframework.web.reactive.result.method.annotation
Modifier and TypeMethodDescriptionprotected abstract AbstractNamedValueArgumentResolver.NamedValueInfo
AbstractNamedValueArgumentResolver.createNamedValueInfo
(MethodParameter parameter) Create theAbstractNamedValueArgumentResolver.NamedValueInfo
object for the given method parameter.CookieValueMethodArgumentResolver.createNamedValueInfo
(MethodParameter parameter) ExpressionValueMethodArgumentResolver.createNamedValueInfo
(MethodParameter parameter) MatrixVariableMethodArgumentResolver.createNamedValueInfo
(MethodParameter parameter) PathVariableMethodArgumentResolver.createNamedValueInfo
(MethodParameter parameter) RequestAttributeMethodArgumentResolver.createNamedValueInfo
(MethodParameter parameter) RequestHeaderMethodArgumentResolver.createNamedValueInfo
(MethodParameter parameter) RequestParamMethodArgumentResolver.createNamedValueInfo
(MethodParameter parameter) SessionAttributeMethodArgumentResolver.createNamedValueInfo
(MethodParameter parameter) reactor.core.publisher.Flux<Part>
RequestPartMethodArgumentResolver.getPartValues
(MethodParameter parameter, RequestPart requestPart, boolean isRequired, ServerWebExchange exchange) protected void
AbstractNamedValueArgumentResolver.handleMissingValue
(String name, MethodParameter parameter) Invoked when a named value is required, butAbstractNamedValueArgumentResolver.resolveName(String, MethodParameter, ServerWebExchange)
returnednull
and there is no default value.protected void
AbstractNamedValueArgumentResolver.handleMissingValue
(String name, MethodParameter parameter, ServerWebExchange exchange) Invoked when a named value is required, butAbstractNamedValueArgumentResolver.resolveName(String, MethodParameter, ServerWebExchange)
returnednull
and there is no default value.protected void
CookieValueMethodArgumentResolver.handleMissingValue
(String name, MethodParameter parameter) protected void
ExpressionValueMethodArgumentResolver.handleMissingValue
(String name, MethodParameter parameter) protected void
MatrixVariableMethodArgumentResolver.handleMissingValue
(String name, MethodParameter parameter) protected void
PathVariableMethodArgumentResolver.handleMissingValue
(String name, MethodParameter parameter) protected void
RequestAttributeMethodArgumentResolver.handleMissingValue
(String name, MethodParameter parameter) protected void
RequestHeaderMethodArgumentResolver.handleMissingValue
(String name, MethodParameter parameter) protected void
RequestParamMethodArgumentResolver.handleMissingValue
(String name, MethodParameter parameter, ServerWebExchange exchange) protected void
SessionAttributeMethodArgumentResolver.handleMissingValue
(String name, MethodParameter parameter) protected void
AbstractNamedValueArgumentResolver.handleResolvedValue
(Object arg, String name, MethodParameter parameter, Model model, ServerWebExchange exchange) Invoked after a value is resolved.protected void
PathVariableMethodArgumentResolver.handleResolvedValue
(Object arg, String name, MethodParameter parameter, Model model, ServerWebExchange exchange) protected reactor.core.publisher.Mono<Object>
AbstractMessageReaderArgumentResolver.readBody
(MethodParameter bodyParameter, boolean isBodyRequired, BindingContext bindingContext, ServerWebExchange exchange) Read the body from a method argument withHttpMessageReader
.protected reactor.core.publisher.Mono<Object>
AbstractMessageReaderArgumentResolver.readBody
(MethodParameter bodyParam, MethodParameter actualParam, boolean isBodyRequired, BindingContext bindingContext, ServerWebExchange exchange) Read the body from a method argument withHttpMessageReader
.reactor.core.publisher.Mono<Object>
AbstractNamedValueArgumentResolver.resolveArgument
(MethodParameter parameter, BindingContext bindingContext, ServerWebExchange exchange) reactor.core.publisher.Mono<Object>
AbstractNamedValueSyncArgumentResolver.resolveArgument
(MethodParameter parameter, BindingContext bindingContext, ServerWebExchange exchange) reactor.core.publisher.Mono<Object>
ContinuationHandlerMethodArgumentResolver.resolveArgument
(MethodParameter parameter, BindingContext bindingContext, ServerWebExchange exchange) reactor.core.publisher.Mono<Object>
ErrorsMethodArgumentResolver.resolveArgument
(MethodParameter parameter, BindingContext context, ServerWebExchange exchange) reactor.core.publisher.Mono<Object>
HttpEntityMethodArgumentResolver.resolveArgument
(MethodParameter parameter, BindingContext bindingContext, ServerWebExchange exchange) reactor.core.publisher.Mono<Object>
ModelAttributeMethodArgumentResolver.resolveArgument
(MethodParameter parameter, BindingContext context, ServerWebExchange exchange) reactor.core.publisher.Mono<Object>
PrincipalMethodArgumentResolver.resolveArgument
(MethodParameter parameter, BindingContext context, ServerWebExchange exchange) reactor.core.publisher.Mono<Object>
RequestBodyMethodArgumentResolver.resolveArgument
(MethodParameter param, BindingContext bindingContext, ServerWebExchange exchange) reactor.core.publisher.Mono<Object>
RequestPartMethodArgumentResolver.resolveArgument
(MethodParameter parameter, BindingContext bindingContext, ServerWebExchange exchange) reactor.core.publisher.Mono<Object>
WebSessionMethodArgumentResolver.resolveArgument
(MethodParameter parameter, BindingContext context, ServerWebExchange exchange) AbstractNamedValueSyncArgumentResolver.resolveArgumentValue
(MethodParameter parameter, BindingContext context, ServerWebExchange exchange) MatrixVariableMapMethodArgumentResolver.resolveArgumentValue
(MethodParameter parameter, BindingContext bindingContext, ServerWebExchange exchange) ModelMethodArgumentResolver.resolveArgumentValue
(MethodParameter parameter, BindingContext context, ServerWebExchange exchange) PathVariableMapMethodArgumentResolver.resolveArgumentValue
(MethodParameter methodParameter, BindingContext context, ServerWebExchange exchange) RequestHeaderMapMethodArgumentResolver.resolveArgumentValue
(MethodParameter methodParameter, BindingContext context, ServerWebExchange exchange) RequestParamMapMethodArgumentResolver.resolveArgumentValue
(MethodParameter methodParameter, BindingContext context, ServerWebExchange exchange) ServerWebExchangeMethodArgumentResolver.resolveArgumentValue
(MethodParameter methodParameter, BindingContext context, ServerWebExchange exchange) SessionStatusMethodArgumentResolver.resolveArgumentValue
(MethodParameter parameter, BindingContext bindingContext, ServerWebExchange exchange) protected abstract reactor.core.publisher.Mono<Object>
AbstractNamedValueArgumentResolver.resolveName
(String name, MethodParameter parameter, ServerWebExchange exchange) Resolve the given parameter type and value name into an argument value.protected final reactor.core.publisher.Mono<Object>
AbstractNamedValueSyncArgumentResolver.resolveName
(String name, MethodParameter param, ServerWebExchange exchange) protected reactor.core.publisher.Mono<Object>
SessionAttributeMethodArgumentResolver.resolveName
(String name, MethodParameter parameter, ServerWebExchange exchange) protected abstract Object
AbstractNamedValueSyncArgumentResolver.resolveNamedValue
(String name, MethodParameter param, ServerWebExchange exchange) Actually resolve the value synchronously.protected Object
CookieValueMethodArgumentResolver.resolveNamedValue
(String name, MethodParameter parameter, ServerWebExchange exchange) protected Object
ExpressionValueMethodArgumentResolver.resolveNamedValue
(String name, MethodParameter parameter, ServerWebExchange exchange) protected Object
MatrixVariableMethodArgumentResolver.resolveNamedValue
(String name, MethodParameter param, ServerWebExchange exchange) protected Object
PathVariableMethodArgumentResolver.resolveNamedValue
(String name, MethodParameter parameter, ServerWebExchange exchange) protected Object
RequestAttributeMethodArgumentResolver.resolveNamedValue
(String name, MethodParameter parameter, ServerWebExchange exchange) protected Object
RequestHeaderMethodArgumentResolver.resolveNamedValue
(String name, MethodParameter parameter, ServerWebExchange exchange) protected Object
RequestParamMethodArgumentResolver.resolveNamedValue
(String name, MethodParameter parameter, ServerWebExchange exchange) boolean
ContinuationHandlerMethodArgumentResolver.supportsParameter
(MethodParameter parameter) boolean
CookieValueMethodArgumentResolver.supportsParameter
(MethodParameter param) boolean
ErrorsMethodArgumentResolver.supportsParameter
(MethodParameter parameter) boolean
ExpressionValueMethodArgumentResolver.supportsParameter
(MethodParameter param) boolean
HttpEntityMethodArgumentResolver.supportsParameter
(MethodParameter parameter) boolean
MatrixVariableMapMethodArgumentResolver.supportsParameter
(MethodParameter parameter) boolean
MatrixVariableMethodArgumentResolver.supportsParameter
(MethodParameter parameter) boolean
ModelAttributeMethodArgumentResolver.supportsParameter
(MethodParameter parameter) boolean
ModelMethodArgumentResolver.supportsParameter
(MethodParameter param) boolean
PathVariableMapMethodArgumentResolver.supportsParameter
(MethodParameter parameter) boolean
PathVariableMethodArgumentResolver.supportsParameter
(MethodParameter parameter) boolean
PrincipalMethodArgumentResolver.supportsParameter
(MethodParameter parameter) boolean
RequestAttributeMethodArgumentResolver.supportsParameter
(MethodParameter param) boolean
RequestBodyMethodArgumentResolver.supportsParameter
(MethodParameter parameter) boolean
RequestHeaderMapMethodArgumentResolver.supportsParameter
(MethodParameter param) boolean
RequestHeaderMethodArgumentResolver.supportsParameter
(MethodParameter param) boolean
RequestParamMapMethodArgumentResolver.supportsParameter
(MethodParameter param) boolean
RequestParamMethodArgumentResolver.supportsParameter
(MethodParameter param) boolean
RequestPartMethodArgumentResolver.supportsParameter
(MethodParameter parameter) boolean
ServerWebExchangeMethodArgumentResolver.supportsParameter
(MethodParameter parameter) boolean
SessionAttributeMethodArgumentResolver.supportsParameter
(MethodParameter parameter) boolean
SessionStatusMethodArgumentResolver.supportsParameter
(MethodParameter parameter) boolean
WebSessionMethodArgumentResolver.supportsParameter
(MethodParameter parameter) protected reactor.core.publisher.Mono<Void>
AbstractMessageWriterResultHandler.writeBody
(Object body, MethodParameter bodyParameter, MethodParameter actualParam, ServerWebExchange exchange) Write a given body to the response withHttpMessageWriter
.protected reactor.core.publisher.Mono<Void>
AbstractMessageWriterResultHandler.writeBody
(Object body, MethodParameter bodyParameter, ServerWebExchange exchange) Write a given body to the response withHttpMessageWriter
. -
Uses of MethodParameter in org.springframework.web.server
Modifier and TypeMethodDescriptionServerErrorException.getMethodParameter()
Return the specific method parameter associated with the error, if any.ServerWebInputException.getMethodParameter()
Return theMethodParameter
associated with this error, if any.ModifierConstructorDescriptionMissingRequestValueException
(String name, Class<?> type, String label, MethodParameter parameter) ServerErrorException
(String reason, MethodParameter parameter, Throwable cause) Constructor for a 500 error with aMethodParameter
and an optional cause.ServerWebInputException
(String reason, MethodParameter parameter) Constructor for a 400 error linked to a specificMethodParameter
.ServerWebInputException
(String reason, MethodParameter parameter, Throwable cause) Constructor for a 400 error with a root cause.protected
ServerWebInputException
(String reason, MethodParameter parameter, Throwable cause, String messageDetailCode, Object[] messageDetailArguments) Constructor with a message code and arguments for resolving the error "detail" viaMessageSource
. -
Uses of MethodParameter in org.springframework.web.service.invoker
Modifier and TypeMethodDescriptionprotected abstract void
AbstractNamedValueArgumentResolver.addRequestValue
(String name, Object value, MethodParameter parameter, HttpRequestValues.Builder requestValues) Add the given, single request value.protected void
CookieValueArgumentResolver.addRequestValue
(String name, Object value, MethodParameter parameter, HttpRequestValues.Builder requestValues) protected void
PathVariableArgumentResolver.addRequestValue
(String name, Object value, MethodParameter parameter, HttpRequestValues.Builder requestValues) protected void
RequestAttributeArgumentResolver.addRequestValue
(String name, Object value, MethodParameter parameter, HttpRequestValues.Builder requestValues) protected void
RequestHeaderArgumentResolver.addRequestValue
(String name, Object value, MethodParameter parameter, HttpRequestValues.Builder requestValues) protected void
RequestParamArgumentResolver.addRequestValue
(String name, Object value, MethodParameter parameter, HttpRequestValues.Builder requestValues) protected void
RequestPartArgumentResolver.addRequestValue
(String name, Object value, MethodParameter parameter, HttpRequestValues.Builder requestValues) protected abstract AbstractNamedValueArgumentResolver.NamedValueInfo
AbstractNamedValueArgumentResolver.createNamedValueInfo
(MethodParameter parameter) Return information about the request value, ornull
if the parameter does not represent a request value of interest.CookieValueArgumentResolver.createNamedValueInfo
(MethodParameter parameter) PathVariableArgumentResolver.createNamedValueInfo
(MethodParameter parameter) RequestAttributeArgumentResolver.createNamedValueInfo
(MethodParameter parameter) RequestHeaderArgumentResolver.createNamedValueInfo
(MethodParameter parameter) RequestParamArgumentResolver.createNamedValueInfo
(MethodParameter parameter) RequestPartArgumentResolver.createNamedValueInfo
(MethodParameter parameter) boolean
AbstractNamedValueArgumentResolver.resolve
(Object argument, MethodParameter parameter, HttpRequestValues.Builder requestValues) boolean
HttpMethodArgumentResolver.resolve
(Object argument, MethodParameter parameter, HttpRequestValues.Builder requestValues) boolean
HttpServiceArgumentResolver.resolve
(Object argument, MethodParameter parameter, HttpRequestValues.Builder requestValues) Resolve the argument value.boolean
RequestBodyArgumentResolver.resolve
(Object argument, MethodParameter parameter, HttpRequestValues.Builder requestValues) boolean
UrlArgumentResolver.resolve
(Object argument, MethodParameter parameter, HttpRequestValues.Builder requestValues) -
Uses of MethodParameter in org.springframework.web.servlet.mvc.method.annotation
Modifier and TypeMethodDescriptionprotected Object
AbstractMessageConverterMethodArgumentResolver.adaptArgumentIfNecessary
(Object arg, MethodParameter parameter) Adapt the given argument against the method parameter, if necessary.RequestBodyAdvice.afterBodyRead
(Object body, HttpInputMessage inputMessage, MethodParameter parameter, Type targetType, Class<? extends HttpMessageConverter<?>> converterType) Invoked third (and last) after the request body is converted to an Object.RequestBodyAdviceAdapter.afterBodyRead
(Object body, HttpInputMessage inputMessage, MethodParameter parameter, Type targetType, Class<? extends HttpMessageConverter<?>> converterType) The default implementation returns the body that was passed in.JsonViewRequestBodyAdvice.beforeBodyRead
(HttpInputMessage inputMessage, MethodParameter methodParameter, Type targetType, Class<? extends HttpMessageConverter<?>> selectedConverterType) RequestBodyAdvice.beforeBodyRead
(HttpInputMessage inputMessage, MethodParameter parameter, Type targetType, Class<? extends HttpMessageConverter<?>> converterType) Invoked second before the request body is read and converted.RequestBodyAdviceAdapter.beforeBodyRead
(HttpInputMessage inputMessage, MethodParameter parameter, Type targetType, Class<? extends HttpMessageConverter<?>> converterType) The default implementation returns the InputMessage that was passed in.final Object
AbstractMappingJacksonResponseBodyAdvice.beforeBodyWrite
(Object body, MethodParameter returnType, MediaType contentType, Class<? extends HttpMessageConverter<?>> converterType, ServerHttpRequest request, ServerHttpResponse response) ResponseBodyAdvice.beforeBodyWrite
(T body, MethodParameter returnType, MediaType selectedContentType, Class<? extends HttpMessageConverter<?>> selectedConverterType, ServerHttpRequest request, ServerHttpResponse response) Invoked after anHttpMessageConverter
is selected and just before its write method is invoked.protected abstract void
AbstractMappingJacksonResponseBodyAdvice.beforeBodyWriteInternal
(MappingJacksonValue bodyContainer, MediaType contentType, MethodParameter returnType, ServerHttpRequest request, ServerHttpResponse response) Invoked only if the converter type isMappingJackson2HttpMessageConverter
.protected void
JsonViewResponseBodyAdvice.beforeBodyWriteInternal
(MappingJacksonValue bodyContainer, MediaType contentType, MethodParameter returnType, ServerHttpRequest request, ServerHttpResponse response) protected boolean
RequestResponseBodyMethodProcessor.checkRequired
(MethodParameter parameter) void
PathVariableMethodArgumentResolver.contributeMethodArgument
(MethodParameter parameter, Object value, UriComponentsBuilder builder, Map<String, Object> uriVariables, ConversionService conversionService) protected final Object
ServletModelAttributeMethodProcessor.createAttribute
(String attributeName, MethodParameter parameter, WebDataBinderFactory binderFactory, NativeWebRequest request) Instantiate the model attribute from a URI template variable or from a request parameter if the name matches to the model attribute name and if there is an appropriate type conversion strategy.protected Object
ServletModelAttributeMethodProcessor.createAttributeFromRequestValue
(String sourceValue, String attributeName, MethodParameter parameter, WebDataBinderFactory binderFactory, NativeWebRequest request) Create a model attribute from a String request value (e.g.MatrixVariableMethodArgumentResolver.createNamedValueInfo
(MethodParameter parameter) PathVariableMethodArgumentResolver.createNamedValueInfo
(MethodParameter parameter) RequestAttributeMethodArgumentResolver.createNamedValueInfo
(MethodParameter parameter) SessionAttributeMethodArgumentResolver.createNamedValueInfo
(MethodParameter parameter) protected Class<?>
AbstractMessageConverterMethodProcessor.getReturnValueType
(Object value, MethodParameter returnType) Return the type of the value to be written to the response.protected Class<?>
HttpEntityMethodProcessor.getReturnValueType
(Object returnValue, MethodParameter returnType) RequestBodyAdvice.handleEmptyBody
(Object body, HttpInputMessage inputMessage, MethodParameter parameter, Type targetType, Class<? extends HttpMessageConverter<?>> converterType) Invoked second (and last) if the body is empty.RequestBodyAdviceAdapter.handleEmptyBody
(Object body, HttpInputMessage inputMessage, MethodParameter parameter, Type targetType, Class<? extends HttpMessageConverter<?>> converterType) The default implementation returns the body that was passed in.protected void
MatrixVariableMethodArgumentResolver.handleMissingValue
(String name, MethodParameter parameter) protected void
PathVariableMethodArgumentResolver.handleMissingValue
(String name, MethodParameter parameter) protected void
RequestAttributeMethodArgumentResolver.handleMissingValue
(String name, MethodParameter parameter) protected void
SessionAttributeMethodArgumentResolver.handleMissingValue
(String name, MethodParameter parameter) protected void
MatrixVariableMethodArgumentResolver.handleMissingValueAfterConversion
(String name, MethodParameter parameter, NativeWebRequest request) protected void
PathVariableMethodArgumentResolver.handleMissingValueAfterConversion
(String name, MethodParameter parameter, NativeWebRequest request) protected void
PathVariableMethodArgumentResolver.handleResolvedValue
(Object arg, String name, MethodParameter parameter, ModelAndViewContainer mavContainer, NativeWebRequest request) void
AsyncTaskMethodReturnValueHandler.handleReturnValue
(Object returnValue, MethodParameter returnType, ModelAndViewContainer mavContainer, NativeWebRequest webRequest) void
CallableMethodReturnValueHandler.handleReturnValue
(Object returnValue, MethodParameter returnType, ModelAndViewContainer mavContainer, NativeWebRequest webRequest) void
DeferredResultMethodReturnValueHandler.handleReturnValue
(Object returnValue, MethodParameter returnType, ModelAndViewContainer mavContainer, NativeWebRequest webRequest) void
HttpEntityMethodProcessor.handleReturnValue
(Object returnValue, MethodParameter returnType, ModelAndViewContainer mavContainer, NativeWebRequest webRequest) void
HttpHeadersReturnValueHandler.handleReturnValue
(Object returnValue, MethodParameter returnType, ModelAndViewContainer mavContainer, NativeWebRequest webRequest) void
ModelAndViewMethodReturnValueHandler.handleReturnValue
(Object returnValue, MethodParameter returnType, ModelAndViewContainer mavContainer, NativeWebRequest webRequest) void
ModelAndViewResolverMethodReturnValueHandler.handleReturnValue
(Object returnValue, MethodParameter returnType, ModelAndViewContainer mavContainer, NativeWebRequest webRequest) void
RequestResponseBodyMethodProcessor.handleReturnValue
(Object returnValue, MethodParameter returnType, ModelAndViewContainer mavContainer, NativeWebRequest webRequest) void
ResponseBodyEmitterReturnValueHandler.handleReturnValue
(Object returnValue, MethodParameter returnType, ModelAndViewContainer mavContainer, NativeWebRequest webRequest) void
StreamingResponseBodyReturnValueHandler.handleReturnValue
(Object returnValue, MethodParameter returnType, ModelAndViewContainer mavContainer, NativeWebRequest webRequest) void
ViewMethodReturnValueHandler.handleReturnValue
(Object returnValue, MethodParameter returnType, ModelAndViewContainer mavContainer, NativeWebRequest webRequest) void
ViewNameMethodReturnValueHandler.handleReturnValue
(Object returnValue, MethodParameter returnType, ModelAndViewContainer mavContainer, NativeWebRequest webRequest) protected boolean
AbstractMessageConverterMethodArgumentResolver.isBindExceptionRequired
(WebDataBinder binder, MethodParameter parameter) Whether to raise a fatal bind exception on validation errors.protected boolean
AbstractMessageConverterMethodProcessor.isResourceType
(Object value, MethodParameter returnType) Return whether the returned value or the declared return type extendsResource
.protected <T> Object
AbstractMessageConverterMethodArgumentResolver.readWithMessageConverters
(HttpInputMessage inputMessage, MethodParameter parameter, Type targetType) Create the method argument value of the expected parameter type by reading from the given HttpInputMessage.protected <T> Object
AbstractMessageConverterMethodArgumentResolver.readWithMessageConverters
(NativeWebRequest webRequest, MethodParameter parameter, Type paramType) Create the method argument value of the expected parameter type by reading from the given request.protected <T> Object
RequestResponseBodyMethodProcessor.readWithMessageConverters
(NativeWebRequest webRequest, MethodParameter parameter, Type paramType) ContinuationHandlerMethodArgumentResolver.resolveArgument
(MethodParameter parameter, ModelAndViewContainer mavContainer, NativeWebRequest webRequest, WebDataBinderFactory binderFactory) HttpEntityMethodProcessor.resolveArgument
(MethodParameter parameter, ModelAndViewContainer mavContainer, NativeWebRequest webRequest, WebDataBinderFactory binderFactory) MatrixVariableMapMethodArgumentResolver.resolveArgument
(MethodParameter parameter, ModelAndViewContainer mavContainer, NativeWebRequest request, WebDataBinderFactory binderFactory) PathVariableMapMethodArgumentResolver.resolveArgument
(MethodParameter parameter, ModelAndViewContainer mavContainer, NativeWebRequest webRequest, WebDataBinderFactory binderFactory) Return a Map with all URI template variables or an empty map.PrincipalMethodArgumentResolver.resolveArgument
(MethodParameter parameter, ModelAndViewContainer mavContainer, NativeWebRequest webRequest, WebDataBinderFactory binderFactory) RedirectAttributesMethodArgumentResolver.resolveArgument
(MethodParameter parameter, ModelAndViewContainer mavContainer, NativeWebRequest webRequest, WebDataBinderFactory binderFactory) RequestPartMethodArgumentResolver.resolveArgument
(MethodParameter parameter, ModelAndViewContainer mavContainer, NativeWebRequest request, WebDataBinderFactory binderFactory) RequestResponseBodyMethodProcessor.resolveArgument
(MethodParameter parameter, ModelAndViewContainer mavContainer, NativeWebRequest webRequest, WebDataBinderFactory binderFactory) Throws MethodArgumentNotValidException if validation fails.ServletRequestMethodArgumentResolver.resolveArgument
(MethodParameter parameter, ModelAndViewContainer mavContainer, NativeWebRequest webRequest, WebDataBinderFactory binderFactory) ServletResponseMethodArgumentResolver.resolveArgument
(MethodParameter parameter, ModelAndViewContainer mavContainer, NativeWebRequest webRequest, WebDataBinderFactory binderFactory) SetModelAndViewContainer.setRequestHandled(boolean)
tofalse
to indicate that the method signature provides access to the response.UriComponentsBuilderMethodArgumentResolver.resolveArgument
(MethodParameter parameter, ModelAndViewContainer mavContainer, NativeWebRequest webRequest, WebDataBinderFactory binderFactory) protected Object
MatrixVariableMethodArgumentResolver.resolveName
(String name, MethodParameter parameter, NativeWebRequest request) protected Object
PathVariableMethodArgumentResolver.resolveName
(String name, MethodParameter parameter, NativeWebRequest request) protected Object
RequestAttributeMethodArgumentResolver.resolveName
(String name, MethodParameter parameter, NativeWebRequest request) protected Object
ServletCookieValueMethodArgumentResolver.resolveName
(String cookieName, MethodParameter parameter, NativeWebRequest webRequest) protected Object
SessionAttributeMethodArgumentResolver.resolveName
(String name, MethodParameter parameter, NativeWebRequest request) boolean
AbstractMappingJacksonResponseBodyAdvice.supports
(MethodParameter returnType, Class<? extends HttpMessageConverter<?>> converterType) boolean
JsonViewRequestBodyAdvice.supports
(MethodParameter methodParameter, Type targetType, Class<? extends HttpMessageConverter<?>> converterType) boolean
JsonViewResponseBodyAdvice.supports
(MethodParameter returnType, Class<? extends HttpMessageConverter<?>> converterType) boolean
RequestBodyAdvice.supports
(MethodParameter methodParameter, Type targetType, Class<? extends HttpMessageConverter<?>> converterType) Invoked first to determine if this interceptor applies.boolean
ResponseBodyAdvice.supports
(MethodParameter returnType, Class<? extends HttpMessageConverter<?>> converterType) Whether this component supports the given controller method return type and the selectedHttpMessageConverter
type.boolean
ContinuationHandlerMethodArgumentResolver.supportsParameter
(MethodParameter parameter) boolean
HttpEntityMethodProcessor.supportsParameter
(MethodParameter parameter) boolean
MatrixVariableMapMethodArgumentResolver.supportsParameter
(MethodParameter parameter) boolean
MatrixVariableMethodArgumentResolver.supportsParameter
(MethodParameter parameter) boolean
PathVariableMapMethodArgumentResolver.supportsParameter
(MethodParameter parameter) boolean
PathVariableMethodArgumentResolver.supportsParameter
(MethodParameter parameter) boolean
PrincipalMethodArgumentResolver.supportsParameter
(MethodParameter parameter) boolean
RedirectAttributesMethodArgumentResolver.supportsParameter
(MethodParameter parameter) boolean
RequestAttributeMethodArgumentResolver.supportsParameter
(MethodParameter parameter) boolean
RequestPartMethodArgumentResolver.supportsParameter
(MethodParameter parameter) Whether the given method parameter is supported as multipart.boolean
RequestResponseBodyMethodProcessor.supportsParameter
(MethodParameter parameter) boolean
ServletRequestMethodArgumentResolver.supportsParameter
(MethodParameter parameter) boolean
ServletResponseMethodArgumentResolver.supportsParameter
(MethodParameter parameter) boolean
SessionAttributeMethodArgumentResolver.supportsParameter
(MethodParameter parameter) boolean
UriComponentsBuilderMethodArgumentResolver.supportsParameter
(MethodParameter parameter) boolean
AsyncTaskMethodReturnValueHandler.supportsReturnType
(MethodParameter returnType) boolean
CallableMethodReturnValueHandler.supportsReturnType
(MethodParameter returnType) boolean
DeferredResultMethodReturnValueHandler.supportsReturnType
(MethodParameter returnType) boolean
HttpEntityMethodProcessor.supportsReturnType
(MethodParameter returnType) boolean
HttpHeadersReturnValueHandler.supportsReturnType
(MethodParameter returnType) boolean
ModelAndViewMethodReturnValueHandler.supportsReturnType
(MethodParameter returnType) boolean
ModelAndViewResolverMethodReturnValueHandler.supportsReturnType
(MethodParameter returnType) Always returnstrue
.boolean
RequestResponseBodyMethodProcessor.supportsReturnType
(MethodParameter returnType) boolean
ResponseBodyEmitterReturnValueHandler.supportsReturnType
(MethodParameter returnType) boolean
StreamingResponseBodyReturnValueHandler.supportsReturnType
(MethodParameter returnType) boolean
ViewMethodReturnValueHandler.supportsReturnType
(MethodParameter returnType) boolean
ViewNameMethodReturnValueHandler.supportsReturnType
(MethodParameter returnType) protected void
AbstractMessageConverterMethodArgumentResolver.validateIfApplicable
(WebDataBinder binder, MethodParameter parameter) Validate the binding target if applicable.protected <T> void
AbstractMessageConverterMethodProcessor.writeWithMessageConverters
(T value, MethodParameter returnType, ServletServerHttpRequest inputMessage, ServletServerHttpResponse outputMessage) Writes the given return type to the given output message.protected <T> void
AbstractMessageConverterMethodProcessor.writeWithMessageConverters
(T value, MethodParameter returnType, NativeWebRequest webRequest) Writes the given return value to the given web request.
forExecutable(java.lang.reflect.Executable, int)