Package org.eclipse.jetty.util.resource
Class URLResourceFactory
java.lang.Object
org.eclipse.jetty.util.resource.URLResourceFactory
- All Implemented Interfaces:
ResourceFactory
ResourceFactory
for URL
based resources.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.resource.ResourceFactory
ResourceFactory.Closeable, ResourceFactory.LifeCycle
-
Field Summary
Fields inherited from interface org.eclipse.jetty.util.resource.ResourceFactory
LOG
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
URL Connection Connect Timeoutint
URL Connection Read Timeout.boolean
newResource
(URI uri) Construct a resource from a uri.void
setConnectTimeout
(int connectTimeout) void
setReadTimeout
(int readTimeout) void
setUseCaches
(boolean useCaches) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.eclipse.jetty.util.resource.ResourceFactory
newClassLoaderResource, newClassLoaderResource, newClassPathResource, newJarFileResource, newMemoryResource, newResource, newResource, newResource, newResource, newSystemResource, split, split
-
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
Description copied from interface:ResourceFactory
Construct a resource from a uri.- Specified by:
newResource
in interfaceResourceFactory
- Parameters:
uri
- A URI.- Returns:
- A Resource object.
-