Class ConnectionFileName
java.lang.Object
org.apache.commons.vfs2.provider.AbstractFileName
org.pentaho.di.connections.vfs.provider.ConnectionFileName
- All Implemented Interfaces:
Comparable<org.apache.commons.vfs2.FileName>
,org.apache.commons.vfs2.FileName
public class ConnectionFileName
extends org.apache.commons.vfs2.provider.AbstractFileName
-
Field Summary
Fields inherited from interface org.apache.commons.vfs2.FileName
EMPTY_ARRAY, ROOT_PATH, SEPARATOR, SEPARATOR_CHAR
-
Constructor Summary
ConstructorDescriptionConnectionFileName
(String connection) ConnectionFileName
(String connection, String absPath, org.apache.commons.vfs2.FileType type) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
appendRootUri
(StringBuilder buffer, boolean addPassword) createChildName
(String name, org.apache.commons.vfs2.FileType type) createName
(String absPath, org.apache.commons.vfs2.FileType type) protected String
boolean
Gets the connection name.protected ConnectionFileNameUtils
int
hashCode()
boolean
Indicates if the file name is that of a connection root, e.g.boolean
Indicates if the file name is that of the PVFS root, "pvfs://".void
setConnection
(String connection) Sets the connection name.Methods inherited from class org.apache.commons.vfs2.provider.AbstractFileName
checkName, compareTo, getBaseName, getDepth, getExtension, getParent, getPath, getPathDecoded, getRelativeName, getRoot, getScheme, getType, getURI, getUriTrailer, isAncestor, isDescendent, isDescendent, isFile, toString
-
Constructor Details
-
ConnectionFileName
-
ConnectionFileName
-
-
Method Details
-
createName
- Specified by:
createName
in classorg.apache.commons.vfs2.provider.AbstractFileName
-
createChildName
-
getConnectionFileNameUtils
-
appendRootUri
- Specified by:
appendRootUri
in classorg.apache.commons.vfs2.provider.AbstractFileName
-
getRootURI
- Specified by:
getRootURI
in interfaceorg.apache.commons.vfs2.FileName
- Overrides:
getRootURI
in classorg.apache.commons.vfs2.provider.AbstractFileName
-
createURI
- Overrides:
createURI
in classorg.apache.commons.vfs2.provider.AbstractFileName
-
getFriendlyURI
- Specified by:
getFriendlyURI
in interfaceorg.apache.commons.vfs2.FileName
- Overrides:
getFriendlyURI
in classorg.apache.commons.vfs2.provider.AbstractFileName
-
getConnection
Gets the connection name.- Returns:
- The connection name.
-
isPvfsRoot
public boolean isPvfsRoot()Indicates if the file name is that of the PVFS root, "pvfs://".- Returns:
true
if so;false
, otherwise.
-
isConnectionRoot
public boolean isConnectionRoot()Indicates if the file name is that of a connection root, e.g. "pvfs://connection-name/".- Returns:
true
if so;false
, otherwise.
-
setConnection
Sets the connection name.- Parameters:
connection
- The connection name.
-
equals
- Overrides:
equals
in classorg.apache.commons.vfs2.provider.AbstractFileName
-
hashCode
public int hashCode()- Overrides:
hashCode
in classorg.apache.commons.vfs2.provider.AbstractFileName
-