Class EagerContentHandler.ContentLoader

java.lang.Object
org.eclipse.jetty.server.handler.EagerContentHandler.ContentLoader
Direct Known Subclasses:
EagerContentHandler.RetainedContentLoaderFactory.RetainedContentLoader
Enclosing class:
EagerContentHandler

public abstract static class EagerContentHandler.ContentLoader extends Object
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 Details

  • Method Details

    • getHandler

      protected Handler getHandler()
    • getRequest

      protected Request getRequest()
    • getResponse

      protected Response getResponse()
    • getCallback

      protected Callback getCallback()
    • handle

      protected void handle()
    • handle

      protected void handle(Request request, Response response, Callback callback)
    • load

      protected abstract void load() throws Exception
      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 a Request.demand(Runnable) call made by this methhod.
      Throws:
      Exception - If there is a problem