Package org.eclipse.jetty.http
Interface HttpContent.ContentFactory
-
- All Known Implementing Classes:
CachedContentFactory,ResourceContentFactory
- Enclosing interface:
- HttpContent
@Deprecated(since="2021-05-27") public static interface HttpContent.ContentFactoryDeprecated.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description HttpContentgetContent(java.lang.String path, int maxBuffer)Deprecated.
-
-
-
Method Detail
-
getContent
HttpContent getContent(java.lang.String path, int maxBuffer) throws java.io.IOException
Deprecated.- 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
-
-