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 requestmimeType
- The mime type extracted from the requesthandler
- The next handler to callrequest
- The requestresponse
- The responsecallback
- The callback- Returns:
- An
EagerContentHandler.ContentLoader
instance if the content can be loaded eagerly, elsenull
.
-