Class ControlledCacheHttpContentFactory

java.lang.Object
org.eclipse.jetty.http.content.ResourceHttpContentFactory
io.deephaven.server.jetty.ControlledCacheHttpContentFactory
All Implemented Interfaces:
org.eclipse.jetty.http.content.HttpContent.Factory

public class ControlledCacheHttpContentFactory extends org.eclipse.jetty.http.content.ResourceHttpContentFactory
A custom HttpContent.Factory that creates ControlledCacheHttpContent instances.
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.eclipse.jetty.http.content.HttpContent.Factory
    create(org.eclipse.jetty.util.resource.Resource baseResource, org.eclipse.jetty.io.ByteBufferPool byteBufferPool, org.eclipse.jetty.http.MimeTypes mimeTypes)
    Creates a HttpContent.Factory using a similar methodology used in ResourceHandler.newHttpContentFactory() except that we use ControlledCacheHttpContentFactory instead of ResourceHttpContentFactory as the innermost factory, and we don't include the VirtualHttpContentFactory.
    org.eclipse.jetty.http.content.HttpContent
    getContent(String pathInContext)
     

    Methods inherited from class org.eclipse.jetty.http.content.ResourceHttpContentFactory

    resolve, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Method Details

    • create

      public static org.eclipse.jetty.http.content.HttpContent.Factory create(org.eclipse.jetty.util.resource.Resource baseResource, org.eclipse.jetty.io.ByteBufferPool byteBufferPool, org.eclipse.jetty.http.MimeTypes mimeTypes)
      Creates a HttpContent.Factory using a similar methodology used in ResourceHandler.newHttpContentFactory() except that we use ControlledCacheHttpContentFactory instead of ResourceHttpContentFactory as the innermost factory, and we don't include the VirtualHttpContentFactory.
      Parameters:
      baseResource - the base Resource
      byteBufferPool - the ByteBufferPool for ValidatingCachingHttpContentFactory
      mimeTypes - the MimeTypes
      Returns:
      the wrapped HttpContent.Factory
    • getContent

      public org.eclipse.jetty.http.content.HttpContent getContent(String pathInContext) throws IOException
      Specified by:
      getContent in interface org.eclipse.jetty.http.content.HttpContent.Factory
      Overrides:
      getContent in class org.eclipse.jetty.http.content.ResourceHttpContentFactory
      Throws:
      IOException