public class ResourceContentFactory extends Object implements HttpContent.Factory
Constructor and Description |
---|
ResourceContentFactory(ResourceFactory factory,
MimeTypes mimeTypes,
boolean gzip) |
Modifier and Type | Method and Description |
---|---|
HttpContent |
getContent(String pathInContext,
int maxBufferSize) |
String |
toString() |
public ResourceContentFactory(ResourceFactory factory, MimeTypes mimeTypes, boolean gzip)
public HttpContent getContent(String pathInContext, int maxBufferSize) throws IOException
getContent
in interface HttpContent.Factory
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
IOException
Copyright © 1995-2016 Webtide. All Rights Reserved.