Class EagerContentHandler.ContentLoader
java.lang.Object
org.eclipse.jetty.server.handler.EagerContentHandler.ContentLoader
- Direct Known Subclasses:
EagerContentHandler.RetainedContentLoaderFactory.RetainedContentLoader
- Enclosing class:
EagerContentHandler
An eager content processor, created by a
EagerContentHandler.ContentLoaderFactory
to asynchronous load content from a Request
before calling the Request.Handler.handle(Request, Response, Callback)
method of the passed Handler
.-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
ContentLoader
(Handler handler, Request request, Response response, Callback callback) -
Method Summary
-
Constructor Details
-
ContentLoader
-
-
Method Details
-
getHandler
-
getRequest
-
getResponse
-
getCallback
-
handle
protected void handle() -
handle
-
load
Called to initiate eager loading of the content. The content may be loaded within the scope of this method, or within the scope of a callback as a result of aRequest.demand(Runnable)
call made by this methhod.- Throws:
Exception
- If there is a problem
-