Interface EagerContentHandler.ContentLoaderFactory

All Known Implementing Classes:
EagerContentHandler.FormContentLoaderFactory, EagerContentHandler.MultiPartContentLoaderFactory, EagerContentHandler.RetainedContentLoaderFactory
Enclosing class:
EagerContentHandler

public static interface EagerContentHandler.ContentLoaderFactory
A factory to create new EagerContentHandler.ContentLoader instances for a specific mime type.
  • Method Details

    • getApplicableMimeType

      String getApplicableMimeType()
      Returns:
      The mimetype for which this factory is applicable to; or null if applicable to all types.
    • newContentLoader

      EagerContentHandler.ContentLoader newContentLoader(String contentType, String mimeType, Handler handler, Request request, Response response, Callback callback)
      Parameters:
      contentType - The content type of the request
      mimeType - The mime type extracted from the request
      handler - The next handler to call
      request - The request
      response - The response
      callback - The callback
      Returns:
      An EagerContentHandler.ContentLoader instance if the content can be loaded eagerly, else null.