Class FileMappingHttpContentFactory
java.lang.Object
org.eclipse.jetty.http.content.FileMappingHttpContentFactory
- All Implemented Interfaces:
 HttpContent.Factory
- 
Constructor Summary
ConstructorsConstructorDescriptionConstruct aFileMappingHttpContentFactorywhich can use file mapped buffers.FileMappingHttpContentFactory(HttpContent.Factory factory, int minFileSize, int maxBufferSize) Construct aFileMappingHttpContentFactorywhich can use file mapped buffers. - 
Method Summary
Modifier and TypeMethodDescriptiongetContent(String path) Get theHttpContentinstance of a path. 
- 
Constructor Details
- 
FileMappingHttpContentFactory
Construct aFileMappingHttpContentFactorywhich can use file mapped buffers. Uses a default value of 1048576 for the minimum size of anHttpContentbefore trying to use a file mapped buffer.- Parameters:
 factory- the wrappedHttpContent.Factoryto use.
 - 
FileMappingHttpContentFactory
public FileMappingHttpContentFactory(HttpContent.Factory factory, int minFileSize, int maxBufferSize) Construct aFileMappingHttpContentFactorywhich can use file mapped buffers.- Parameters:
 factory- the wrappedHttpContent.Factoryto use.minFileSize- the minimum size of anHttpContentbefore trying to use a file mapped buffer; or-1for a default.maxBufferSize- the maximum size of the memory mapped buffers; or-1for a default.
 
 - 
 - 
Method Details
- 
getContent
Description copied from interface:HttpContent.FactoryGet theHttpContentinstance of a path.- Specified by:
 getContentin interfaceHttpContent.Factory- Parameters:
 path- The path.- Returns:
 - A 
HttpContentinstance. - Throws:
 IOException- if unable to get content
 
 -