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.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. |
Constructor and Description |
---|
HandlerMethod(HandlerMethod handlerMethod)
Copy constructor for use in sub-classes.
|
Modifier and Type | Method and Description |
---|---|
void |
ModelFactory.initModel(NativeWebRequest request,
ModelAndViewContainer mavContainer,
HandlerMethod handlerMethod)
Populate the model in the following order:
Retrieve "known" session attributes -- i.e.
|
protected boolean |
InitBinderDataBinderFactory.isBinderMethodApplicable(HandlerMethod initBinderMethod,
WebDataBinder binder)
Return
true if the given @InitBinder method should be
invoked to initialize the given WebDataBinder. |
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 | Method and Description |
---|---|
protected HandlerMethod |
AbstractHandlerMethodMapping.createHandlerMethod(Object handler,
Method method)
Create the HandlerMethod instance.
|
protected HandlerMethod |
AbstractHandlerMethodMapping.getHandlerInternal(javax.servlet.http.HttpServletRequest request)
Look up a handler method for the given request.
|
protected HandlerMethod |
AbstractHandlerMethodMapping.handleNoMatch(Set<T> mappings,
String lookupPath,
javax.servlet.http.HttpServletRequest request)
Invoked when no matching mapping is not found.
|
protected HandlerMethod |
AbstractHandlerMethodMapping.lookupHandlerMethod(String lookupPath,
javax.servlet.http.HttpServletRequest request)
Look up the best-matching handler method for the current request.
|
Modifier and Type | Method and Description |
---|---|
Map<T,HandlerMethod> |
AbstractHandlerMethodMapping.getHandlerMethods()
Return a map with all handler methods and their mappings.
|
Modifier and Type | Method and Description |
---|---|
protected abstract ModelAndView |
AbstractHandlerMethodExceptionResolver.doResolveHandlerMethodException(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
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.
|
Modifier and Type | Method and Description |
---|---|
protected void |
AbstractHandlerMethodMapping.handlerMethodsInitialized(Map<T,HandlerMethod> handlerMethods)
Invoked after all handler methods have been detected.
|
Modifier and Type | Method and Description |
---|---|
protected HandlerMethod |
RequestMappingInfoHandlerMapping.handleNoMatch(Set<RequestMappingInfo> requestMappingInfos,
String lookupPath,
javax.servlet.http.HttpServletRequest request)
Iterate all RequestMappingInfos once again, look if any match by URL at
least and raise exceptions accordingly.
|
Modifier and Type | Method and Description |
---|---|
protected abstract long |
AbstractHandlerMethodAdapter.getLastModifiedInternal(javax.servlet.http.HttpServletRequest request,
HandlerMethod handlerMethod)
Same contract as for
HttpServlet.getLastModified(HttpServletRequest) . |
protected abstract ModelAndView |
AbstractHandlerMethodAdapter.handleInternal(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.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 ModelAndView |
ExceptionHandlerExceptionResolver.doResolveHandlerMethodException(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
HandlerMethod handlerMethod,
Exception exception)
Find an
@ExceptionHandler method and invoke it to handle the raised exception. |
protected ServletInvocableHandlerMethod |
ExceptionHandlerExceptionResolver.getExceptionHandlerMethod(HandlerMethod handlerMethod,
Exception exception)
Find an
@ExceptionHandler method for the given exception. |
protected long |
RequestMappingHandlerAdapter.getLastModifiedInternal(javax.servlet.http.HttpServletRequest request,
HandlerMethod handlerMethod)
This implementation always returns -1.
|
protected ModelAndView |
RequestMappingHandlerAdapter.handleInternal(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
HandlerMethod handlerMethod) |
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 . |
Copyright © 2015. All rights reserved.