Package org.eclipse.jetty.http
Interface HttpContent.ContentFactory
- All Known Implementing Classes:
CachedContentFactory
,ResourceContentFactory
- Enclosing interface:
- HttpContent
public static interface HttpContent.ContentFactory
-
Method Summary
-
Method Details
-
getContent
- Parameters:
path
- The path within the context to the resourcemaxBuffer
- The maximum buffer to allocated for this request. For cached content, a larger buffer may have previously been allocated and returned by theHttpContent.getDirectBuffer()
orHttpContent.getIndirectBuffer()
calls.- Returns:
- A
HttpContent
- Throws:
IOException
- if unable to get content
-