Class EagerContentHandler.FormContentLoaderFactory
java.lang.Object
org.eclipse.jetty.server.handler.EagerContentHandler.FormContentLoaderFactory
- All Implemented Interfaces:
 EagerContentHandler.ContentLoaderFactory
- Enclosing class:
 EagerContentHandler
public static class EagerContentHandler.FormContentLoaderFactory
extends Object
implements EagerContentHandler.ContentLoaderFactory
An 
EagerContentHandler.ContentLoaderFactory for MimeTypes.Type.FORM_ENCODED content, that uses
FormFields.onFields(Request, Charset, int, int, Promise.Invocable) to asynchronously load and parse the content.- 
Constructor Summary
Constructors - 
Method Summary
 
- 
Constructor Details
- 
FormContentLoaderFactory
public FormContentLoaderFactory() - 
FormContentLoaderFactory
public FormContentLoaderFactory(int maxFields, int maxLength) - Parameters:
 maxFields- The maximum number of fields to be eagerly loaded; or -1 to use the default ofFormFields.onFields(Request, Charset, int, int, Promise.Invocable)maxLength- The maximum length of all combined fields to be eagerly loaded; or -1 to use the default ofFormFields.onFields(Request, Charset, int, int, Promise.Invocable)
 
 - 
 - 
Method Details
- 
getApplicableMimeType
- Specified by:
 getApplicableMimeTypein interfaceEagerContentHandler.ContentLoaderFactory- Returns:
 - The mimetype for which this factory is applicable to; or 
nullif applicable to all types. 
 - 
newContentLoader
public EagerContentHandler.ContentLoader newContentLoader(String contentType, String mimeType, Handler handler, Request request, Response response, Callback callback) - Specified by:
 newContentLoaderin interfaceEagerContentHandler.ContentLoaderFactory- 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.ContentLoaderinstance if the content can be loaded eagerly, elsenull. 
 
 -