public class SmbFileName extends GenericFileName
ROOT_PATH, SEPARATOR, SEPARATOR_CHAR| Modifier | Constructor and Description |
|---|---|
protected |
SmbFileName(String scheme,
String hostName,
int port,
String userName,
String password,
String domain,
String share,
String path,
FileType type) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
appendCredentials(StringBuilder buffer,
boolean addPassword)
put domain before username if both are set
|
protected void |
appendRootUri(StringBuilder 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
|
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, toStringpublic String getShare()
protected void appendRootUri(StringBuilder buffer, boolean addPassword)
appendRootUri in class GenericFileNameprotected void appendCredentials(StringBuilder buffer, boolean addPassword)
appendCredentials in class GenericFileNamepublic FileName createName(String path, FileType type)
createName in class GenericFileNamepublic String getUriWithoutAuth() throws FileSystemException
FileSystemExceptionpublic String getDomain()
Copyright © 2002–2016 WSO2. All rights reserved.