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) Construct aFileMappingHttpContentFactorywhich can use file mapped buffers. -
Method Summary
-
Constructor Details
-
FileMappingHttpContentFactory
Construct aFileMappingHttpContentFactorywhich can use file mapped buffers. Uses a default value of 16384 for the minimum size of anHttpContentbefore trying to use a file mapped buffer.- Parameters:
factory- the wrappedHttpContent.Factoryto use.
-
FileMappingHttpContentFactory
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.
-
-
Method Details
-
getContent
- Specified by:
getContentin interfaceHttpContent.Factory- Parameters:
path- The path within the context to the resource- Returns:
- A
HttpContent - Throws:
IOException- if unable to get content
-