| Package | Description |
|---|---|
| org.eclipse.jetty.util |
Jetty Util : Common Utility Classes
|
| org.eclipse.jetty.util.resource |
Jetty Util : Common Resource Utilities
|
| org.eclipse.jetty.util.ssl |
Jetty Util : Common SSL Utility Classes
|
| Modifier and Type | Method and Description |
|---|---|
static ByteBuffer |
BufferUtil.toBuffer(Resource resource,
boolean direct) |
| Modifier and Type | Class and Description |
|---|---|
class |
EmptyResource
EmptyResource
Represents a resource that does does not refer to any file, url, jar etc.
|
class |
FileResource
File Resource.
|
class |
JarResource |
class |
PathResource
Java NIO Path equivalent of FileResource.
|
class |
ResourceCollection
A collection of resources (dirs).
|
class |
URLResource
Abstract resource class.
|
| Modifier and Type | Field and Description |
|---|---|
static Resource |
EmptyResource.INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
Resource |
URLResource.addPath(String path)
Returns the resource contained inside the current resource with the
given name
|
Resource |
ResourceCollection.addPath(String path) |
abstract Resource |
Resource.addPath(String path)
Returns the resource contained inside the current resource with the
given name.
|
Resource |
PathResource.addPath(String apath) |
Resource |
FileResource.addPath(String path) |
Resource |
EmptyResource.addPath(String path) |
Resource |
ResourceFactory.getResource(String path)
Get a resource for a path.
|
Resource |
Resource.getResource(String path)
Get a resource from within this resource.
|
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 |
|---|---|
Collection<Resource> |
Resource.getAllResources() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
URLResource.isContainedIn(Resource containingResource) |
boolean |
ResourceCollection.isContainedIn(Resource r) |
abstract boolean |
Resource.isContainedIn(Resource r) |
boolean |
PathResource.isContainedIn(Resource r) |
boolean |
FileResource.isContainedIn(Resource r) |
boolean |
EmptyResource.isContainedIn(Resource r) |
static boolean |
Resource.isContainedIn(Resource r,
Resource containingResource) |
static Resource |
JarResource.newJarResource(Resource resource) |
boolean |
URLResource.renameTo(Resource dest)
Rename the given resource
|
boolean |
ResourceCollection.renameTo(Resource dest) |
abstract boolean |
Resource.renameTo(Resource dest)
Rename the given resource
|
boolean |
PathResource.renameTo(Resource dest) |
boolean |
FileResource.renameTo(Resource dest)
Rename the given resource
|
boolean |
EmptyResource.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-2015 Webtide. All Rights Reserved.