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
  • Constructor Details

    • ConnectionFileName

      public ConnectionFileName(@Nullable String connection)
    • ConnectionFileName

      public ConnectionFileName(@Nullable String connection, @Nullable String absPath, @NonNull org.apache.commons.vfs2.FileType type)
  • Method Details

    • createName

      public ConnectionFileName createName(String absPath, org.apache.commons.vfs2.FileType type)
      Specified by:
      createName in class org.apache.commons.vfs2.provider.AbstractFileName
    • createChildName

      public ConnectionFileName createChildName(String name, org.apache.commons.vfs2.FileType type)
    • getConnectionFileNameUtils

      @NonNull protected ConnectionFileNameUtils getConnectionFileNameUtils()
    • appendRootUri

      protected void appendRootUri(StringBuilder buffer, boolean addPassword)
      Specified by:
      appendRootUri in class org.apache.commons.vfs2.provider.AbstractFileName
    • getRootURI

      public String getRootURI()
      Specified by:
      getRootURI in interface org.apache.commons.vfs2.FileName
      Overrides:
      getRootURI in class org.apache.commons.vfs2.provider.AbstractFileName
    • createURI

      protected String createURI()
      Overrides:
      createURI in class org.apache.commons.vfs2.provider.AbstractFileName
    • getFriendlyURI

      public String getFriendlyURI()
      Specified by:
      getFriendlyURI in interface org.apache.commons.vfs2.FileName
      Overrides:
      getFriendlyURI in class org.apache.commons.vfs2.provider.AbstractFileName
    • getConnection

      @Nullable public String 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

      public void setConnection(@Nullable String connection)
      Sets the connection name.
      Parameters:
      connection - The connection name.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class org.apache.commons.vfs2.provider.AbstractFileName
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class org.apache.commons.vfs2.provider.AbstractFileName