| Package | Description |
|---|---|
| com.lf.vfslib.net |
Classes with common networking functionality for Apache Commons VFS 2.0 and VFSLib.
|
| Modifier and Type | Method and Description |
|---|---|
VFSConnection |
VFSConnection.clone()
Makes a copy of this object.
|
static VFSConnection |
VFSConnection.createConnection(VFSFileSystemManager vfsmanager,
String protocol,
String id)
Creates a fresh new connection appropriate for the given VFS scheme/protocol.
|
static VFSConnection |
VFSConnection.createConnection(VFSFileSystemManager vfsmanager,
String protocol,
String id,
Properties config,
org.apache.commons.vfs2.FileSystemOptions options)
Creates a fresh new connection appropriate for the given VFS scheme/protocol.
|
static VFSConnection |
VFSUtils.findVFSConnection(VFSFileSystemManager vfsmanager,
String id)
Determines the VFS connection associated with the given ID.
|
static VFSConnection[] |
VFSUtils.findVFSConnections(VFSFileSystemManager vfsmanager,
org.apache.commons.vfs2.FileObject entry)
Determines the VFS connections which can be used to show the given network file.
|
static VFSConnection[] |
VFSUtils.findVFSConnections(VFSFileSystemManager vfsmanager,
String url)
Determines the VFS connections which can be used to show the given network file.
|
VFSConnection |
VFSFileSystemManager.getBestConnection(String uri)
Searches the configured connections for an appropriate instance (scheme, host, ...).
|
| Modifier and Type | Method and Description |
|---|---|
Vector<VFSConnection> |
VFSFileSystemManager.getConnections()
Provides the currently configured network connections for this manager.
|
| Modifier and Type | Method and Description |
|---|---|
void |
VFSFileSystemManager.addConnection(VFSConnection vfsconn)
Adds a new network connections for this manager.
|
static String |
VFSUtils.addMissingCredentials(String uri,
VFSConnection vfsconn)
Convenience to automatically apply user and password defined for a connection.
|
static String |
VFSUtils.getDisplayBaseName(org.apache.commons.vfs2.FileObject url,
VFSConnection vfsconn)
Provides the base name of the given URL (without path, credentials etc.).
|
static String |
VFSUtils.getDisplayPath(org.apache.commons.vfs2.FileObject url,
VFSConnection vfsconn)
Provides the path of the given URL.
|
static String |
VFSUtils.getDisplayURIObfuscated(org.apache.commons.vfs2.FileObject url,
VFSConnection vfsconn)
Provides a name without passwords to be displayed, logged etc.
|
static String |
VFSUtils.getDisplayURIUsernameOnly(org.apache.commons.vfs2.FileObject entry,
VFSConnection vfsconn)
Provides a name without passwords to be displayed, logged etc.
|
static String |
VFSUtils.getDisplayURIUsernameOnly(String url,
VFSConnection vfsconn)
Provides a name without passwords to be displayed, logged etc.
|
static String |
VFSUtils.getDisplayURIUsernameOnly(VFSURI entry,
VFSConnection vfsconn)
Provides a name without passwords to be displayed, logged etc.
|
static String |
VFSUtils.getDisplayURIWithoutCredentials(org.apache.commons.vfs2.FileObject url,
VFSConnection vfsconn)
Provides a name without passwords to be displayed, logged etc.
|
static String |
VFSUtils.getDisplayURIWithoutCredentials(VFSURI vfsuri,
VFSConnection vfsconn)
Provides a name without passwords to be displayed, logged etc.
|
static org.apache.commons.vfs2.FileObject |
VFSUtils.getURL(VFSFileSystemManager vfsmanager,
String url,
VFSConnection vfsconn)
Creates a VFS network resource object for the given path which should be a URL.
|
org.apache.commons.vfs2.FileObject |
VFSFileSystemManager.resolveFile(org.apache.commons.vfs2.FileObject baseFile,
String uri,
VFSConnection vfsconn)
Resolves a URI, relative to a base file.
|
org.apache.commons.vfs2.FileObject |
VFSFileSystemManager.resolveFile(File baseFile,
String uri,
VFSConnection vfsconn)
Resolves a URI, relative to a base file.
|
org.apache.commons.vfs2.FileObject |
VFSFileSystemManager.resolveFile(String uri,
org.apache.commons.vfs2.FileSystemOptions options,
VFSConnection vfsconn)
Locates a file by URI.
|
org.apache.commons.vfs2.FileObject |
VFSFileSystemManager.resolveFile(String uri,
VFSConnection vfsconn)
Locates a file by URI.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
VFSConnection.checkUniqueName(Vector<VFSConnection> connections)
Checks if the name for the given connection is unique over all connections.
|
boolean |
VFSConnection.checkUniqueUser(Vector<VFSConnection> connections)
Checks if the user for the given connection is unique over all connections of the same scheme.
|
static String |
VFSConnection.getUniqueConnectionID(Vector<VFSConnection> connections)
Provides the next connection identifier unique for this instance.
|
String |
VFSConnection.isValid(Vector<VFSConnection> connections)
Provides the info if this connection is configured properly and can therefore be used.
|
void |
VFSFileSystemManager.setConnections(Vector<VFSConnection> connections)
Sets the currently configured network connections for this manager.
|
Copyright © 2005-2026 Leisenfels GmbH. All rights reserved.