public class ResourceContentFactory extends Object implements HttpContent.ContentFactory
| Constructor and Description |
|---|
ResourceContentFactory(ResourceFactory factory,
MimeTypes mimeTypes,
CompressedContentFormat[] precompressedFormats) |
| Modifier and Type | Method and Description |
|---|---|
HttpContent |
getContent(String pathInContext,
int maxBufferSize) |
String |
toString() |
public ResourceContentFactory(ResourceFactory factory, MimeTypes mimeTypes, CompressedContentFormat[] precompressedFormats)
public HttpContent getContent(String pathInContext, int maxBufferSize) throws IOException
getContent in interface HttpContent.ContentFactorypathInContext - 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 the HttpContent.getDirectBuffer() or HttpContent.getIndirectBuffer() calls.HttpContentIOException - if unable to get contentCopyright © 2010 - 2020 Adobe. All Rights Reserved