Package org.eclipse.jetty.http
Interface HttpContent.ContentFactory
-
- All Known Implementing Classes:
CachedContentFactory
,ResourceContentFactory
- Enclosing interface:
- HttpContent
public static interface HttpContent.ContentFactory
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description HttpContent
getContent(java.lang.String path, int maxBuffer)
-
-
-
Method Detail
-
getContent
HttpContent getContent(java.lang.String path, int maxBuffer) throws java.io.IOException
- 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:
java.io.IOException
- if unable to get content
-
-