Package | Description |
---|---|
org.eclipse.jetty.util.resource | |
org.eclipse.jetty.util.ssl |
Modifier and Type | Class and Description |
---|---|
class |
FileResource
File Resource.
|
class |
JarResource |
class |
ResourceCollection
A collection of resources (dirs).
|
class |
URLResource
Abstract resource class.
|
Modifier and Type | Method and Description |
---|---|
abstract Resource |
Resource.addPath(String path)
Returns the resource contained inside the current resource with the
given name.
|
Resource |
URLResource.addPath(String path)
Returns the resource contained inside the current resource with the
given name
|
Resource |
FileResource.addPath(String path) |
Resource |
ResourceCollection.addPath(String path) |
Resource |
Resource.getResource(String path)
Get a resource from withing this resource.
|
Resource |
ResourceFactory.getResource(String path)
Get a resource for a path.
|
Resource[] |
ResourceCollection.getResources()
Retrieves the resource collection's resources.
|
static Resource |
Resource.newClassPathResource(String resource)
Find a classpath resource.
|
static Resource |
Resource.newClassPathResource(String name,
boolean useCaches,
boolean checkParents)
Find a classpath resource.
|
static Resource |
JarResource.newJarResource(Resource resource) |
static Resource |
Resource.newResource(File file) |
static Resource |
Resource.newResource(String resource)
Construct a resource from a string.
|
static Resource |
Resource.newResource(String resource,
boolean useCaches)
Construct a resource from a string.
|
static Resource |
Resource.newResource(URI uri)
Construct a resource from a uri.
|
static Resource |
Resource.newResource(URL url)
Construct a resource from a url.
|
static Resource |
Resource.newSystemResource(String resource)
Construct a system resource from a string.
|
Modifier and Type | Method and Description |
---|---|
abstract boolean |
Resource.isContainedIn(Resource r) |
boolean |
URLResource.isContainedIn(Resource containingResource) |
boolean |
ResourceCollection.isContainedIn(Resource r) |
static boolean |
Resource.isContainedIn(Resource r,
Resource containingResource) |
static Resource |
JarResource.newJarResource(Resource resource) |
abstract boolean |
Resource.renameTo(Resource dest)
Rename the given resource
|
boolean |
URLResource.renameTo(Resource dest)
Rename the given resource
|
boolean |
FileResource.renameTo(Resource dest)
Rename the given resource
|
boolean |
ResourceCollection.renameTo(Resource dest) |
void |
ResourceCollection.setResources(Resource[] resources)
Sets the resource collection's resources.
|
Constructor and Description |
---|
ResourceCollection(Resource... resources)
Instantiates a new resource collection.
|
Modifier and Type | Method and Description |
---|---|
void |
SslContextFactory.setKeyStoreResource(Resource resource)
Set the key store resource.
|
void |
SslContextFactory.setTrustStoreResource(Resource resource)
Set the trust store resource.
|
Copyright © 1995-2013 Mort Bay Consulting. All Rights Reserved.