Package org.eclipse.jetty.http.content
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
ConstructorDescriptionPreCompressedHttpContentFactory
(HttpContent.Factory factory, List<CompressedContentFormat> preCompressedFormats) PreCompressedHttpContentFactory
(HttpContent.Factory factory, CompressedContentFormat[] preCompressedFormats) -
Method Summary
-
Constructor Details
-
PreCompressedHttpContentFactory
public PreCompressedHttpContentFactory(HttpContent.Factory factory, CompressedContentFormat[] preCompressedFormats) -
PreCompressedHttpContentFactory
public PreCompressedHttpContentFactory(HttpContent.Factory factory, List<CompressedContentFormat> preCompressedFormats)
-
-
Method Details
-
getContent
- Specified by:
getContent
in interfaceHttpContent.Factory
- Parameters:
pathInContext
- The path within the context to the resource- Returns:
- A
HttpContent
- Throws:
IOException
- if unable to get content
-
toString
-