Package org.apache.tapestry5.http
Interface AsyncRequestHandler
-
public interface AsyncRequestHandler
Service whose implementations define whether a given request should be handled asynchronously or not and, if yes, which
Executor
(usually, a thread pool, but not necessarily) should handle it, possibly differentHttpServletRequest
andHttpServletResponse
objects to be used when calling HttpServletRequest#startAsync()} and an optional AsyncListener.If one
AsyncRequestHandler
doesn't tells the request should be asynchronous, the next one contributed toAsyncRequestService
will be called and so on until one says the request should be asynchronous or all of them were called and the request will be synchronous.- See Also:
AsyncRequestService
,Executor
,ExecutorService
,Executors
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AsyncRequestHandlerResponse
handle(HttpServletRequest request, HttpServletResponse response)
Returns whether this request is handled by this handler.
-
-
-
Method Detail
-
handle
AsyncRequestHandlerResponse handle(HttpServletRequest request, HttpServletResponse response)
Returns whether this request is handled by this handler. If not, it should returnAsyncRequestHandlerResponse.notHandled()
.- Returns:
- a non-null AsyncRequestHandlerResponse.
-
-