| 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.security |
Jetty Util : Common Security Utilities
|
| org.eclipse.jetty.util.ssl |
Jetty Util : Common SSL Utility Classes
|
| Modifier and Type | Method | Description |
|---|---|---|
static java.nio.ByteBuffer |
BufferUtil.toBuffer(Resource resource,
boolean direct) |
| Modifier and Type | Class | Description |
|---|---|---|
class |
EmptyResource |
EmptyResource
Represents a resource that does does not refer to any file, url, jar etc.
|
class |
FileResource |
Deprecated.
Use
PathResource |
class |
JarFileResource |
|
class |
JarResource |
|
class |
PathResource |
Java NIO Path equivalent of FileResource.
|
class |
ResourceCollection |
A collection of resources (dirs).
|
class |
URLResource |
URL resource class.
|
| Modifier and Type | Field | Description |
|---|---|---|
static Resource |
EmptyResource.INSTANCE |
| Modifier and Type | Method | Description |
|---|---|---|
Resource |
EmptyResource.addPath(java.lang.String path) |
|
Resource |
FileResource.addPath(java.lang.String path) |
Deprecated.
|
Resource |
PathResource.addPath(java.lang.String subpath) |
|
abstract Resource |
Resource.addPath(java.lang.String path) |
Returns the resource contained inside the current resource with the
given name.
|
Resource |
ResourceCollection.addPath(java.lang.String path) |
|
Resource |
URLResource.addPath(java.lang.String path) |
Returns the resource contained inside the current resource with the
given name
|
static Resource |
JarFileResource.getNonCachingResource(Resource resource) |
Take a Resource that possibly might use URLConnection caching
and turn it into one that doesn't.
|
Resource |
Resource.getResource(java.lang.String path) |
Get a resource from within this resource.
|
Resource |
ResourceFactory.getResource(java.lang.String path) |
Get a resource for a path.
|
Resource[] |
ResourceCollection.getResources() |
Retrieves the resource collection's resources.
|
static Resource |
Resource.newClassPathResource(java.lang.String resource) |
Find a classpath resource.
|
static Resource |
Resource.newClassPathResource(java.lang.String name,
boolean useCaches,
boolean checkParents) |
Find a classpath resource.
|
static Resource |
JarResource.newJarResource(Resource resource) |
|
static Resource |
Resource.newResource(java.io.File file) |
|
static Resource |
Resource.newResource(java.lang.String resource) |
Construct a resource from a string.
|
static Resource |
Resource.newResource(java.lang.String resource,
boolean useCaches) |
Construct a resource from a string.
|
static Resource |
Resource.newResource(java.net.URI uri) |
Construct a resource from a uri.
|
static Resource |
Resource.newResource(java.net.URL url) |
Construct a resource from a url.
|
static Resource |
Resource.newSystemResource(java.lang.String resource) |
Construct a system resource from a string.
|
| Modifier and Type | Method | Description |
|---|---|---|
java.util.Collection<Resource> |
Resource.getAllResources() |
| Modifier and Type | Method | Description |
|---|---|---|
static Resource |
JarFileResource.getNonCachingResource(Resource resource) |
Take a Resource that possibly might use URLConnection caching
and turn it into one that doesn't.
|
boolean |
EmptyResource.isContainedIn(Resource r) |
|
boolean |
FileResource.isContainedIn(Resource r) |
Deprecated.
|
boolean |
JarFileResource.isContainedIn(Resource resource) |
Check if this jar:file: resource is contained in the
named resource.
|
boolean |
PathResource.isContainedIn(Resource r) |
|
abstract boolean |
Resource.isContainedIn(Resource r) |
|
static boolean |
Resource.isContainedIn(Resource r,
Resource containingResource) |
|
boolean |
ResourceCollection.isContainedIn(Resource r) |
|
boolean |
URLResource.isContainedIn(Resource containingResource) |
|
static Resource |
JarResource.newJarResource(Resource resource) |
|
boolean |
EmptyResource.renameTo(Resource dest) |
|
boolean |
FileResource.renameTo(Resource dest) |
Deprecated.
Rename the given resource
|
boolean |
PathResource.renameTo(Resource dest) |
|
abstract boolean |
Resource.renameTo(Resource dest) |
Rename the given resource
|
boolean |
ResourceCollection.renameTo(Resource dest) |
|
boolean |
URLResource.renameTo(Resource dest) |
Rename the given resource
|
void |
ResourceCollection.setResources(Resource[] resources) |
Sets the resource collection's resources.
|
| Constructor | Description |
|---|---|
ResourceCollection(Resource... resources) |
Instantiates a new resource collection.
|
| Modifier and Type | Method | Description |
|---|---|---|
static java.security.KeyStore |
CertificateUtils.getKeyStore(Resource store,
java.lang.String storeType,
java.lang.String storeProvider,
java.lang.String storePassword) |
| Modifier and Type | Method | Description |
|---|---|---|
Resource |
SslContextFactory.getKeyStoreResource() |
|
Resource |
SslContextFactory.getTrustStoreResource() |
| Modifier and Type | Method | Description |
|---|---|---|
protected java.security.KeyStore |
SslContextFactory.loadKeyStore(Resource resource) |
Override this method to provide alternate way to load a keystore.
|
protected java.security.KeyStore |
SslContextFactory.loadTrustStore(Resource resource) |
Override this method to provide alternate way to load a truststore.
|
void |
SslContextFactory.setKeyStoreResource(Resource resource) |
Set the key store resource.
|
void |
SslContextFactory.setTrustStoreResource(Resource resource) |
Set the trust store resource.
|
Copyright © 1995–2018 Webtide. All rights reserved.