Class ResourceContentFactory

  • All Implemented Interfaces:
    org.eclipse.jetty.http.HttpContent.ContentFactory

    public class ResourceContentFactory
    extends java.lang.Object
    implements org.eclipse.jetty.http.HttpContent.ContentFactory
    An HttpContent.Factory for transient content (not cached). The HttpContent's created by this factory are not intended to be cached, so memory limits for individual HttpOutput streams are enforced.
    • Constructor Summary

      Constructors 
      Constructor Description
      ResourceContentFactory​(org.eclipse.jetty.util.resource.ResourceFactory factory, org.eclipse.jetty.http.MimeTypes mimeTypes, org.eclipse.jetty.http.CompressedContentFormat[] precompressedFormats)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.eclipse.jetty.http.HttpContent getContent​(java.lang.String pathInContext, int maxBufferSize)  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • ResourceContentFactory

        public ResourceContentFactory​(org.eclipse.jetty.util.resource.ResourceFactory factory,
                                      org.eclipse.jetty.http.MimeTypes mimeTypes,
                                      org.eclipse.jetty.http.CompressedContentFormat[] precompressedFormats)
    • Method Detail

      • getContent

        public org.eclipse.jetty.http.HttpContent getContent​(java.lang.String pathInContext,
                                                             int maxBufferSize)
                                                      throws java.io.IOException
        Specified by:
        getContent in interface org.eclipse.jetty.http.HttpContent.ContentFactory
        Throws:
        java.io.IOException
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object