Package tv.hd3g.transfertfiles
Class AbstractFileSystemURL
java.lang.Object
tv.hd3g.transfertfiles.AbstractFileSystemURL
- All Implemented Interfaces:
Closeable,AutoCloseable
-
Constructor Summary
ConstructorsModifierConstructorDescriptionAbstractFileSystemURL(String ressourceURL) protectedAbstractFileSystemURL(String protectedRessourceURL, AbstractFileSystem<?> fileSystem, String basePath) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()getFromPath(String path) booleanIf disconnected, can we re-connect after ?toString()Passwords will be replaced by "*"
-
Constructor Details
-
AbstractFileSystemURL
protected AbstractFileSystemURL(String protectedRessourceURL, AbstractFileSystem<?> fileSystem, String basePath) -
AbstractFileSystemURL
- Parameters:
ressourceURL- like "protocol://user:password@host/basePath?password=secret&active&key=/path/to/privateOpenSSHkey" query must not be encoded use ":password" or "password=" as you want. Never set an "?" in the user:password place. Quotation mark here are ignored (simply used as quotation marks). Never add directly an "&" in the password in query, but you can use " (quotation mark) like password="s&e?c=r+t" key password can be set by... set password - FTP(S|ES) is passive by default. - Add "ignoreInvalidCertificates" to bypass TLS verification with FTPS/FTPES clients. -- Add "timeout=5" for set 5 seconds of connect/socket timeout
-
-
Method Details
-
toString
Passwords will be replaced by "*" -
getFileSystem
-
getFromPath
- Parameters:
relative- path only- Returns:
- after fileSystem.connect
-
getRootPath
- Returns:
- after fileSystem.connect
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
isReusable
public boolean isReusable()If disconnected, can we re-connect after ? -
getBasePath
-