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.ContentFactory
pathInContext
- 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.HttpContent
java.io.IOException
- if unable to get contentpublic java.lang.String toString()
toString
in class java.lang.Object
Copyright © 1995–2023 Webtide. All rights reserved.