Class FileSchemeResourceFinderFactory
- java.lang.Object
-
- org.glassfish.jersey.server.internal.scanning.FileSchemeResourceFinderFactory
-
- All Implemented Interfaces:
UriSchemeResourceFinderFactory
final class FileSchemeResourceFinderFactory extends java.lang.Object implements UriSchemeResourceFinderFactory
A "file" scheme URI scanner that recursively scans directories. Files are reported to aResourceProcessor
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private class
FileSchemeResourceFinderFactory.FileSchemeScanner
-
Field Summary
Fields Modifier and Type Field Description private static java.util.Set<java.lang.String>
SCHEMES
-
Constructor Summary
Constructors Constructor Description FileSchemeResourceFinderFactory()
Create new "file" scheme URI scanner factory.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FileSchemeResourceFinderFactory.FileSchemeScanner
create(java.net.URI uri, boolean recursive)
Create newResourceFinder
for a given resource URI.java.util.Set<java.lang.String>
getSchemes()
Get the set of supported URI schemes.
-
-
-
Method Detail
-
getSchemes
public java.util.Set<java.lang.String> getSchemes()
Description copied from interface:UriSchemeResourceFinderFactory
Get the set of supported URI schemes.- Specified by:
getSchemes
in interfaceUriSchemeResourceFinderFactory
- Returns:
- the supported URI schemes.
-
create
public FileSchemeResourceFinderFactory.FileSchemeScanner create(java.net.URI uri, boolean recursive)
Description copied from interface:UriSchemeResourceFinderFactory
Create newResourceFinder
for a given resource URI.- Specified by:
create
in interfaceUriSchemeResourceFinderFactory
- Parameters:
uri
- resource URI.recursive
- defines whether a resource finder should recursively scan any recognized sub-resource URIs (value oftrue
) or not (value offalse
).- Returns:
- resource finder for a given URI.
-
-