Class FileSchemeResourceFinderFactory
java.lang.Object
org.glassfish.jersey.server.internal.scanning.FileSchemeResourceFinderFactory
- All Implemented Interfaces:
UriSchemeResourceFinderFactory
final class FileSchemeResourceFinderFactory
extends Object
implements UriSchemeResourceFinderFactory
A "file" scheme URI scanner that recursively scans directories.
Files are reported to a
ResourceProcessor
.-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreate new "file" scheme URI scanner factory. -
Method Summary
Modifier and TypeMethodDescriptionCreate newResourceFinder
for a given resource URI.Get the set of supported URI schemes.
-
Field Details
-
SCHEMES
-
-
Constructor Details
-
FileSchemeResourceFinderFactory
FileSchemeResourceFinderFactory()Create new "file" scheme URI scanner factory.
-
-
Method Details
-
getSchemes
Description copied from interface:UriSchemeResourceFinderFactory
Get the set of supported URI schemes.- Specified by:
getSchemes
in interfaceUriSchemeResourceFinderFactory
- Returns:
- the supported URI schemes.
-
create
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.
-