Package org.eclipse.jetty.util.resource
Class MountedPathResource
java.lang.Object
org.eclipse.jetty.util.resource.Resource
org.eclipse.jetty.util.resource.PathResource
org.eclipse.jetty.util.resource.MountedPathResource
Java NIO Path Resource with file system pooling.
FileSystem
implementations that must be closed
must use this class, for instance the one handling the `jar` scheme.-
Field Summary
Fields inherited from class org.eclipse.jetty.util.resource.PathResource
SUPPORTED_SCHEMES
-
Method Summary
Modifier and TypeMethodDescriptiongetName()
The full name of the resource.boolean
isContainedIn
(Resource container) Return true if this resource is contained in the Resource r, either because r is a folder or a jar file or any form of resource capable of containing other resources.protected Resource
newResource
(Path path, URI uri) Internal override for creating a new PathResource.Methods inherited from class org.eclipse.jetty.util.resource.PathResource
contains, equals, exists, getFileName, getPath, getRealPath, getRealURI, getURI, hashCode, isAlias, isDirectory, isReadable, isSameName, lastModified, length, list, resolve, toString, toUri
Methods inherited from class org.eclipse.jetty.util.resource.Resource
copyTo, dump, getAllResources, getPathTo, isSameFile, iterator, newInputStream, newReadableByteChannel
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Method Details
-
newResource
Description copied from class:PathResource
Internal override for creating a new PathResource. Used by MountedPathResource (eg)- Overrides:
newResource
in classPathResource
-
isContainedIn
Description copied from class:Resource
Return true if this resource is contained in the Resource r, either because r is a folder or a jar file or any form of resource capable of containing other resources.- Overrides:
isContainedIn
in classResource
- Parameters:
container
- the containing resource- Returns:
- true if this Resource is contained, false otherwise
- See Also:
-
getContainerPath
-
getName
Description copied from class:Resource
The full name of the resource.- Overrides:
getName
in classPathResource
- Returns:
- the full name of the resource, or null if there is no name for the resource.
-