Class ResourceHttpContentFactory
java.lang.Object
org.eclipse.jetty.http.content.ResourceHttpContentFactory
- All Implemented Interfaces:
HttpContent.Factory
An HttpContent.Factory for transient content (not cached). The HttpContent's created by
this factory are not intended to be cached, so memory limits for individual
HttpOutput streams are enforced.
-
Constructor Summary
ConstructorsConstructorDescriptionResourceHttpContentFactory
(Resource baseResource, MimeTypes mimeTypes, ByteBufferPool.Sized sizedBufferPool) -
Method Summary
Modifier and TypeMethodDescriptiongetContent
(String pathInContext) Get theHttpContent
instance of a path.protected Resource
toString()
-
Constructor Details
-
ResourceHttpContentFactory
public ResourceHttpContentFactory(Resource baseResource, MimeTypes mimeTypes, ByteBufferPool.Sized sizedBufferPool)
-
-
Method Details
-
getContent
Description copied from interface:HttpContent.Factory
Get theHttpContent
instance of a path.- Specified by:
getContent
in interfaceHttpContent.Factory
- Parameters:
pathInContext
- The path.- Returns:
- A
HttpContent
instance. - Throws:
IOException
- if unable to get content
-
resolve
-
toString
-