HandlerAdapter implementation that supports HandlerFunctions.
| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private Long | |
| private static final Log | |
| private int |
| 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 int | |
| private ServerRequest | |
| private WebAsyncManager | |
| public ModelAndView | handle(HttpServletRequest
current HTTP request servletRequest, HttpServletResponse current HTTP response servletResponse, 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. |
| private ServerResponse | |
| public void | setAsyncRequestTimeout(long
the timeout value in milliseconds timeout)Specify the amount of time, in milliseconds, before concurrent handling should time out. |
| public void | |
| public boolean | supports(Object
the handler object to check handler)Implements org. Given a handler instance, return whether this |
| asyncRequestTimeout | back to summary |
|---|---|
| private Long asyncRequestTimeout
| |
| logger | back to summary |
|---|---|
| private static final Log logger | |
| order | back to summary |
|---|---|
| private int order | |
| HandlerFunctionAdapter | back to summary |
|---|---|
| public HandlerFunctionAdapter() | |
| getLastModified | back to summary |
|---|---|
| public long getLastModified(HttpServletRequest request, Object handler) Implements org. Doc from org. Same contract as for HttpServlet's
| |
| 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.
| |
| getServerRequest | back to summary |
|---|---|
| private ServerRequest getServerRequest(HttpServletRequest servletRequest) | |
| getWebAsyncManager | back to summary |
|---|---|
| private WebAsyncManager getWebAsyncManager(HttpServletRequest servletRequest, HttpServletResponse servletResponse) | |
| handle | back to summary |
|---|---|
| public ModelAndView handle(HttpServletRequest servletRequest, HttpServletResponse servletResponse, 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.
| |
| handleAsync | back to summary |
|---|---|
private ServerResponse handleAsync(WebAsyncManager asyncManager) throws Exception
| |
| setAsyncRequestTimeout | back to summary |
|---|---|
| public void setAsyncRequestTimeout(long timeout) Specify the amount of time, in milliseconds, before concurrent handling should time out. In Servlet 3, the timeout begins after the main request processing thread has exited and ends when the request is dispatched again for further processing of the concurrently produced result. If this value is not set, the default timeout of the underlying implementation is used. A value of 0 or less indicates that the asynchronous operation will never time out.
| |
| 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 boolean supports(Object handler) Implements org. Doc from org. Given a handler instance, return whether this A typical implementation:
| |
| Modifier and Type | Field and Description |
|---|---|
| private final ServerRequest |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public List | messageConverters()
Implements org. Return the |
| serverRequest | back to summary |
|---|---|
| private final ServerRequest serverRequest | |
| ServerRequestContext | back to summary |
|---|---|
| public ServerRequestContext(ServerRequest serverRequest) | |
| messageConverters | back to summary |
|---|---|
| public List Implements org. Doc from org. Return the
| |