public class ResourceContentFactory extends Object implements HttpContent.Factory
Constructor and Description |
---|
ResourceContentFactory(ResourceFactory factory,
MimeTypes mimeTypes,
int maxBufferSize,
boolean gzip) |
Modifier and Type | Method and Description |
---|---|
HttpContent |
getContent(String pathInContext)
Get a Entry from the cache.
|
String |
toString() |
public ResourceContentFactory(ResourceFactory factory, MimeTypes mimeTypes, int maxBufferSize, boolean gzip)
public HttpContent getContent(String pathInContext) throws IOException
getContent
in interface HttpContent.Factory
pathInContext
- The key into the cachepathInContext
, or a new entry
if no matching entry was found. If the content exists but is not cachable,
then a ResourceHttpContent
instance is return. If
the resource does not exist, then null is returned.IOException
- Problem loading the resourceCopyright © 1995-2015 Webtide. All Rights Reserved.