HandlerAdapter implementations that support
handlers of type HandlerMethod.
| Modifier and Type | Field and Description |
|---|---|
| private int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public final long | getLastModified(HttpServletRequest
current HTTP request request, Object the handler to use handler)Implements org. This implementation expects the handler to be an |
| protected abstract long | Returns: the lastModified value for the given handlercurrent HTTP request request, HandlerMethod handler method to use handlerMethod)
Deprecated
as of 5.3.9 along with
org..
Same contract as for |
| public int | |
| public final ModelAndView | handle(HttpServletRequest
current HTTP request request, HttpServletResponse current HTTP response response, Object the handler to use. This object must have previously been passed
to the handler)supports method of this interface, which must have
returned true.Implements org. This implementation expects the handler to be an |
| protected abstract ModelAndView | Returns: a ModelAndView object with the name of the view and the required model data, ornull if the request has been handled directlycurrent HTTP request request, HttpServletResponse current HTTP response response, HandlerMethod handler method to use. This object must have previously been passed to the
handlerMethod)supportsInternal(HandlerMethod) this interface, which must have returned true.Use the given handler method to handle the request. |
| public void | |
| public final boolean | Returns: whether this adapter can adapt the given handlerthe handler instance to check handler)Implements org. This implementation expects the handler to be an |
| protected abstract boolean | Returns: whether this adapter can adapt the given methodthe handler method to check handlerMethod)Given a handler method, return whether this adapter can support it. |
| order | back to summary |
|---|---|
| private int order | |
| AbstractHandlerMethodAdapter | back to summary |
|---|---|
| public AbstractHandlerMethodAdapter() | |
| getLastModified | back to summary |
|---|---|
| public final long getLastModified(HttpServletRequest request, Object handler) Implements org. This implementation expects the handler to be an
| |
| getLastModifiedInternal | back to summary |
|---|---|
| protected abstract long getLastModifiedInternal(HttpServletRequest request, HandlerMethod handlerMethod)
Deprecated as of 5.3.9 along with
Same contract as for
| |
| getOrder | back to summary |
|---|---|
| public int getOrder() Implements org. Doc from org. Get the order value of this object. Higher values are interpreted as lower priority. As a consequence,
the object with the lowest value has the highest priority (somewhat
analogous to Servlet Same order values will result in arbitrary sort positions for the affected objects.
| |
| handle | back to summary |
|---|---|
| public final ModelAndView handle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception Implements org. This implementation expects the handler to be an
| |
| handleInternal | back to summary |
|---|---|
| protected abstract ModelAndView handleInternal(HttpServletRequest request, HttpServletResponse response, HandlerMethod handlerMethod) throws Exception Use the given handler method to handle the request.
| |
| setOrder | back to summary |
|---|---|
| public void setOrder(int order) Specify the order value for this HandlerAdapter bean. The default value is | |
| supports | back to summary |
|---|---|
| public final boolean supports(Object handler) Implements org. This implementation expects the handler to be an | |
| supportsInternal | back to summary |
|---|---|
| protected abstract boolean supportsInternal(HandlerMethod handlerMethod) Given a handler method, return whether this adapter can support it.
| |