Package org.eclipse.jetty.server
Class ResourceContentFactory
- java.lang.Object
-
- org.eclipse.jetty.server.ResourceContentFactory
-
- All Implemented Interfaces:
HttpContent.ContentFactory
@Deprecated(since="2021-05-27") public class ResourceContentFactory extends java.lang.Object implements HttpContent.ContentFactory
Deprecated.The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.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
Constructors Constructor Description ResourceContentFactory(ResourceFactory factory, MimeTypes mimeTypes, CompressedContentFormat[] precompressedFormats)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description HttpContent
getContent(java.lang.String pathInContext, int maxBufferSize)
Deprecated.java.lang.String
toString()
Deprecated.
-
-
-
Constructor Detail
-
ResourceContentFactory
public ResourceContentFactory(ResourceFactory factory, MimeTypes mimeTypes, CompressedContentFormat[] precompressedFormats)
Deprecated.
-
-
Method Detail
-
getContent
public HttpContent getContent(java.lang.String pathInContext, int maxBufferSize) throws java.io.IOException
Deprecated.- Specified by:
getContent
in interfaceHttpContent.ContentFactory
- Parameters:
pathInContext
- The path within the context to the resourcemaxBufferSize
- 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
-
toString
public java.lang.String toString()
Deprecated.- Overrides:
toString
in classjava.lang.Object
-
-