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_KEYThe 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 PathgetPath(URI uri, Map<String,String> env)Gets the actual path for a specific file system to work onbooleanisResponsible(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:FileSystemPathServiceGets the actual path for a specific file system to work on- Specified by:
getPathin 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:FileSystemPathServiceChecks if the file system path service is responsible to handle the given URI- Specified by:
isResponsiblein 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
-
-