Interface HttpContent.ContentFactory

    • Method Detail

      • getContent

        HttpContent getContent​(java.lang.String path,
                               int maxBuffer)
                        throws java.io.IOException
        Deprecated.
        Parameters:
        path - The path within the context to the resource
        maxBuffer - 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.
        Returns:
        A HttpContent
        Throws:
        java.io.IOException - if unable to get content