public class SmbFileName
extends org.apache.commons.vfs.provider.GenericFileName
Modifier | Constructor | Description |
---|---|---|
protected |
SmbFileName(java.lang.String scheme,
java.lang.String hostName,
int port,
java.lang.String userName,
java.lang.String password,
java.lang.String domain,
java.lang.String share,
java.lang.String path,
org.apache.commons.vfs.FileType type) |
Modifier and Type | Method | Description |
---|---|---|
protected void |
appendCredentials(java.lang.StringBuffer buffer,
boolean addPassword) |
put domain before username if both are set
|
protected void |
appendRootUri(java.lang.StringBuffer buffer,
boolean addPassword) |
Builds the root URI for this file name.
|
org.apache.commons.vfs.FileName |
createName(java.lang.String path,
org.apache.commons.vfs.FileType type) |
Factory method for creating name instances.
|
java.lang.String |
getDomain() |
returns the domain name
|
java.lang.String |
getShare() |
Returns the share name.
|
java.lang.String |
getUriWithoutAuth() |
Construct the path suitable for SmbFile when used with NtlmPasswordAuthentication
|
checkName, compareTo, createURI, equals, getBaseName, getDepth, getExtension, getFriendlyURI, getParent, getPath, getPathDecoded, getRelativeName, getRoot, getRootURI, getScheme, getType, getURI, getUriTrailer, hashCode, isAncestor, isDescendent, isDescendent, toString
protected SmbFileName(java.lang.String scheme, java.lang.String hostName, int port, java.lang.String userName, java.lang.String password, java.lang.String domain, java.lang.String share, java.lang.String path, org.apache.commons.vfs.FileType type)
public java.lang.String getShare()
protected void appendRootUri(java.lang.StringBuffer buffer, boolean addPassword)
appendRootUri
in class org.apache.commons.vfs.provider.GenericFileName
protected void appendCredentials(java.lang.StringBuffer buffer, boolean addPassword)
appendCredentials
in class org.apache.commons.vfs.provider.GenericFileName
public org.apache.commons.vfs.FileName createName(java.lang.String path, org.apache.commons.vfs.FileType type)
createName
in class org.apache.commons.vfs.provider.GenericFileName
public java.lang.String getUriWithoutAuth() throws org.apache.commons.vfs.FileSystemException
org.apache.commons.vfs.FileSystemException
public java.lang.String getDomain()