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 Link icon

    • URLResourceFactory Link icon

      public URLResourceFactory()
  • Method Details Link icon

    • getConnectTimeout Link icon

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

      public void setConnectTimeout(int connectTimeout)
    • getReadTimeout Link icon

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

      public void setReadTimeout(int readTimeout)
    • isUseCaches Link icon

      public boolean isUseCaches()
    • setUseCaches Link icon

      public void setUseCaches(boolean useCaches)
    • newResource Link icon

      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.