public class ResourceContentFactory extends java.lang.Object implements HttpContent.ContentFactory
| Constructor and Description |
|---|
ResourceContentFactory(ResourceFactory factory,
MimeTypes mimeTypes,
CompressedContentFormat[] precompressedFormats) |
| Modifier and Type | Method and Description |
|---|---|
HttpContent |
getContent(java.lang.String pathInContext,
int maxBufferSize) |
java.lang.String |
toString() |
public ResourceContentFactory(ResourceFactory factory, MimeTypes mimeTypes, CompressedContentFormat[] precompressedFormats)
public HttpContent getContent(java.lang.String pathInContext, int maxBufferSize) throws java.io.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.HttpContentjava.io.IOException - if unable to get contentpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 1995–2018 Webtide. All rights reserved.