|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.vfs.provider.AbstractFileName
org.apache.commons.vfs.provider.GenericFileName
org.apache.commons.vfs.provider.smb.SmbFileName
public class SmbFileName
An SMB URI. Adds a share name to the generic URI.
Field Summary |
---|
Fields inherited from interface org.apache.commons.vfs.FileName |
---|
ROOT_PATH, SEPARATOR, SEPARATOR_CHAR |
Constructor Summary | |
---|---|
protected |
SmbFileName(String scheme,
String hostName,
int port,
String userName,
String password,
String domain,
String share,
String path,
FileType type)
|
Method Summary | |
---|---|
protected void |
appendCredentials(StringBuffer buffer,
boolean addPassword)
put domain before username if both are set |
protected void |
appendRootUri(StringBuffer buffer,
boolean addPassword)
Builds the root URI for this file name. |
FileName |
createName(String path,
FileType type)
Factory method for creating name instances. |
String |
getDomain()
returns the domain name |
String |
getShare()
Returns the share name. |
String |
getUriWithoutAuth()
Construct the path suitable for SmbFile when used with NtlmPasswordAuthentication |
Methods inherited from class org.apache.commons.vfs.provider.GenericFileName |
---|
getDefaultPort, getHostName, getPassword, getPort, getUserName |
Methods inherited from class org.apache.commons.vfs.provider.AbstractFileName |
---|
checkName, compareTo, createURI, equals, getBaseName, getDepth, getExtension, getFriendlyURI, getParent, getPath, getPathDecoded, getRelativeName, getRoot, getRootURI, getScheme, getType, getURI, getUriTrailer, hashCode, isAncestor, isDescendent, isDescendent, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected SmbFileName(String scheme, String hostName, int port, String userName, String password, String domain, String share, String path, FileType type)
Method Detail |
---|
public String getShare()
protected void appendRootUri(StringBuffer buffer, boolean addPassword)
appendRootUri
in class GenericFileName
buffer
- A StringBuffer to use to construct the URI.addPassword
- true if the password should be added, false otherwise.protected void appendCredentials(StringBuffer buffer, boolean addPassword)
appendCredentials
in class GenericFileName
public FileName createName(String path, FileType type)
createName
in class GenericFileName
path
- The absolute path.type
- The FileType.
public String getUriWithoutAuth() throws FileSystemException
FileSystemException
public String getDomain()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |