Class StreamRenderer

  • All Implemented Interfaces:
    Renderer

    public class StreamRenderer
    extends Object
    implements Renderer
    The StreamRendererServlet streams the current resource to the client on behalf of the DefaultGetServlet. If the current resource cannot be streamed it is rendered using the PlainTextRenderer.
    • Constructor Detail

      • StreamRenderer

        public StreamRenderer​(boolean index,
                              String[] indexFiles,
                              javax.servlet.ServletContext context)
    • Method Detail

      • render

        public void render​(org.apache.sling.api.SlingHttpServletRequest request,
                           org.apache.sling.api.SlingHttpServletResponse response)
                    throws IOException
        Specified by:
        render in interface Renderer
        Throws:
        IOException