Package | Description |
---|---|
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.reactive.result.method |
Infrastructure for handler method processing.
|
org.springframework.web.servlet.handler |
Provides standard HandlerMapping implementations,
including abstract base classes for custom implementations.
|
org.springframework.web.servlet.mvc.method |
Servlet-based infrastructure for handler method processing,
building on the
org.springframework.web.method package. |
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 |
---|---|
HandlerMethod |
HandlerMethod.createWithResolvedBean()
If the provided instance contains a bean name rather than an object instance,
the bean name is resolved before a
HandlerMethod is created and returned. |
HandlerMethod |
HandlerMethod.getResolvedFromHandlerMethod()
Return the HandlerMethod from which this HandlerMethod instance was
resolved via
createWithResolvedBean() . |
Constructor and Description |
---|
HandlerMethod(HandlerMethod handlerMethod)
Copy constructor for use in subclasses.
|
Modifier and Type | Method and Description |
---|---|
void |
ModelFactory.initModel(NativeWebRequest request,
ModelAndViewContainer container,
HandlerMethod handlerMethod)
Populate the model in the following order:
Retrieve "known" session attributes listed as
@SessionAttributes . |
protected boolean |
InitBinderDataBinderFactory.isBinderMethodApplicable(HandlerMethod initBinderMethod,
WebDataBinder dataBinder)
Determine whether the given
@InitBinder method should be used
to initialize the given WebDataBinder instance. |
Modifier and Type | Class and Description |
---|---|
class |
InvocableHandlerMethod
Provides a method for invoking the handler method for a given request after resolving its
method argument values through registered
HandlerMethodArgumentResolver s. |
Constructor and Description |
---|
InvocableHandlerMethod(HandlerMethod handlerMethod)
Create an instance from a
HandlerMethod . |
Modifier and Type | Class and Description |
---|---|
class |
SyncInvocableHandlerMethod
Extension of
HandlerMethod that invokes the underlying method via
InvocableHandlerMethod but uses sync argument resolvers only and
thus can return directly a HandlerResult with no async wrappers. |
Modifier and Type | Method and Description |
---|---|
protected HandlerMethod |
AbstractHandlerMethodMapping.createHandlerMethod(java.lang.Object handler,
java.lang.reflect.Method method)
Create the HandlerMethod instance.
|
protected HandlerMethod |
RequestMappingInfoHandlerMapping.handleNoMatch(java.util.Set<RequestMappingInfo> infos,
ServerWebExchange exchange)
Iterate all RequestMappingInfos once again, look if any match by URL at
least and raise exceptions accordingly.
|
protected HandlerMethod |
AbstractHandlerMethodMapping.handleNoMatch(java.util.Set<T> mappings,
ServerWebExchange exchange)
Invoked when no matching mapping is not found.
|
protected HandlerMethod |
AbstractHandlerMethodMapping.lookupHandlerMethod(ServerWebExchange exchange)
Look up the best-matching handler method for the current request.
|
Modifier and Type | Method and Description |
---|---|
reactor.core.publisher.Mono<HandlerMethod> |
AbstractHandlerMethodMapping.getHandlerInternal(ServerWebExchange exchange)
Look up a handler method for the given request.
|
java.util.Map<T,HandlerMethod> |
AbstractHandlerMethodMapping.getHandlerMethods()
Return a (read-only) map with all mappings and HandlerMethod's.
|
Modifier and Type | Method and Description |
---|---|
protected void |
RequestMappingInfoHandlerMapping.handleMatch(RequestMappingInfo info,
HandlerMethod handlerMethod,
ServerWebExchange exchange)
Expose URI template variables, matrix variables, and producible media types in the request.
|
protected void |
AbstractHandlerMethodMapping.handleMatch(T mapping,
HandlerMethod handlerMethod,
ServerWebExchange exchange)
Invoked when a matching mapping is found.
|
Modifier and Type | Method and Description |
---|---|
protected void |
AbstractHandlerMethodMapping.handlerMethodsInitialized(java.util.Map<T,HandlerMethod> handlerMethods)
Invoked after all handler methods have been detected.
|
Constructor and Description |
---|
InvocableHandlerMethod(HandlerMethod handlerMethod) |
SyncInvocableHandlerMethod(HandlerMethod handlerMethod) |
Modifier and Type | Method and Description |
---|---|
protected HandlerMethod |
AbstractHandlerMethodMapping.createHandlerMethod(java.lang.Object handler,
java.lang.reflect.Method method)
Create the HandlerMethod instance.
|
protected HandlerMethod |
AbstractHandlerMethodMapping.getHandlerInternal(HttpServletRequest request)
Look up a handler method for the given request.
|
protected HandlerMethod |
AbstractHandlerMethodMapping.handleNoMatch(java.util.Set<T> mappings,
java.lang.String lookupPath,
HttpServletRequest request)
Invoked when no matching mapping is not found.
|
protected HandlerMethod |
AbstractHandlerMethodMapping.lookupHandlerMethod(java.lang.String lookupPath,
HttpServletRequest request)
Look up the best-matching handler method for the current request.
|
Modifier and Type | Method and Description |
---|---|
java.util.Map<T,HandlerMethod> |
AbstractHandlerMethodMapping.getHandlerMethods()
Return a (read-only) map with all mappings and HandlerMethod's.
|
java.util.List<HandlerMethod> |
AbstractHandlerMethodMapping.getHandlerMethodsForMappingName(java.lang.String mappingName)
Return the handler methods for the given mapping name.
|
Modifier and Type | Method and Description |
---|---|
protected abstract ModelAndView |
AbstractHandlerMethodExceptionResolver.doResolveHandlerMethodException(HttpServletRequest request,
HttpServletResponse response,
HandlerMethod handlerMethod,
java.lang.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.
|
java.lang.String |
HandlerMethodMappingNamingStrategy.getName(HandlerMethod handlerMethod,
T mapping)
Determine the name for the given HandlerMethod and mapping.
|
Modifier and Type | Method and Description |
---|---|
protected void |
AbstractHandlerMethodMapping.handlerMethodsInitialized(java.util.Map<T,HandlerMethod> handlerMethods)
Invoked after all handler methods have been detected.
|
Modifier and Type | Method and Description |
---|---|
protected HandlerMethod |
RequestMappingInfoHandlerMapping.handleNoMatch(java.util.Set<RequestMappingInfo> infos,
java.lang.String lookupPath,
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.
|
Modifier and Type | Method and Description |
---|---|
protected abstract long |
AbstractHandlerMethodAdapter.getLastModifiedInternal(HttpServletRequest request,
HandlerMethod handlerMethod)
Same contract as for
HttpServlet.getLastModified(HttpServletRequest) . |
java.lang.String |
RequestMappingInfoHandlerMethodMappingNamingStrategy.getName(HandlerMethod handlerMethod,
RequestMappingInfo mapping) |
protected abstract ModelAndView |
AbstractHandlerMethodAdapter.handleInternal(HttpServletRequest request,
HttpServletResponse response,
HandlerMethod handlerMethod)
Use the given handler method to handle the request.
|
protected abstract boolean |
AbstractHandlerMethodAdapter.supportsInternal(HandlerMethod handlerMethod)
Given a handler method, return whether or not this adapter can support it.
|
Modifier and Type | Class and Description |
---|---|
class |
ServletInvocableHandlerMethod
Extends
InvocableHandlerMethod with the ability to handle return
values through a registered HandlerMethodReturnValueHandler and
also supports setting the response status based on a method-level
@ResponseStatus annotation. |
Modifier and Type | Method and Description |
---|---|
protected ServletInvocableHandlerMethod |
RequestMappingHandlerAdapter.createInvocableHandlerMethod(HandlerMethod handlerMethod)
Create a
ServletInvocableHandlerMethod from the given HandlerMethod definition. |
protected ModelAndView |
ExceptionHandlerExceptionResolver.doResolveHandlerMethodException(HttpServletRequest request,
HttpServletResponse response,
HandlerMethod handlerMethod,
java.lang.Exception exception)
Find an
@ExceptionHandler method and invoke it to handle the raised exception. |
protected ServletInvocableHandlerMethod |
ExceptionHandlerExceptionResolver.getExceptionHandlerMethod(HandlerMethod handlerMethod,
java.lang.Exception exception)
Find an
@ExceptionHandler method for the given exception. |
protected long |
RequestMappingHandlerAdapter.getLastModifiedInternal(HttpServletRequest request,
HandlerMethod handlerMethod)
This implementation always returns -1.
|
protected ModelAndView |
RequestMappingHandlerAdapter.handleInternal(HttpServletRequest request,
HttpServletResponse response,
HandlerMethod handlerMethod) |
protected ModelAndView |
RequestMappingHandlerAdapter.invokeHandlerMethod(HttpServletRequest request,
HttpServletResponse response,
HandlerMethod handlerMethod)
Invoke the
RequestMapping handler method preparing a ModelAndView
if view resolution is required. |
protected boolean |
RequestMappingHandlerAdapter.supportsInternal(HandlerMethod handlerMethod)
Always return
true since any method argument and return value
type will be processed in some way. |
Constructor and Description |
---|
ServletInvocableHandlerMethod(HandlerMethod handlerMethod)
Create an instance from a
HandlerMethod . |