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