Top Description Fields Constructors Methods
org.eclipse.jetty.util.resource

public Class MountedPathResource

extends PathResource
Class Inheritance
Imports
java.io.IOException, java.net.URI, java.nio.file.FileSystem, .Path, org.eclipse.jetty.util.URIUtil

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

Modifier and TypeField and Description
private final URI
Inherited from org.eclipse.jetty.util.resource.PathResource:
SUPPORTED_SCHEMES

Constructor Summary

AccessConstructor and Description
pack-priv
pack-priv

Method Summary

Modifier and TypeMethod and Description
public Path
public String
getName()

Overrides org.eclipse.jetty.util.resource.PathResource.getName.

The full name of the resource.
public boolean
isContainedIn(Resource
the containing resource
container
)

Overrides org.eclipse.jetty.util.resource.Resource.isContainedIn.

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)

Overrides org.eclipse.jetty.util.resource.PathResource.newResource.

Internal override for creating a new PathResource.
Inherited from org.eclipse.jetty.util.resource.PathResource:
containsequalsexistsgetFileNamegetPathgetRealPathgetRealURIgetURIhashCodeisAliasisDirectoryisReadableisSameNamelastModifiedlengthlistresolvetoStringtoUri

Field Detail

containerUriback to summary
private final URI containerUri

Constructor Detail

MountedPathResourceback to summary
pack-priv MountedPathResource(URI uri) throws IOException
MountedPathResourceback to summary
pack-priv MountedPathResource(Path path, URI uri)

Method Detail

getContainerPathback to summary
public Path getContainerPath()
getNameback to summary
public String getName()

Overrides org.eclipse.jetty.util.resource.PathResource.getName.

Doc from org.eclipse.jetty.util.resource.Resource.getName.

The full name of the resource.

Returns:String

the full name of the resource, or null if there is no name for the resource.

Annotations
@Override
isContainedInback to summary
public boolean isContainedIn(Resource container)

Overrides org.eclipse.jetty.util.resource.Resource.isContainedIn.

Doc from org.eclipse.jetty.util.resource.Resource.isContainedIn.

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.

Parameters
container:Resource

the containing resource

Returns:boolean

true if this Resource is contained, false otherwise

Annotations
@Override
newResourceback to summary
protected Resource newResource(Path path, URI uri)

Overrides org.eclipse.jetty.util.resource.PathResource.newResource.

Doc from org.eclipse.jetty.util.resource.PathResource.newResource.

Internal override for creating a new PathResource. Used by MountedPathResource (eg)

Annotations
@Override