Uses of Class
org.springframework.web.method.HandlerMethod
Packages that use HandlerMethod
Package
Description
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.
Spring WebFlux configuration infrastructure.
Infrastructure for handler method processing.
Infrastructure for annotation-based handler method processing.
Provides standard HandlerMapping implementations,
including abstract base classes for custom implementations.
Servlet-based infrastructure for handler method processing,
building on the
org.springframework.web.method package.MVC infrastructure for annotation-based handler method processing, building on the
org.springframework.web.method.annotation package.-
Uses of HandlerMethod in org.springframework.web.method
Methods in org.springframework.web.method that return HandlerMethodModifier and TypeMethodDescriptionHandlerMethod.createWithResolvedBean()If thehandleris a bean name rather than the actual handler instance, resolve the bean name through Spring configuration (e.g.HandlerMethod.createWithValidateFlags()Re-create the HandlerMethod and initializeHandlerMethod.shouldValidateArguments()andHandlerMethod.shouldValidateReturnValue().HandlerMethod.getResolvedFromHandlerMethod()Return the HandlerMethod from which this HandlerMethod instance was resolved viaHandlerMethod.createWithResolvedBean().Constructors in org.springframework.web.method with parameters of type HandlerMethodModifierConstructorDescriptionprotectedHandlerMethod(HandlerMethod handlerMethod) Copy constructor for use in subclasses.protectedHandlerMethod(HandlerMethod handlerMethod, @Nullable Object handler, boolean initValidateFlags) Re-create new HandlerMethod instance that copies the given HandlerMethod but replaces the handler, and optionally checks for the presence of validation annotations. -
Uses of HandlerMethod in org.springframework.web.method.annotation
Methods in org.springframework.web.method.annotation with parameters of type HandlerMethodModifier and TypeMethodDescriptionvoidModelFactory.initModel(NativeWebRequest request, ModelAndViewContainer container, HandlerMethod handlerMethod) Populate the model in the following order: Retrieve "known" session attributes listed as@SessionAttributes.protected booleanInitBinderDataBinderFactory.isBinderMethodApplicable(HandlerMethod initBinderMethod, WebDataBinder dataBinder) Determine whether the given@InitBindermethod should be used to initialize the givenWebDataBinderinstance. -
Uses of HandlerMethod in org.springframework.web.method.support
Subclasses of HandlerMethod in org.springframework.web.method.supportModifier and TypeClassDescriptionclassExtension ofHandlerMethodthat invokes the underlying method with argument values resolved from the current HTTP request through a list ofHandlerMethodArgumentResolver.Constructors in org.springframework.web.method.support with parameters of type HandlerMethodModifierConstructorDescriptionInvocableHandlerMethod(HandlerMethod handlerMethod) Create an instance from aHandlerMethod. -
Uses of HandlerMethod in org.springframework.web.reactive.config
Methods in org.springframework.web.reactive.config that return types with arguments of type HandlerMethodModifier and TypeMethodDescriptionprotected @Nullable Predicate<HandlerMethod> BlockingExecutionConfigurer.getBlockingControllerMethodPredicate()Method parameters in org.springframework.web.reactive.config with type arguments of type HandlerMethodModifier and TypeMethodDescriptionBlockingExecutionConfigurer.setControllerMethodPredicate(Predicate<HandlerMethod> predicate) Configure a predicate to decide if a controller method is blocking and should be called on a separate thread if an executor is configured. -
Uses of HandlerMethod in org.springframework.web.reactive.result.method
Subclasses of HandlerMethod in org.springframework.web.reactive.result.methodModifier and TypeClassDescriptionclassExtension ofHandlerMethodthat invokes the underlying method with argument values resolved from the current HTTP request through a list ofHandlerMethodArgumentResolver.classExtension ofHandlerMethodthat invokes the underlying method viaInvocableHandlerMethodbut uses sync argument resolvers only and thus can return directly aHandlerResultwith no async wrappers.Methods in org.springframework.web.reactive.result.method that return HandlerMethodModifier and TypeMethodDescriptionprotected HandlerMethodAbstractHandlerMethodMapping.createHandlerMethod(Object handler, Method method) Create the HandlerMethod instance.protected @Nullable HandlerMethodAbstractHandlerMethodMapping.handleNoMatch(Set<T> mappings, ServerWebExchange exchange) Invoked when no matching mapping is not found.protected @Nullable HandlerMethodRequestMappingInfoHandlerMapping.handleNoMatch(Set<RequestMappingInfo> infos, ServerWebExchange exchange) Iterate all RequestMappingInfos once again, look if any match by URL at least and raise exceptions accordingly.protected @Nullable HandlerMethodAbstractHandlerMethodMapping.lookupHandlerMethod(ServerWebExchange exchange) Look up the best-matching handler method for the current request.Methods in org.springframework.web.reactive.result.method that return types with arguments of type HandlerMethodModifier and TypeMethodDescriptionreactor.core.publisher.Mono<HandlerMethod> AbstractHandlerMethodMapping.getHandlerInternal(ServerWebExchange exchange) Look up a handler method for the given request.reactor.core.publisher.Mono<HandlerMethod> RequestMappingInfoHandlerMapping.getHandlerInternal(ServerWebExchange exchange) AbstractHandlerMethodMapping.getHandlerMethods()Return a (read-only) map with all mappings and HandlerMethod's.Methods in org.springframework.web.reactive.result.method with parameters of type HandlerMethodModifier and TypeMethodDescriptionprotected voidAbstractHandlerMethodMapping.handleMatch(T mapping, HandlerMethod handlerMethod, ServerWebExchange exchange) Invoked when a matching mapping is found.protected voidRequestMappingInfoHandlerMapping.handleMatch(RequestMappingInfo info, HandlerMethod handlerMethod, ServerWebExchange exchange) Expose URI template variables, matrix variables, and producible media types in the request.Method parameters in org.springframework.web.reactive.result.method with type arguments of type HandlerMethodModifier and TypeMethodDescriptionprotected voidAbstractHandlerMethodMapping.handlerMethodsInitialized(Map<T, HandlerMethod> handlerMethods) Invoked after all handler methods have been detected.Constructors in org.springframework.web.reactive.result.method with parameters of type HandlerMethodModifierConstructorDescriptionInvocableHandlerMethod(HandlerMethod handlerMethod) Create an instance from aHandlerMethod.SyncInvocableHandlerMethod(HandlerMethod handlerMethod) -
Uses of HandlerMethod in org.springframework.web.reactive.result.method.annotation
Method parameters in org.springframework.web.reactive.result.method.annotation with type arguments of type HandlerMethodModifier and TypeMethodDescriptionvoidRequestMappingHandlerAdapter.setBlockingMethodPredicate(Predicate<HandlerMethod> predicate) Provide a predicate to decide which controller methods to invoke through the configuredblockingExecutor. -
Uses of HandlerMethod in org.springframework.web.servlet.handler
Methods in org.springframework.web.servlet.handler that return HandlerMethodModifier and TypeMethodDescriptionprotected HandlerMethodAbstractHandlerMethodMapping.createHandlerMethod(Object handler, Method method) Create the HandlerMethod instance.protected @Nullable HandlerMethodAbstractHandlerMethodMapping.getHandlerInternal(jakarta.servlet.http.HttpServletRequest request) Look up a handler method for the given request.protected @Nullable HandlerMethodAbstractHandlerMethodMapping.handleNoMatch(Set<T> mappings, String lookupPath, jakarta.servlet.http.HttpServletRequest request) Invoked when no matching mapping is not found.protected @Nullable HandlerMethodAbstractHandlerMethodMapping.lookupHandlerMethod(String lookupPath, jakarta.servlet.http.HttpServletRequest request) Look up the best-matching handler method for the current request.Methods in org.springframework.web.servlet.handler that return types with arguments of type HandlerMethodModifier and TypeMethodDescriptionAbstractHandlerMethodMapping.getHandlerMethods()Return a (read-only) map with all mappings and HandlerMethod's.AbstractHandlerMethodMapping.getHandlerMethodsForMappingName(String mappingName) Return the handler methods for the given mapping name.Methods in org.springframework.web.servlet.handler with parameters of type HandlerMethodModifier and TypeMethodDescriptionprotected abstract @Nullable ModelAndViewAbstractHandlerMethodExceptionResolver.doResolveHandlerMethodException(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, @Nullable HandlerMethod handlerMethod, Exception ex) Actually resolve the given exception that got thrown during on handler execution, returning a ModelAndView that represents a specific error page if appropriate.HandlerMethodMappingNamingStrategy.getName(HandlerMethod handlerMethod, T mapping) Determine the name for the given HandlerMethod and mapping.Method parameters in org.springframework.web.servlet.handler with type arguments of type HandlerMethodModifier and TypeMethodDescriptionprotected voidAbstractHandlerMethodMapping.handlerMethodsInitialized(Map<T, HandlerMethod> handlerMethods) Invoked after all handler methods have been detected. -
Uses of HandlerMethod in org.springframework.web.servlet.mvc.method
Methods in org.springframework.web.servlet.mvc.method that return HandlerMethodModifier and TypeMethodDescriptionprotected @Nullable HandlerMethodRequestMappingInfoHandlerMapping.getHandlerInternal(jakarta.servlet.http.HttpServletRequest request) protected @Nullable HandlerMethodRequestMappingInfoHandlerMapping.handleNoMatch(Set<RequestMappingInfo> infos, String lookupPath, jakarta.servlet.http.HttpServletRequest request) Iterate all RequestMappingInfo's once again, look if any match by URL at least and raise exceptions according to what doesn't match.Methods in org.springframework.web.servlet.mvc.method with parameters of type HandlerMethodModifier and TypeMethodDescriptionRequestMappingInfoHandlerMethodMappingNamingStrategy.getName(HandlerMethod handlerMethod, RequestMappingInfo mapping) protected abstract @Nullable ModelAndViewAbstractHandlerMethodAdapter.handleInternal(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, HandlerMethod handlerMethod) Use the given handler method to handle the request.protected abstract booleanAbstractHandlerMethodAdapter.supportsInternal(HandlerMethod handlerMethod) Given a handler method, return whether this adapter can support it. -
Uses of HandlerMethod in org.springframework.web.servlet.mvc.method.annotation
Subclasses of HandlerMethod in org.springframework.web.servlet.mvc.method.annotationModifier and TypeClassDescriptionclassExtendsInvocableHandlerMethodwith the ability to handle return values through a registeredHandlerMethodReturnValueHandlerand also supports setting the response status based on a method-level@ResponseStatusannotation.Methods in org.springframework.web.servlet.mvc.method.annotation with parameters of type HandlerMethodModifier and TypeMethodDescriptionprotected ServletInvocableHandlerMethodRequestMappingHandlerAdapter.createInvocableHandlerMethod(HandlerMethod handlerMethod) Create aServletInvocableHandlerMethodfrom the givenHandlerMethoddefinition.protected @Nullable ModelAndViewExceptionHandlerExceptionResolver.doResolveHandlerMethodException(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, @Nullable HandlerMethod handlerMethod, Exception exception) Find an@ExceptionHandlermethod and invoke it to handle the raised exception.protected @Nullable ServletInvocableHandlerMethodExceptionHandlerExceptionResolver.getExceptionHandlerMethod(@Nullable HandlerMethod handlerMethod, Exception exception, ServletWebRequest webRequest) Find an@ExceptionHandlermethod for the given exception.protected @Nullable ModelAndViewRequestMappingHandlerAdapter.handleInternal(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, HandlerMethod handlerMethod) protected @Nullable ModelAndViewRequestMappingHandlerAdapter.invokeHandlerMethod(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, HandlerMethod handlerMethod) Invoke theRequestMappinghandler method preparing aModelAndViewif view resolution is required.protected booleanRequestMappingHandlerAdapter.supportsInternal(HandlerMethod handlerMethod) Always returntruesince any method argument and return value type will be processed in some way.Constructors in org.springframework.web.servlet.mvc.method.annotation with parameters of type HandlerMethodModifierConstructorDescriptionServletInvocableHandlerMethod(HandlerMethod handlerMethod) Create an instance from aHandlerMethod.