Class URLResourceFactory

java.lang.Object
org.eclipse.jetty.util.resource.URLResourceFactory
All Implemented Interfaces:
ResourceFactory

public class URLResourceFactory extends Object implements ResourceFactory
ResourceFactory for URL based resources.
  • Constructor Details

    • URLResourceFactory

      public URLResourceFactory()
  • Method Details

    • getConnectTimeout

      public int getConnectTimeout()
      URL Connection Connect Timeout
      Returns:
      the connect timeout
      See Also:
    • setConnectTimeout

      public void setConnectTimeout(int connectTimeout)
    • getReadTimeout

      public int getReadTimeout()
      URL Connection Read Timeout.
      Returns:
      the read timeout
      See Also:
    • setReadTimeout

      public void setReadTimeout(int readTimeout)
    • isUseCaches

      public boolean isUseCaches()
    • setUseCaches

      public void setUseCaches(boolean useCaches)
    • newResource

      public Resource newResource(URI uri)
      Description copied from interface: ResourceFactory
      Construct a resource from a uri.
      Specified by:
      newResource in interface ResourceFactory
      Parameters:
      uri - A URI.
      Returns:
      A Resource object.