Controller workflow interface with
the generic org.springframework.web.servlet.DispatcherServlet .
Supports handlers that implement the LastModified interface.
This is an SPI class, not used directly by application code.
org.springframework.web.servlet.DispatcherServlet , Controller, HttpRequestHandlerAdapter
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public long | getLastModified(HttpServletRequest
current HTTP request request, Object the handler to use handler)Implements org. Same contract as for HttpServlet's |
| public 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. Use the given handler to handle this request. |
| public boolean | supports(Object
the handler object to check handler)Implements org. Given a handler instance, return whether this |
| SimpleControllerHandlerAdapter | back to summary |
|---|---|
| public SimpleControllerHandlerAdapter() | |
| getLastModified | back to summary |
|---|---|
| public long getLastModified(HttpServletRequest request, Object handler) Implements org. Doc from org. Same contract as for HttpServlet's
| |
| handle | back to summary |
|---|---|
| public ModelAndView handle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception Implements org. Doc from org. Use the given handler to handle this request. The workflow that is required may vary widely.
| |
| supports | back to summary |
|---|---|
| public boolean supports(Object handler) Implements org. Doc from org. Given a handler instance, return whether this A typical implementation:
| |