Package | Description |
---|---|
org.springframework.beans |
This package contains interfaces and classes for manipulating Java beans.
|
org.springframework.beans.factory |
The core package implementing Spring's lightweight Inversion of Control (IoC) container.
|
org.springframework.beans.factory.config |
SPI interfaces and configuration-related convenience classes for bean factories.
|
org.springframework.core |
Provides basic classes for exception handling and version detection,
and other core helpers that are not specific to any part of the framework.
|
org.springframework.core.annotation |
Core support package for annotations, meta-annotations, and merged
annotations with attribute overrides.
|
org.springframework.core.convert |
Type conversion system API.
|
org.springframework.http.codec.json |
JSON encoder and decoder support.
|
org.springframework.jmx.access |
Provides support for accessing remote MBean resources.
|
org.springframework.messaging.handler |
Basic abstractions for working with message handler methods.
|
org.springframework.messaging.handler.annotation.reactive |
Support classes for working with annotated message-handling methods with
non-blocking, reactive contracts.
|
org.springframework.messaging.handler.annotation.support |
Support classes for working with annotated message-handling methods.
|
org.springframework.messaging.handler.invocation |
Common infrastructure for invoking message handler methods.
|
org.springframework.messaging.handler.invocation.reactive |
Common infrastructure for invoking message handler methods with non-blocking,
and reactive contracts.
|
org.springframework.messaging.rsocket.annotation.support |
Support classes for working with annotated RSocket stream handling methods.
|
org.springframework.messaging.simp.annotation.support |
Support classes for handling messages from simple messaging protocols
(like STOMP).
|
org.springframework.validation |
Provides data binding and validation functionality,
for usage in business and/or UI layers.
|
org.springframework.web.bind |
Provides web-specific data binding functionality.
|
org.springframework.web.bind.support |
Support classes for web data binding.
|
org.springframework.web.method |
Common infrastructure for handler method processing, as used by
Spring MVC's
org.springframework.web.servlet.mvc.method package. |
org.springframework.web.method.annotation |
Support classes for annotation-based handler method processing.
|
org.springframework.web.method.support |
Generic support classes for handler method processing.
|
org.springframework.web.multipart.support |
Support classes for the multipart resolution framework.
|
org.springframework.web.reactive |
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. |
org.springframework.web.reactive.result.method |
Infrastructure for handler method processing.
|
org.springframework.web.reactive.result.method.annotation |
Infrastructure for annotation-based handler method processing.
|
org.springframework.web.server |
Core interfaces and classes for Spring's generic, reactive web support.
|
org.springframework.web.servlet.mvc.method.annotation |
MVC infrastructure for annotation-based handler method processing, building on the
org.springframework.web.method.annotation package. |
Modifier and Type | Method and Description |
---|---|
static MethodParameter |
BeanUtils.getWriteMethodParameter(PropertyDescriptor pd)
Obtain a new MethodParameter object for the write method of the
specified property.
|
Modifier and Type | Method and Description |
---|---|
<T> T |
TypeConverterSupport.convertIfNecessary(Object value,
Class<T> requiredType,
MethodParameter methodParam) |
<T> T |
TypeConverter.convertIfNecessary(Object value,
Class<T> requiredType,
MethodParameter methodParam)
Convert the value to the required type (if necessary from a String).
|
Modifier and Type | Field and Description |
---|---|
protected MethodParameter |
InjectionPoint.methodParameter |
Modifier and Type | Method and Description |
---|---|
MethodParameter |
InjectionPoint.getMethodParameter()
Return the wrapped MethodParameter, if any.
|
protected MethodParameter |
InjectionPoint.obtainMethodParameter()
Return the wrapped MethodParameter, assuming it is present.
|
Constructor and Description |
---|
InjectionPoint(MethodParameter methodParameter)
Create an injection point descriptor for a method or constructor parameter.
|
Constructor and Description |
---|
DependencyDescriptor(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.
|
Modifier and Type | Method and Description |
---|---|
MethodParameter |
MethodParameter.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.
as of 5.0, in favor of
forExecutable(java.lang.reflect.Executable, int) |
static MethodParameter |
MethodParameter.forParameter(Parameter parameter)
Create a new MethodParameter for the given parameter descriptor.
|
MethodParameter |
MethodParameter.nested()
Return a variant of this
MethodParameter which points to the
same parameter but one nesting level deeper. |
MethodParameter |
MethodParameter.nested(Integer typeIndex)
Return a variant of this
MethodParameter which points to the
same parameter but one nesting level deeper. |
MethodParameter |
MethodParameter.nestedIfOptional()
Return a variant of this
MethodParameter which points to
the same parameter but one nesting level deeper in case of a
Optional declaration. |
MethodParameter |
MethodParameter.withContainingClass(Class<?> containingClass)
Return a variant of this
MethodParameter which refers to the
given containing class. |
MethodParameter |
MethodParameter.withTypeIndex(int typeIndex)
Return a variant of this
MethodParameter with the type
for the current level set to the specified value. |
Modifier and Type | Method and Description |
---|---|
static ResolvableType |
ResolvableType.forMethodParameter(MethodParameter methodParameter)
Return a
ResolvableType for the specified MethodParameter . |
static ResolvableType |
ResolvableType.forMethodParameter(MethodParameter methodParameter,
ResolvableType implementationType)
Return a
ResolvableType for the specified MethodParameter with a
given implementation type. |
static ResolvableType |
ResolvableType.forMethodParameter(MethodParameter methodParameter,
Type targetType)
Return a
ResolvableType for the specified MethodParameter ,
overriding the target type to resolve with a specific given 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 of
methodParameter.withContainingClass(implementationClass).getParameterType() |
Constructor and Description |
---|
MethodParameter(MethodParameter original)
Copy constructor, resulting in an independent MethodParameter object
based on the same metadata and cache state that the original object was in.
|
Modifier and Type | Class and Description |
---|---|
class |
SynthesizingMethodParameter
A
MethodParameter variant which synthesizes annotations that
declare attribute aliases via @AliasFor . |
Modifier and Type | Method and Description |
---|---|
static TypeDescriptor |
TypeDescriptor.nested(MethodParameter methodParameter,
int nestingLevel)
Create a type descriptor for a nested type declared within the method parameter.
|
Constructor and Description |
---|
TypeDescriptor(MethodParameter methodParameter)
Create a new type descriptor from a
MethodParameter . |
Modifier and Type | Method and Description |
---|---|
protected MethodParameter |
Jackson2CodecSupport.getParameter(ResolvableType type) |
Modifier and Type | Method and Description |
---|---|
protected <A extends Annotation> |
AbstractJackson2Encoder.getAnnotation(MethodParameter parameter,
Class<A> annotType) |
protected abstract <A extends Annotation> |
Jackson2CodecSupport.getAnnotation(MethodParameter parameter,
Class<A> annotType) |
protected <A extends Annotation> |
AbstractJackson2Decoder.getAnnotation(MethodParameter parameter,
Class<A> annotType) |
Modifier and Type | Method and Description |
---|---|
protected 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.
|
Modifier and Type | Class and Description |
---|---|
protected class |
HandlerMethod.HandlerMethodParameter
A MethodParameter with HandlerMethod-specific behavior.
|
Modifier and Type | Method and Description |
---|---|
MethodParameter[] |
HandlerMethod.getMethodParameters()
Return the method parameters for this handler method.
|
MethodParameter |
HandlerMethod.getReturnType()
Return the HandlerMethod return type.
|
MethodParameter |
HandlerMethod.getReturnValueType(Object returnValue)
Return the actual return value type.
|
Modifier and Type | Method and Description |
---|---|
protected static Object |
HandlerMethod.findProvidedArgument(MethodParameter parameter,
Object... providedArgs) |
protected static String |
HandlerMethod.formatArgumentError(MethodParameter param,
String message) |
Modifier and Type | Method and Description |
---|---|
protected AbstractNamedValueMethodArgumentResolver.NamedValueInfo |
DestinationVariableMethodArgumentResolver.createNamedValueInfo(MethodParameter parameter) |
protected abstract AbstractNamedValueMethodArgumentResolver.NamedValueInfo |
AbstractNamedValueMethodArgumentResolver.createNamedValueInfo(MethodParameter parameter)
Create the
AbstractNamedValueMethodArgumentResolver.NamedValueInfo object for the given method parameter. |
protected AbstractNamedValueMethodArgumentResolver.NamedValueInfo |
HeaderMethodArgumentResolver.createNamedValueInfo(MethodParameter parameter) |
protected void |
DestinationVariableMethodArgumentResolver.handleMissingValue(String name,
MethodParameter parameter,
Message<?> message) |
protected abstract void |
AbstractNamedValueMethodArgumentResolver.handleMissingValue(String name,
MethodParameter parameter,
Message<?> message)
Invoked when a value is required, but
AbstractNamedValueMethodArgumentResolver.resolveArgumentInternal(org.springframework.core.MethodParameter, org.springframework.messaging.Message<?>, java.lang.String)
returned null and there is no default value. |
protected void |
HeaderMethodArgumentResolver.handleMissingValue(String headerName,
MethodParameter parameter,
Message<?> message) |
reactor.core.publisher.Mono<Object> |
PayloadMethodArgumentResolver.resolveArgument(MethodParameter parameter,
Message<?> message)
Decode the content of the given message payload through a compatible
Decoder . |
reactor.core.publisher.Mono<Object> |
ContinuationHandlerMethodArgumentResolver.resolveArgument(MethodParameter parameter,
Message<?> message) |
protected Object |
DestinationVariableMethodArgumentResolver.resolveArgumentInternal(MethodParameter parameter,
Message<?> message,
String name) |
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 |
HeaderMethodArgumentResolver.resolveArgumentInternal(MethodParameter parameter,
Message<?> message,
String name) |
Object |
HeadersMethodArgumentResolver.resolveArgumentValue(MethodParameter parameter,
Message<?> message) |
Object |
AbstractNamedValueMethodArgumentResolver.resolveArgumentValue(MethodParameter parameter,
Message<?> message) |
boolean |
PayloadMethodArgumentResolver.supportsParameter(MethodParameter parameter) |
boolean |
ContinuationHandlerMethodArgumentResolver.supportsParameter(MethodParameter parameter) |
boolean |
HeadersMethodArgumentResolver.supportsParameter(MethodParameter parameter) |
boolean |
DestinationVariableMethodArgumentResolver.supportsParameter(MethodParameter parameter) |
boolean |
HeaderMethodArgumentResolver.supportsParameter(MethodParameter parameter) |
Modifier and Type | Method and Description |
---|---|
protected AbstractNamedValueMethodArgumentResolver.NamedValueInfo |
DestinationVariableMethodArgumentResolver.createNamedValueInfo(MethodParameter parameter) |
protected abstract AbstractNamedValueMethodArgumentResolver.NamedValueInfo |
AbstractNamedValueMethodArgumentResolver.createNamedValueInfo(MethodParameter parameter)
Create the
AbstractNamedValueMethodArgumentResolver.NamedValueInfo object for the given method parameter. |
protected AbstractNamedValueMethodArgumentResolver.NamedValueInfo |
HeaderMethodArgumentResolver.createNamedValueInfo(MethodParameter parameter) |
protected Class<?> |
MessageMethodArgumentResolver.getPayloadType(MethodParameter parameter,
Message<?> message)
Resolve the target class to convert the payload to.
|
protected void |
DestinationVariableMethodArgumentResolver.handleMissingValue(String name,
MethodParameter parameter,
Message<?> message) |
protected abstract void |
AbstractNamedValueMethodArgumentResolver.handleMissingValue(String name,
MethodParameter parameter,
Message<?> message)
Invoked when a value is required, but
AbstractNamedValueMethodArgumentResolver.resolveArgumentInternal(org.springframework.core.MethodParameter, org.springframework.messaging.Message<?>, java.lang.String)
returned null and there is no default value. |
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.
|
Object |
PayloadMethodArgumentResolver.resolveArgument(MethodParameter parameter,
Message<?> message) |
Object |
HeadersMethodArgumentResolver.resolveArgument(MethodParameter parameter,
Message<?> message) |
Object |
MessageMethodArgumentResolver.resolveArgument(MethodParameter parameter,
Message<?> message) |
Object |
AbstractNamedValueMethodArgumentResolver.resolveArgument(MethodParameter parameter,
Message<?> message) |
protected Object |
DestinationVariableMethodArgumentResolver.resolveArgumentInternal(MethodParameter parameter,
Message<?> message,
String name) |
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 |
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 |
PayloadMethodArgumentResolver.supportsParameter(MethodParameter parameter) |
boolean |
HeadersMethodArgumentResolver.supportsParameter(MethodParameter parameter) |
boolean |
DestinationVariableMethodArgumentResolver.supportsParameter(MethodParameter parameter) |
boolean |
MessageMethodArgumentResolver.supportsParameter(MethodParameter parameter) |
boolean |
HeaderMethodArgumentResolver.supportsParameter(MethodParameter parameter) |
protected void |
PayloadMethodArgumentResolver.validate(Message<?> message,
MethodParameter parameter,
Object target)
Validate the payload if applicable.
|
Constructor and Description |
---|
MethodArgumentNotValidException(Message<?> message,
MethodParameter parameter)
Create a new instance with the invalid
MethodParameter . |
MethodArgumentNotValidException(Message<?> message,
MethodParameter parameter,
BindingResult bindingResult)
Create a new instance with the invalid
MethodParameter and a
BindingResult . |
MethodArgumentTypeMismatchException(Message<?> message,
MethodParameter parameter,
String description) |
Modifier and Type | Method and Description |
---|---|
MethodParameter |
MethodArgumentResolutionException.getMethodParameter()
Return the MethodParameter that was rejected.
|
Modifier and Type | Method and Description |
---|---|
void |
HandlerMethodReturnValueHandler.handleReturnValue(Object returnValue,
MethodParameter returnType,
Message<?> message)
Handle the given return value.
|
void |
AbstractAsyncReturnValueHandler.handleReturnValue(Object returnValue,
MethodParameter returnType,
Message<?> message) |
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 |
ReactiveReturnValueHandler.isAsyncReturnValue(Object returnValue,
MethodParameter returnType) |
boolean |
HandlerMethodReturnValueHandlerComposite.isAsyncReturnValue(Object returnValue,
MethodParameter returnType) |
Object |
HandlerMethodArgumentResolverComposite.resolveArgument(MethodParameter parameter,
Message<?> message)
Iterate over registered
HandlerMethodArgumentResolvers
and invoke the one that supports it. |
Object |
HandlerMethodArgumentResolver.resolveArgument(MethodParameter parameter,
Message<?> message)
Resolves a method parameter into an argument value from a given message.
|
boolean |
HandlerMethodArgumentResolverComposite.supportsParameter(MethodParameter parameter)
Whether the given method parameter is
supported by any registered
HandlerMethodArgumentResolver . |
boolean |
HandlerMethodArgumentResolver.supportsParameter(MethodParameter parameter)
Whether the given method parameter is
supported by this resolver.
|
boolean |
HandlerMethodReturnValueHandler.supportsReturnType(MethodParameter returnType)
Whether the given method return type is
supported by this handler.
|
boolean |
CompletableFutureReturnValueHandler.supportsReturnType(MethodParameter returnType) |
boolean |
ReactiveReturnValueHandler.supportsReturnType(MethodParameter returnType) |
boolean |
ListenableFutureReturnValueHandler.supportsReturnType(MethodParameter returnType) |
boolean |
HandlerMethodReturnValueHandlerComposite.supportsReturnType(MethodParameter returnType) |
ListenableFuture<?> |
CompletableFutureReturnValueHandler.toListenableFuture(Object returnValue,
MethodParameter returnType) |
ListenableFuture<?> |
AsyncHandlerMethodReturnValueHandler.toListenableFuture(Object returnValue,
MethodParameter returnType)
Adapt the asynchronous return value to a
ListenableFuture . |
ListenableFuture<?> |
ReactiveReturnValueHandler.toListenableFuture(Object returnValue,
MethodParameter returnType) |
ListenableFuture<?> |
ListenableFutureReturnValueHandler.toListenableFuture(Object returnValue,
MethodParameter returnType) |
ListenableFuture<?> |
HandlerMethodReturnValueHandlerComposite.toListenableFuture(Object returnValue,
MethodParameter returnType) |
Constructor and Description |
---|
MethodArgumentResolutionException(Message<?> message,
MethodParameter parameter)
Create a new instance providing the invalid
MethodParameter . |
MethodArgumentResolutionException(Message<?> message,
MethodParameter parameter,
String description)
Create a new instance providing the invalid
MethodParameter and
a prepared description. |
MethodArgumentResolutionException(Message<?> message,
MethodParameter parameter,
String description,
Throwable cause)
Create a new instance providing the invalid
MethodParameter ,
prepared description, and a cause. |
Modifier and Type | Method and Description |
---|---|
HandlerMethodArgumentResolver |
HandlerMethodArgumentResolverComposite.getArgumentResolver(MethodParameter parameter)
Find a registered
HandlerMethodArgumentResolver 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 a
null return value, which could mean a void method
or method returning an async type parameterized by void. |
reactor.core.publisher.Mono<Void> |
HandlerMethodReturnValueHandler.handleReturnValue(Object returnValue,
MethodParameter returnType,
Message<?> message)
Handle the given return value.
|
reactor.core.publisher.Mono<Void> |
AbstractEncoderMethodReturnValueHandler.handleReturnValue(Object returnValue,
MethodParameter returnType,
Message<?> message) |
reactor.core.publisher.Mono<Void> |
HandlerMethodReturnValueHandlerComposite.handleReturnValue(Object returnValue,
MethodParameter returnType,
Message<?> message) |
default reactor.core.publisher.Mono<Object> |
SyncHandlerMethodArgumentResolver.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 registered
HandlerMethodArgumentResolvers and
invoke the one that supports it. |
reactor.core.publisher.Mono<Object> |
HandlerMethodArgumentResolver.resolveArgument(MethodParameter parameter,
Message<?> message)
Resolves a method parameter into an argument value from a given message.
|
Object |
SyncHandlerMethodArgumentResolver.resolveArgumentValue(MethodParameter parameter,
Message<?> message)
Resolve the value for the method parameter synchronously.
|
boolean |
HandlerMethodArgumentResolverComposite.supportsParameter(MethodParameter parameter)
Whether the given method parameter is
supported by any registered
HandlerMethodArgumentResolver . |
boolean |
HandlerMethodArgumentResolver.supportsParameter(MethodParameter parameter)
Whether the given method parameter is
supported by this resolver.
|
boolean |
HandlerMethodReturnValueHandler.supportsReturnType(MethodParameter returnType)
Whether the given method return type is
supported by this handler.
|
boolean |
AbstractEncoderMethodReturnValueHandler.supportsReturnType(MethodParameter returnType) |
boolean |
HandlerMethodReturnValueHandlerComposite.supportsReturnType(MethodParameter returnType) |
Modifier and Type | Method and Description |
---|---|
protected 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) |
Modifier and Type | Method and Description |
---|---|
void |
SubscriptionMethodReturnValueHandler.handleReturnValue(Object returnValue,
MethodParameter returnType,
Message<?> message) |
void |
SendToMethodReturnValueHandler.handleReturnValue(Object returnValue,
MethodParameter returnType,
Message<?> message) |
Object |
PrincipalMethodArgumentResolver.resolveArgument(MethodParameter parameter,
Message<?> message) |
boolean |
PrincipalMethodArgumentResolver.supportsParameter(MethodParameter parameter) |
boolean |
SubscriptionMethodReturnValueHandler.supportsReturnType(MethodParameter returnType) |
boolean |
SendToMethodReturnValueHandler.supportsReturnType(MethodParameter returnType) |
Modifier and Type | Method and Description |
---|---|
<T> T |
DataBinder.convertIfNecessary(Object value,
Class<T> requiredType,
MethodParameter methodParam) |
Modifier and Type | Method and Description |
---|---|
MethodParameter |
MissingPathVariableException.getParameter()
Return the method parameter bound to the path variable.
|
MethodParameter |
MissingRequestHeaderException.getParameter()
Return the method parameter bound to the request header.
|
MethodParameter |
MethodArgumentNotValidException.getParameter()
Return the method parameter that failed validation.
|
MethodParameter |
MissingRequestCookieException.getParameter()
Return the method parameter bound to the request cookie.
|
MethodParameter |
MissingMatrixVariableException.getParameter()
Return the method parameter bound to the matrix variable.
|
Constructor and Description |
---|
MethodArgumentNotValidException(MethodParameter parameter,
BindingResult bindingResult)
Constructor for
MethodArgumentNotValidException . |
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 to
null . |
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 to
null . |
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 to
null . |
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 to
null . |
Modifier and Type | Method and Description |
---|---|
Object |
WebArgumentResolver.resolveArgument(MethodParameter methodParameter,
NativeWebRequest webRequest)
Resolve an argument for the given handler method parameter within the given web request.
|
Constructor and Description |
---|
WebExchangeBindException(MethodParameter parameter,
BindingResult bindingResult) |
Modifier and Type | Method and Description |
---|---|
MethodParameter[] |
HandlerMethod.getMethodParameters()
Return the method parameters for this handler method.
|
MethodParameter |
HandlerMethod.getReturnType()
Return the HandlerMethod return type.
|
MethodParameter |
HandlerMethod.getReturnValueType(Object returnValue)
Return the actual return value type.
|
Modifier and Type | Method and Description |
---|---|
protected static Object |
HandlerMethod.findProvidedArgument(MethodParameter parameter,
Object... providedArgs) |
protected static String |
HandlerMethod.formatArgumentError(MethodParameter param,
String message) |
Modifier and Type | Method and Description |
---|---|
MethodParameter |
MethodArgumentTypeMismatchException.getParameter()
Return the target method parameter.
|
MethodParameter |
MethodArgumentConversionNotSupportedException.getParameter()
Return the target method parameter.
|
Modifier and Type | Method and Description |
---|---|
protected 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).
|
protected abstract AbstractNamedValueMethodArgumentResolver.NamedValueInfo |
AbstractNamedValueMethodArgumentResolver.createNamedValueInfo(MethodParameter parameter)
Create the
AbstractNamedValueMethodArgumentResolver.NamedValueInfo object for the given method parameter. |
protected AbstractNamedValueMethodArgumentResolver.NamedValueInfo |
RequestHeaderMethodArgumentResolver.createNamedValueInfo(MethodParameter parameter) |
protected AbstractNamedValueMethodArgumentResolver.NamedValueInfo |
AbstractCookieValueMethodArgumentResolver.createNamedValueInfo(MethodParameter parameter) |
protected AbstractNamedValueMethodArgumentResolver.NamedValueInfo |
RequestParamMethodArgumentResolver.createNamedValueInfo(MethodParameter parameter) |
protected AbstractNamedValueMethodArgumentResolver.NamedValueInfo |
ExpressionValueMethodArgumentResolver.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 |
AbstractNamedValueMethodArgumentResolver.handleMissingValue(String name,
MethodParameter parameter)
Invoked when a named value is required, but
AbstractNamedValueMethodArgumentResolver.resolveName(String, MethodParameter, NativeWebRequest)
returned null and there is no default value. |
protected void |
RequestHeaderMethodArgumentResolver.handleMissingValue(String name,
MethodParameter parameter) |
protected void |
AbstractCookieValueMethodArgumentResolver.handleMissingValue(String name,
MethodParameter parameter) |
protected void |
ExpressionValueMethodArgumentResolver.handleMissingValue(String name,
MethodParameter parameter) |
protected void |
AbstractNamedValueMethodArgumentResolver.handleMissingValue(String name,
MethodParameter parameter,
NativeWebRequest request)
Invoked when a named value is required, but
AbstractNamedValueMethodArgumentResolver.resolveName(String, MethodParameter, NativeWebRequest)
returned null and there is no default value. |
protected void |
RequestParamMethodArgumentResolver.handleMissingValue(String name,
MethodParameter parameter,
NativeWebRequest request) |
protected void |
AbstractNamedValueMethodArgumentResolver.handleMissingValueAfterConversion(String name,
MethodParameter parameter,
NativeWebRequest request)
Invoked when a named value is present but becomes
null after conversion. |
protected void |
RequestHeaderMethodArgumentResolver.handleMissingValueAfterConversion(String name,
MethodParameter parameter,
NativeWebRequest request) |
protected void |
AbstractCookieValueMethodArgumentResolver.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 |
ModelAttributeMethodProcessor.handleReturnValue(Object returnValue,
MethodParameter returnType,
ModelAndViewContainer mavContainer,
NativeWebRequest webRequest)
Add non-null return values to the
ModelAndViewContainer . |
void |
MapMethodProcessor.handleReturnValue(Object returnValue,
MethodParameter returnType,
ModelAndViewContainer mavContainer,
NativeWebRequest webRequest) |
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.
|
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.
|
Object |
RequestParamMapMethodArgumentResolver.resolveArgument(MethodParameter parameter,
ModelAndViewContainer mavContainer,
NativeWebRequest webRequest,
WebDataBinderFactory binderFactory) |
Object |
AbstractNamedValueMethodArgumentResolver.resolveArgument(MethodParameter parameter,
ModelAndViewContainer mavContainer,
NativeWebRequest webRequest,
WebDataBinderFactory binderFactory) |
Object |
ErrorsMethodArgumentResolver.resolveArgument(MethodParameter parameter,
ModelAndViewContainer mavContainer,
NativeWebRequest webRequest,
WebDataBinderFactory binderFactory) |
Object |
MapMethodProcessor.resolveArgument(MethodParameter parameter,
ModelAndViewContainer mavContainer,
NativeWebRequest webRequest,
WebDataBinderFactory binderFactory) |
Object |
AbstractWebArgumentResolverAdapter.resolveArgument(MethodParameter parameter,
ModelAndViewContainer mavContainer,
NativeWebRequest webRequest,
WebDataBinderFactory binderFactory)
Delegate to the
WebArgumentResolver instance. |
Object |
RequestHeaderMapMethodArgumentResolver.resolveArgument(MethodParameter parameter,
ModelAndViewContainer mavContainer,
NativeWebRequest webRequest,
WebDataBinderFactory binderFactory) |
Object |
ModelMethodProcessor.resolveArgument(MethodParameter parameter,
ModelAndViewContainer mavContainer,
NativeWebRequest webRequest,
WebDataBinderFactory binderFactory) |
Object |
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 |
RequestHeaderMethodArgumentResolver.resolveName(String name,
MethodParameter parameter,
NativeWebRequest request) |
protected Object |
RequestParamMethodArgumentResolver.resolveName(String name,
MethodParameter parameter,
NativeWebRequest request) |
protected Object |
ExpressionValueMethodArgumentResolver.resolveName(String name,
MethodParameter parameter,
NativeWebRequest webRequest) |
boolean |
ModelAttributeMethodProcessor.supportsParameter(MethodParameter parameter)
Returns
true if the parameter is annotated with
ModelAttribute or, if in default resolution mode, for any
method parameter that is not a simple type. |
boolean |
RequestParamMapMethodArgumentResolver.supportsParameter(MethodParameter parameter) |
boolean |
RequestHeaderMethodArgumentResolver.supportsParameter(MethodParameter parameter) |
boolean |
ErrorsMethodArgumentResolver.supportsParameter(MethodParameter parameter) |
boolean |
MapMethodProcessor.supportsParameter(MethodParameter parameter) |
boolean |
AbstractWebArgumentResolverAdapter.supportsParameter(MethodParameter parameter)
Actually resolve the value and check the resolved value is not
WebArgumentResolver.UNRESOLVED absorbing _any_ exceptions. |
boolean |
RequestHeaderMapMethodArgumentResolver.supportsParameter(MethodParameter parameter) |
boolean |
ModelMethodProcessor.supportsParameter(MethodParameter parameter) |
boolean |
AbstractCookieValueMethodArgumentResolver.supportsParameter(MethodParameter parameter) |
boolean |
RequestParamMethodArgumentResolver.supportsParameter(MethodParameter parameter)
Supports the following:
@RequestParam-annotated method arguments.
|
boolean |
SessionStatusMethodArgumentResolver.supportsParameter(MethodParameter parameter) |
boolean |
ExpressionValueMethodArgumentResolver.supportsParameter(MethodParameter parameter) |
boolean |
ModelAttributeMethodProcessor.supportsReturnType(MethodParameter returnType)
Return
true if there is a method-level @ModelAttribute
or, in default resolution mode, for any return value type that is not
a simple type. |
boolean |
MapMethodProcessor.supportsReturnType(MethodParameter returnType) |
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.
|
Constructor and Description |
---|
MethodArgumentConversionNotSupportedException(Object value,
Class<?> requiredType,
String name,
MethodParameter param,
Throwable cause) |
MethodArgumentTypeMismatchException(Object value,
Class<?> requiredType,
String name,
MethodParameter param,
Throwable cause) |
Modifier and Type | Method and Description |
---|---|
void |
CompositeUriComponentsContributor.contributeMethodArgument(MethodParameter parameter,
Object value,
UriComponentsBuilder builder,
Map<String,Object> uriVariables)
An overloaded method that uses the ConversionService created at construction.
|
void |
UriComponentsContributor.contributeMethodArgument(MethodParameter parameter,
Object value,
UriComponentsBuilder builder,
Map<String,Object> uriVariables,
ConversionService conversionService)
Process the given method argument and either update the
UriComponentsBuilder or add to the map with URI variables
to use to expand the URI after all arguments are processed. |
void |
CompositeUriComponentsContributor.contributeMethodArgument(MethodParameter parameter,
Object value,
UriComponentsBuilder builder,
Map<String,Object> uriVariables,
ConversionService conversionService) |
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 the
ModelAndViewContainer.setRequestHandled(boolean) flag to true
to indicate the response has been handled directly. |
void |
HandlerMethodReturnValueHandlerComposite.handleReturnValue(Object returnValue,
MethodParameter returnType,
ModelAndViewContainer mavContainer,
NativeWebRequest webRequest)
Iterate over registered
HandlerMethodReturnValueHandlers and invoke the one that supports it. |
boolean |
AsyncHandlerMethodReturnValueHandler.isAsyncReturnValue(Object returnValue,
MethodParameter returnType)
Whether the given return value represents asynchronous computation.
|
Object |
HandlerMethodArgumentResolverComposite.resolveArgument(MethodParameter parameter,
ModelAndViewContainer mavContainer,
NativeWebRequest webRequest,
WebDataBinderFactory binderFactory)
Iterate over registered
HandlerMethodArgumentResolvers
and invoke the one that supports it. |
Object |
HandlerMethodArgumentResolver.resolveArgument(MethodParameter parameter,
ModelAndViewContainer mavContainer,
NativeWebRequest webRequest,
WebDataBinderFactory binderFactory)
Resolves a method parameter into an argument value from a given request.
|
boolean |
UriComponentsContributor.supportsParameter(MethodParameter parameter)
Whether this contributor supports the given method parameter.
|
boolean |
HandlerMethodArgumentResolverComposite.supportsParameter(MethodParameter parameter)
Whether the given method parameter is
supported by any registered
HandlerMethodArgumentResolver . |
boolean |
CompositeUriComponentsContributor.supportsParameter(MethodParameter parameter) |
boolean |
HandlerMethodArgumentResolver.supportsParameter(MethodParameter parameter)
Whether the given method parameter is
supported by this resolver.
|
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 registered
HandlerMethodReturnValueHandler . |
Modifier and Type | Method and Description |
---|---|
static boolean |
MultipartResolutionDelegate.isMultipartArgument(MethodParameter parameter) |
static Object |
MultipartResolutionDelegate.resolveMultipartArgument(String name,
MethodParameter parameter,
HttpServletRequest request) |
Modifier and Type | Method and Description |
---|---|
MethodParameter |
HandlerResult.getReturnTypeSource()
Return the
MethodParameter from which returnType was created. |
Constructor and Description |
---|
HandlerResult(Object handler,
Object returnValue,
MethodParameter returnType)
Create a new
HandlerResult . |
HandlerResult(Object handler,
Object returnValue,
MethodParameter returnType,
BindingContext context)
Create a new
HandlerResult . |
Modifier and Type | Method and Description |
---|---|
protected <A extends Annotation> |
HandlerMethodArgumentResolverSupport.checkAnnotatedParamNoReactiveWrapper(MethodParameter parameter,
Class<A> annotationType,
BiPredicate<A,Class<?>> typePredicate)
Evaluate the
Predicate on the method parameter type if it has the
given annotation, nesting within Optional if necessary,
but raise an IllegalStateException if the same matches the generic
type within a reactive type wrapper. |
protected boolean |
HandlerMethodArgumentResolverSupport.checkParameterType(MethodParameter parameter,
Predicate<Class<?>> predicate)
Evaluate the
Predicate 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 the
Predicate on the method parameter type but raise an
IllegalStateException if the same matches the generic type
within a reactive type wrapper. |
default reactor.core.publisher.Mono<Object> |
SyncHandlerMethodArgumentResolver.resolveArgument(MethodParameter parameter,
BindingContext bindingContext,
ServerWebExchange exchange)
Resolve the value for the method parameter.
|
reactor.core.publisher.Mono<Object> |
HandlerMethodArgumentResolver.resolveArgument(MethodParameter parameter,
BindingContext bindingContext,
ServerWebExchange exchange)
Resolve the value for the method parameter.
|
Object |
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.
|
Modifier and Type | Method and Description |
---|---|
protected AbstractNamedValueArgumentResolver.NamedValueInfo |
SessionAttributeMethodArgumentResolver.createNamedValueInfo(MethodParameter parameter) |
protected AbstractNamedValueArgumentResolver.NamedValueInfo |
RequestAttributeMethodArgumentResolver.createNamedValueInfo(MethodParameter parameter) |
protected AbstractNamedValueArgumentResolver.NamedValueInfo |
CookieValueMethodArgumentResolver.createNamedValueInfo(MethodParameter parameter) |
protected AbstractNamedValueArgumentResolver.NamedValueInfo |
MatrixVariableMethodArgumentResolver.createNamedValueInfo(MethodParameter parameter) |
protected AbstractNamedValueArgumentResolver.NamedValueInfo |
RequestHeaderMethodArgumentResolver.createNamedValueInfo(MethodParameter parameter) |
protected AbstractNamedValueArgumentResolver.NamedValueInfo |
PathVariableMethodArgumentResolver.createNamedValueInfo(MethodParameter parameter) |
protected abstract AbstractNamedValueArgumentResolver.NamedValueInfo |
AbstractNamedValueArgumentResolver.createNamedValueInfo(MethodParameter parameter)
Create the
AbstractNamedValueArgumentResolver.NamedValueInfo object for the given method parameter. |
protected AbstractNamedValueArgumentResolver.NamedValueInfo |
RequestParamMethodArgumentResolver.createNamedValueInfo(MethodParameter parameter) |
protected AbstractNamedValueArgumentResolver.NamedValueInfo |
ExpressionValueMethodArgumentResolver.createNamedValueInfo(MethodParameter parameter) |
reactor.core.publisher.Flux<Part> |
RequestPartMethodArgumentResolver.getPartValues(MethodParameter parameter,
RequestPart requestPart,
boolean isRequired,
ServerWebExchange exchange) |
protected void |
SessionAttributeMethodArgumentResolver.handleMissingValue(String name,
MethodParameter parameter) |
protected void |
RequestAttributeMethodArgumentResolver.handleMissingValue(String name,
MethodParameter parameter) |
protected void |
CookieValueMethodArgumentResolver.handleMissingValue(String name,
MethodParameter parameter) |
protected void |
MatrixVariableMethodArgumentResolver.handleMissingValue(String name,
MethodParameter parameter) |
protected void |
RequestHeaderMethodArgumentResolver.handleMissingValue(String name,
MethodParameter parameter) |
protected void |
PathVariableMethodArgumentResolver.handleMissingValue(String name,
MethodParameter parameter) |
protected void |
AbstractNamedValueArgumentResolver.handleMissingValue(String name,
MethodParameter parameter)
Invoked when a named value is required, but
AbstractNamedValueArgumentResolver.resolveName(String, MethodParameter, ServerWebExchange) returned
null and there is no default value. |
protected void |
ExpressionValueMethodArgumentResolver.handleMissingValue(String name,
MethodParameter parameter) |
protected void |
AbstractNamedValueArgumentResolver.handleMissingValue(String name,
MethodParameter parameter,
ServerWebExchange exchange)
Invoked when a named value is required, but
AbstractNamedValueArgumentResolver.resolveName(String, MethodParameter, ServerWebExchange) returned
null and there is no default value. |
protected void |
RequestParamMethodArgumentResolver.handleMissingValue(String name,
MethodParameter parameter,
ServerWebExchange exchange) |
protected void |
PathVariableMethodArgumentResolver.handleResolvedValue(Object arg,
String name,
MethodParameter parameter,
Model model,
ServerWebExchange exchange) |
protected void |
AbstractNamedValueArgumentResolver.handleResolvedValue(Object arg,
String name,
MethodParameter parameter,
Model model,
ServerWebExchange exchange)
Invoked after a value is resolved.
|
protected reactor.core.publisher.Mono<Object> |
AbstractMessageReaderArgumentResolver.readBody(MethodParameter bodyParameter,
boolean isBodyRequired,
BindingContext bindingContext,
ServerWebExchange exchange)
Read the body from a method argument with
HttpMessageReader . |
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 with
HttpMessageReader . |
reactor.core.publisher.Mono<Object> |
WebSessionMethodArgumentResolver.resolveArgument(MethodParameter parameter,
BindingContext context,
ServerWebExchange exchange) |
reactor.core.publisher.Mono<Object> |
ContinuationHandlerMethodArgumentResolver.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> |
HttpEntityMethodArgumentResolver.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> |
AbstractNamedValueSyncArgumentResolver.resolveArgument(MethodParameter parameter,
BindingContext bindingContext,
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> |
AbstractNamedValueArgumentResolver.resolveArgument(MethodParameter parameter,
BindingContext bindingContext,
ServerWebExchange exchange) |
reactor.core.publisher.Mono<Object> |
PrincipalMethodArgumentResolver.resolveArgument(MethodParameter parameter,
BindingContext context,
ServerWebExchange exchange) |
Object |
MatrixVariableMapMethodArgumentResolver.resolveArgumentValue(MethodParameter parameter,
BindingContext bindingContext,
ServerWebExchange exchange) |
Object |
ModelMethodArgumentResolver.resolveArgumentValue(MethodParameter parameter,
BindingContext context,
ServerWebExchange exchange) |
Object |
RequestParamMapMethodArgumentResolver.resolveArgumentValue(MethodParameter methodParameter,
BindingContext context,
ServerWebExchange exchange) |
Object |
PathVariableMapMethodArgumentResolver.resolveArgumentValue(MethodParameter methodParameter,
BindingContext context,
ServerWebExchange exchange) |
Object |
AbstractNamedValueSyncArgumentResolver.resolveArgumentValue(MethodParameter parameter,
BindingContext context,
ServerWebExchange exchange) |
Object |
ServerWebExchangeMethodArgumentResolver.resolveArgumentValue(MethodParameter methodParameter,
BindingContext context,
ServerWebExchange exchange) |
Object |
RequestHeaderMapMethodArgumentResolver.resolveArgumentValue(MethodParameter methodParameter,
BindingContext context,
ServerWebExchange exchange) |
Object |
SessionStatusMethodArgumentResolver.resolveArgumentValue(MethodParameter parameter,
BindingContext bindingContext,
ServerWebExchange exchange) |
protected reactor.core.publisher.Mono<Object> |
SessionAttributeMethodArgumentResolver.resolveName(String name,
MethodParameter parameter,
ServerWebExchange exchange) |
protected reactor.core.publisher.Mono<Object> |
AbstractNamedValueSyncArgumentResolver.resolveName(String name,
MethodParameter param,
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 Object |
RequestAttributeMethodArgumentResolver.resolveNamedValue(String name,
MethodParameter parameter,
ServerWebExchange exchange) |
protected Object |
CookieValueMethodArgumentResolver.resolveNamedValue(String name,
MethodParameter parameter,
ServerWebExchange exchange) |
protected Object |
MatrixVariableMethodArgumentResolver.resolveNamedValue(String name,
MethodParameter param,
ServerWebExchange exchange) |
protected Object |
RequestHeaderMethodArgumentResolver.resolveNamedValue(String name,
MethodParameter parameter,
ServerWebExchange exchange) |
protected abstract Object |
AbstractNamedValueSyncArgumentResolver.resolveNamedValue(String name,
MethodParameter param,
ServerWebExchange exchange)
Actually resolve the value synchronously.
|
protected Object |
PathVariableMethodArgumentResolver.resolveNamedValue(String name,
MethodParameter parameter,
ServerWebExchange exchange) |
protected Object |
RequestParamMethodArgumentResolver.resolveNamedValue(String name,
MethodParameter parameter,
ServerWebExchange exchange) |
protected Object |
ExpressionValueMethodArgumentResolver.resolveNamedValue(String name,
MethodParameter parameter,
ServerWebExchange exchange) |
boolean |
WebSessionMethodArgumentResolver.supportsParameter(MethodParameter parameter) |
boolean |
SessionAttributeMethodArgumentResolver.supportsParameter(MethodParameter parameter) |
boolean |
RequestAttributeMethodArgumentResolver.supportsParameter(MethodParameter param) |
boolean |
MatrixVariableMapMethodArgumentResolver.supportsParameter(MethodParameter parameter) |
boolean |
ModelMethodArgumentResolver.supportsParameter(MethodParameter param) |
boolean |
CookieValueMethodArgumentResolver.supportsParameter(MethodParameter param) |
boolean |
ContinuationHandlerMethodArgumentResolver.supportsParameter(MethodParameter parameter) |
boolean |
ModelAttributeMethodArgumentResolver.supportsParameter(MethodParameter parameter) |
boolean |
MatrixVariableMethodArgumentResolver.supportsParameter(MethodParameter parameter) |
boolean |
RequestParamMapMethodArgumentResolver.supportsParameter(MethodParameter param) |
boolean |
PathVariableMapMethodArgumentResolver.supportsParameter(MethodParameter parameter) |
boolean |
HttpEntityMethodArgumentResolver.supportsParameter(MethodParameter parameter) |
boolean |
RequestHeaderMethodArgumentResolver.supportsParameter(MethodParameter param) |
boolean |
ErrorsMethodArgumentResolver.supportsParameter(MethodParameter parameter) |
boolean |
PathVariableMethodArgumentResolver.supportsParameter(MethodParameter parameter) |
boolean |
RequestBodyMethodArgumentResolver.supportsParameter(MethodParameter parameter) |
boolean |
ServerWebExchangeMethodArgumentResolver.supportsParameter(MethodParameter parameter) |
boolean |
RequestHeaderMapMethodArgumentResolver.supportsParameter(MethodParameter param) |
boolean |
RequestPartMethodArgumentResolver.supportsParameter(MethodParameter parameter) |
boolean |
PrincipalMethodArgumentResolver.supportsParameter(MethodParameter parameter) |
boolean |
RequestParamMethodArgumentResolver.supportsParameter(MethodParameter param) |
boolean |
SessionStatusMethodArgumentResolver.supportsParameter(MethodParameter parameter) |
boolean |
ExpressionValueMethodArgumentResolver.supportsParameter(MethodParameter param) |
protected reactor.core.publisher.Mono<Void> |
AbstractMessageWriterResultHandler.writeBody(Object body,
MethodParameter bodyParameter,
MethodParameter actualParam,
ServerWebExchange exchange)
Write a given body to the response with
HttpMessageWriter . |
protected reactor.core.publisher.Mono<Void> |
AbstractMessageWriterResultHandler.writeBody(Object body,
MethodParameter bodyParameter,
ServerWebExchange exchange)
Write a given body to the response with
HttpMessageWriter . |
Modifier and Type | Method and Description |
---|---|
MethodParameter |
ServerWebInputException.getMethodParameter()
Return the
MethodParameter associated with this error, if any. |
MethodParameter |
ServerErrorException.getMethodParameter()
Return the specific method parameter associated with the error, if any.
|
Constructor and Description |
---|
ServerErrorException(String reason,
MethodParameter parameter)
Deprecated.
|
ServerErrorException(String reason,
MethodParameter parameter,
Throwable cause)
Constructor for a 500 error with a
MethodParameter and an optional cause. |
ServerWebInputException(String reason,
MethodParameter parameter)
Constructor for a 400 error linked to a specific
MethodParameter . |
ServerWebInputException(String reason,
MethodParameter parameter,
Throwable cause)
Constructor for a 400 error with a root cause.
|
Modifier and Type | Method and Description |
---|---|
protected Object |
AbstractMessageConverterMethodArgumentResolver.adaptArgumentIfNecessary(Object arg,
MethodParameter parameter)
Adapt the given argument against the method parameter, if necessary.
|
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.
|
Object |
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.
|
HttpInputMessage |
RequestBodyAdviceAdapter.beforeBodyRead(HttpInputMessage inputMessage,
MethodParameter parameter,
Type targetType,
Class<? extends HttpMessageConverter<?>> converterType)
The default implementation returns the InputMessage that was passed in.
|
HttpInputMessage |
JsonViewRequestBodyAdvice.beforeBodyRead(HttpInputMessage inputMessage,
MethodParameter methodParameter,
Type targetType,
Class<? extends HttpMessageConverter<?>> selectedConverterType) |
HttpInputMessage |
RequestBodyAdvice.beforeBodyRead(HttpInputMessage inputMessage,
MethodParameter parameter,
Type targetType,
Class<? extends HttpMessageConverter<?>> converterType)
Invoked second before the request body is read and converted.
|
Object |
AbstractMappingJacksonResponseBodyAdvice.beforeBodyWrite(Object body,
MethodParameter returnType,
MediaType contentType,
Class<? extends HttpMessageConverter<?>> converterType,
ServerHttpRequest request,
ServerHttpResponse response) |
T |
ResponseBodyAdvice.beforeBodyWrite(T body,
MethodParameter returnType,
MediaType selectedContentType,
Class<? extends HttpMessageConverter<?>> selectedConverterType,
ServerHttpRequest request,
ServerHttpResponse response)
Invoked after an
HttpMessageConverter is selected and just before
its write method is invoked. |
protected void |
JsonViewResponseBodyAdvice.beforeBodyWriteInternal(MappingJacksonValue bodyContainer,
MediaType contentType,
MethodParameter returnType,
ServerHttpRequest request,
ServerHttpResponse response) |
protected abstract void |
AbstractMappingJacksonResponseBodyAdvice.beforeBodyWriteInternal(MappingJacksonValue bodyContainer,
MediaType contentType,
MethodParameter returnType,
ServerHttpRequest request,
ServerHttpResponse response)
Invoked only if the converter type is
MappingJackson2HttpMessageConverter . |
protected boolean |
RequestResponseBodyMethodProcessor.checkRequired(MethodParameter parameter) |
void |
PathVariableMethodArgumentResolver.contributeMethodArgument(MethodParameter parameter,
Object value,
UriComponentsBuilder builder,
Map<String,Object> uriVariables,
ConversionService conversionService) |
protected 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.
|
protected AbstractNamedValueMethodArgumentResolver.NamedValueInfo |
SessionAttributeMethodArgumentResolver.createNamedValueInfo(MethodParameter parameter) |
protected AbstractNamedValueMethodArgumentResolver.NamedValueInfo |
RequestAttributeMethodArgumentResolver.createNamedValueInfo(MethodParameter parameter) |
protected AbstractNamedValueMethodArgumentResolver.NamedValueInfo |
MatrixVariableMethodArgumentResolver.createNamedValueInfo(MethodParameter parameter) |
protected AbstractNamedValueMethodArgumentResolver.NamedValueInfo |
PathVariableMethodArgumentResolver.createNamedValueInfo(MethodParameter parameter) |
protected Class<?> |
HttpEntityMethodProcessor.getReturnValueType(Object returnValue,
MethodParameter returnType) |
protected Class<?> |
AbstractMessageConverterMethodProcessor.getReturnValueType(Object value,
MethodParameter returnType)
Return the type of the value to be written to the response.
|
Object |
RequestBodyAdviceAdapter.handleEmptyBody(Object body,
HttpInputMessage inputMessage,
MethodParameter parameter,
Type targetType,
Class<? extends HttpMessageConverter<?>> converterType)
The default implementation returns the body that was passed in.
|
Object |
RequestBodyAdvice.handleEmptyBody(Object body,
HttpInputMessage inputMessage,
MethodParameter parameter,
Type targetType,
Class<? extends HttpMessageConverter<?>> converterType)
Invoked second (and last) if the body is empty.
|
protected void |
SessionAttributeMethodArgumentResolver.handleMissingValue(String name,
MethodParameter parameter) |
protected void |
RequestAttributeMethodArgumentResolver.handleMissingValue(String name,
MethodParameter parameter) |
protected void |
MatrixVariableMethodArgumentResolver.handleMissingValue(String name,
MethodParameter parameter) |
protected void |
PathVariableMethodArgumentResolver.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 |
CallableMethodReturnValueHandler.handleReturnValue(Object returnValue,
MethodParameter returnType,
ModelAndViewContainer mavContainer,
NativeWebRequest webRequest) |
void |
RequestResponseBodyMethodProcessor.handleReturnValue(Object returnValue,
MethodParameter returnType,
ModelAndViewContainer mavContainer,
NativeWebRequest webRequest) |
void |
HttpEntityMethodProcessor.handleReturnValue(Object returnValue,
MethodParameter returnType,
ModelAndViewContainer mavContainer,
NativeWebRequest webRequest) |
void |
ModelAndViewMethodReturnValueHandler.handleReturnValue(Object returnValue,
MethodParameter returnType,
ModelAndViewContainer mavContainer,
NativeWebRequest webRequest) |
void |
HttpHeadersReturnValueHandler.handleReturnValue(Object returnValue,
MethodParameter returnType,
ModelAndViewContainer mavContainer,
NativeWebRequest webRequest) |
void |
ResponseBodyEmitterReturnValueHandler.handleReturnValue(Object returnValue,
MethodParameter returnType,
ModelAndViewContainer mavContainer,
NativeWebRequest webRequest) |
void |
DeferredResultMethodReturnValueHandler.handleReturnValue(Object returnValue,
MethodParameter returnType,
ModelAndViewContainer mavContainer,
NativeWebRequest webRequest) |
void |
ViewMethodReturnValueHandler.handleReturnValue(Object returnValue,
MethodParameter returnType,
ModelAndViewContainer mavContainer,
NativeWebRequest webRequest) |
void |
StreamingResponseBodyReturnValueHandler.handleReturnValue(Object returnValue,
MethodParameter returnType,
ModelAndViewContainer mavContainer,
NativeWebRequest webRequest) |
void |
ModelAndViewResolverMethodReturnValueHandler.handleReturnValue(Object returnValue,
MethodParameter returnType,
ModelAndViewContainer mavContainer,
NativeWebRequest webRequest) |
void |
ViewNameMethodReturnValueHandler.handleReturnValue(Object returnValue,
MethodParameter returnType,
ModelAndViewContainer mavContainer,
NativeWebRequest webRequest) |
void |
AsyncTaskMethodReturnValueHandler.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 extends
Resource . |
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 |
RequestResponseBodyMethodProcessor.readWithMessageConverters(NativeWebRequest webRequest,
MethodParameter parameter,
Type paramType) |
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.
|
Object |
RequestResponseBodyMethodProcessor.resolveArgument(MethodParameter parameter,
ModelAndViewContainer mavContainer,
NativeWebRequest webRequest,
WebDataBinderFactory binderFactory)
Throws MethodArgumentNotValidException if validation fails.
|
Object |
HttpEntityMethodProcessor.resolveArgument(MethodParameter parameter,
ModelAndViewContainer mavContainer,
NativeWebRequest webRequest,
WebDataBinderFactory binderFactory) |
Object |
MatrixVariableMapMethodArgumentResolver.resolveArgument(MethodParameter parameter,
ModelAndViewContainer mavContainer,
NativeWebRequest request,
WebDataBinderFactory binderFactory) |
Object |
ServletRequestMethodArgumentResolver.resolveArgument(MethodParameter parameter,
ModelAndViewContainer mavContainer,
NativeWebRequest webRequest,
WebDataBinderFactory binderFactory) |
Object |
UriComponentsBuilderMethodArgumentResolver.resolveArgument(MethodParameter parameter,
ModelAndViewContainer mavContainer,
NativeWebRequest webRequest,
WebDataBinderFactory binderFactory) |
Object |
ContinuationHandlerMethodArgumentResolver.resolveArgument(MethodParameter parameter,
ModelAndViewContainer mavContainer,
NativeWebRequest webRequest,
WebDataBinderFactory binderFactory) |
Object |
PathVariableMapMethodArgumentResolver.resolveArgument(MethodParameter parameter,
ModelAndViewContainer mavContainer,
NativeWebRequest webRequest,
WebDataBinderFactory binderFactory)
Return a Map with all URI template variables or an empty map.
|
Object |
RedirectAttributesMethodArgumentResolver.resolveArgument(MethodParameter parameter,
ModelAndViewContainer mavContainer,
NativeWebRequest webRequest,
WebDataBinderFactory binderFactory) |
Object |
RequestPartMethodArgumentResolver.resolveArgument(MethodParameter parameter,
ModelAndViewContainer mavContainer,
NativeWebRequest request,
WebDataBinderFactory binderFactory) |
Object |
ServletResponseMethodArgumentResolver.resolveArgument(MethodParameter parameter,
ModelAndViewContainer mavContainer,
NativeWebRequest webRequest,
WebDataBinderFactory binderFactory)
Set
ModelAndViewContainer.setRequestHandled(boolean) to
false to indicate that the method signature provides access
to the response. |
Object |
PrincipalMethodArgumentResolver.resolveArgument(MethodParameter parameter,
ModelAndViewContainer mavContainer,
NativeWebRequest webRequest,
WebDataBinderFactory binderFactory) |
protected Object |
SessionAttributeMethodArgumentResolver.resolveName(String name,
MethodParameter parameter,
NativeWebRequest request) |
protected Object |
RequestAttributeMethodArgumentResolver.resolveName(String name,
MethodParameter parameter,
NativeWebRequest request) |
protected Object |
MatrixVariableMethodArgumentResolver.resolveName(String name,
MethodParameter parameter,
NativeWebRequest request) |
protected Object |
ServletCookieValueMethodArgumentResolver.resolveName(String cookieName,
MethodParameter parameter,
NativeWebRequest webRequest) |
protected Object |
PathVariableMethodArgumentResolver.resolveName(String name,
MethodParameter parameter,
NativeWebRequest request) |
boolean |
ResponseBodyAdvice.supports(MethodParameter returnType,
Class<? extends HttpMessageConverter<?>> converterType)
Whether this component supports the given controller method return type
and the selected
HttpMessageConverter type. |
boolean |
JsonViewResponseBodyAdvice.supports(MethodParameter returnType,
Class<? extends HttpMessageConverter<?>> converterType) |
boolean |
AbstractMappingJacksonResponseBodyAdvice.supports(MethodParameter returnType,
Class<? extends HttpMessageConverter<?>> converterType) |
boolean |
JsonViewRequestBodyAdvice.supports(MethodParameter methodParameter,
Type targetType,
Class<? extends HttpMessageConverter<?>> converterType) |
boolean |
RequestBodyAdvice.supports(MethodParameter methodParameter,
Type targetType,
Class<? extends HttpMessageConverter<?>> converterType)
Invoked first to determine if this interceptor applies.
|
boolean |
SessionAttributeMethodArgumentResolver.supportsParameter(MethodParameter parameter) |
boolean |
RequestAttributeMethodArgumentResolver.supportsParameter(MethodParameter parameter) |
boolean |
RequestResponseBodyMethodProcessor.supportsParameter(MethodParameter parameter) |
boolean |
HttpEntityMethodProcessor.supportsParameter(MethodParameter parameter) |
boolean |
MatrixVariableMapMethodArgumentResolver.supportsParameter(MethodParameter parameter) |
boolean |
ServletRequestMethodArgumentResolver.supportsParameter(MethodParameter parameter) |
boolean |
UriComponentsBuilderMethodArgumentResolver.supportsParameter(MethodParameter parameter) |
boolean |
ContinuationHandlerMethodArgumentResolver.supportsParameter(MethodParameter parameter) |
boolean |
MatrixVariableMethodArgumentResolver.supportsParameter(MethodParameter parameter) |
boolean |
PathVariableMapMethodArgumentResolver.supportsParameter(MethodParameter parameter) |
boolean |
RedirectAttributesMethodArgumentResolver.supportsParameter(MethodParameter parameter) |
boolean |
PathVariableMethodArgumentResolver.supportsParameter(MethodParameter parameter) |
boolean |
RequestPartMethodArgumentResolver.supportsParameter(MethodParameter parameter)
Whether the given method parameter is
supported as multi-part.
|
boolean |
ServletResponseMethodArgumentResolver.supportsParameter(MethodParameter parameter) |
boolean |
PrincipalMethodArgumentResolver.supportsParameter(MethodParameter parameter) |
boolean |
CallableMethodReturnValueHandler.supportsReturnType(MethodParameter returnType) |
boolean |
RequestResponseBodyMethodProcessor.supportsReturnType(MethodParameter returnType) |
boolean |
HttpEntityMethodProcessor.supportsReturnType(MethodParameter returnType) |
boolean |
ModelAndViewMethodReturnValueHandler.supportsReturnType(MethodParameter returnType) |
boolean |
HttpHeadersReturnValueHandler.supportsReturnType(MethodParameter returnType) |
boolean |
ResponseBodyEmitterReturnValueHandler.supportsReturnType(MethodParameter returnType) |
boolean |
DeferredResultMethodReturnValueHandler.supportsReturnType(MethodParameter returnType) |
boolean |
ViewMethodReturnValueHandler.supportsReturnType(MethodParameter returnType) |
boolean |
StreamingResponseBodyReturnValueHandler.supportsReturnType(MethodParameter returnType) |
boolean |
ModelAndViewResolverMethodReturnValueHandler.supportsReturnType(MethodParameter returnType)
Always returns
true . |
boolean |
ViewNameMethodReturnValueHandler.supportsReturnType(MethodParameter returnType) |
boolean |
AsyncTaskMethodReturnValueHandler.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,
NativeWebRequest webRequest)
Writes the given return value to the given web request.
|
protected <T> void |
AbstractMessageConverterMethodProcessor.writeWithMessageConverters(T value,
MethodParameter returnType,
ServletServerHttpRequest inputMessage,
ServletServerHttpResponse outputMessage)
Writes the given return type to the given output message.
|