Package org.apache.wicket.resource
Class FileSystemJarPathService
- java.lang.Object
-
- org.apache.wicket.resource.FileSystemJarPathService
-
- All Implemented Interfaces:
FileSystemPathService
public class FileSystemJarPathService extends Object implements FileSystemPathService
Gets the actual path for a jar file system- Author:
- Tobias Soloschenko
-
-
Field Summary
Fields Modifier and Type Field Description static MetaDataKey<Map<String,FileSystem>>
FILE_SYSTEM_META_DATA_KEY
The key for the file system meta data
-
Constructor Summary
Constructors Constructor Description FileSystemJarPathService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Path
getPath(URI uri, Map<String,String> env)
Gets the actual path for a specific file system to work onboolean
isResponsible(URI uri)
Checks if the file system path service is responsible to handle the given URI
-
-
-
Field Detail
-
FILE_SYSTEM_META_DATA_KEY
public static final MetaDataKey<Map<String,FileSystem>> FILE_SYSTEM_META_DATA_KEY
The key for the file system meta data
-
-
Constructor Detail
-
FileSystemJarPathService
public FileSystemJarPathService()
-
-
Method Detail
-
getPath
public Path getPath(URI uri, Map<String,String> env)
Description copied from interface:FileSystemPathService
Gets the actual path for a specific file system to work on- Specified by:
getPath
in interfaceFileSystemPathService
- Parameters:
uri
- the uri to get the path fromenv
- environment variables to be applied to the file system- Returns:
- the actual path or null if the implementation is not responsible
-
isResponsible
public boolean isResponsible(URI uri)
Description copied from interface:FileSystemPathService
Checks if the file system path service is responsible to handle the given URI- Specified by:
isResponsible
in interfaceFileSystemPathService
- Parameters:
uri
- the URI to detect if the file system path service is responsible- Returns:
- if the file system path service is responsible to handle the given URI
-
-