Class VfsSchemeResourceFinderFactory
- java.lang.Object
-
- org.glassfish.jersey.server.internal.scanning.VfsSchemeResourceFinderFactory
-
- All Implemented Interfaces:
UriSchemeResourceFinderFactory
final class VfsSchemeResourceFinderFactory extends java.lang.Object implements UriSchemeResourceFinderFactory
A JBoss-based "vfsfile", "vfs" and "vfszip" scheme URI scanner. This approach uses reflection to allow for zero-deps and support for both the v2 (EAP5, AS5) and v3 VFS APIs (AS6, AS7, EAP6 & WildFly) which are not binary compatible.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
VfsSchemeResourceFinderFactory.VfsResourceFinder
-
Field Summary
Fields Modifier and Type Field Description private static java.util.Set<java.lang.String>
SCHEMES
-
Constructor Summary
Constructors Constructor Description VfsSchemeResourceFinderFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResourceFinder
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 ResourceFinder 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.
-
-