public class SmbFileName
extends org.apache.commons.vfs.provider.GenericFileName
| Modifier | Constructor and 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 and 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
|
getDefaultPort, getHostName, getPassword, getPort, getUserNamecheckName, compareTo, createURI, equals, getBaseName, getDepth, getExtension, getFriendlyURI, getParent, getPath, getPathDecoded, getRelativeName, getRoot, getRootURI, getScheme, getType, getURI, getUriTrailer, hashCode, isAncestor, isDescendent, isDescendent, toStringprotected 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.GenericFileNameprotected void appendCredentials(java.lang.StringBuffer buffer,
boolean addPassword)
appendCredentials in class org.apache.commons.vfs.provider.GenericFileNamepublic org.apache.commons.vfs.FileName createName(java.lang.String path,
org.apache.commons.vfs.FileType type)
createName in class org.apache.commons.vfs.provider.GenericFileNamepublic java.lang.String getUriWithoutAuth()
throws org.apache.commons.vfs.FileSystemException
org.apache.commons.vfs.FileSystemExceptionpublic java.lang.String getDomain()