Class PreCompressedHttpContentFactory
java.lang.Object
org.eclipse.jetty.http.content.PreCompressedHttpContentFactory
- All Implemented Interfaces:
HttpContent.Factory
This
HttpContent.Factory
populates the HttpContent.getPreCompressedContentFormats()
field for any
HttpContent
fetched through this factory.-
Constructor Summary
ConstructorsConstructorDescriptionPreCompressedHttpContentFactory
(HttpContent.Factory factory, List<CompressedContentFormat> preCompressedFormats) PreCompressedHttpContentFactory
(HttpContent.Factory factory, CompressedContentFormat[] preCompressedFormats) -
Method Summary
Modifier and TypeMethodDescriptiongetContent
(String pathInContext) Get theHttpContent
instance of a path.toString()
-
Constructor Details
-
PreCompressedHttpContentFactory
public PreCompressedHttpContentFactory(HttpContent.Factory factory, CompressedContentFormat[] preCompressedFormats) -
PreCompressedHttpContentFactory
public PreCompressedHttpContentFactory(HttpContent.Factory factory, List<CompressedContentFormat> preCompressedFormats)
-
-
Method Details
-
getContent
Description copied from interface:HttpContent.Factory
Get theHttpContent
instance of a path.- Specified by:
getContent
in interfaceHttpContent.Factory
- Parameters:
pathInContext
- The path.- Returns:
- A
HttpContent
instance. - Throws:
IOException
- if unable to get content
-
toString
-