Class SmbFileName
java.lang.Object
org.apache.commons.vfs.provider.AbstractFileName
org.apache.commons.vfs.provider.GenericFileName
org.apache.commons.vfs.provider.smb.SmbFileName
- All Implemented Interfaces:
Comparable
,org.apache.commons.vfs.FileName
public class SmbFileName
extends org.apache.commons.vfs.provider.GenericFileName
An SMB URI. Adds a share name to the generic URI.
- Version:
- $Revision: 480428 $ $Date: 2006-11-29 07:15:24 +0100 (Wed, 29 Nov 2006) $
- Author:
- Adam Murdoch
-
Field Summary
Fields inherited from interface org.apache.commons.vfs.FileName
ROOT_PATH, SEPARATOR, SEPARATOR_CHAR
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
appendCredentials
(StringBuffer buffer, boolean addPassword) put domain before username if both are setprotected void
appendRootUri
(StringBuffer buffer, boolean addPassword) Builds the root URI for this file name.org.apache.commons.vfs.FileName
createName
(String path, org.apache.commons.vfs.FileType type) Factory method for creating name instances.returns the domain namegetShare()
Returns the share name.Construct the path suitable for SmbFile when used with NtlmPasswordAuthenticationMethods 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
-
Constructor Details
-
SmbFileName
-
-
Method Details
-
appendRootUri
Builds the root URI for this file name.- Overrides:
appendRootUri
in classorg.apache.commons.vfs.provider.GenericFileName
-
appendCredentials
put domain before username if both are set- Overrides:
appendCredentials
in classorg.apache.commons.vfs.provider.GenericFileName
-
createName
public org.apache.commons.vfs.FileName createName(String path, org.apache.commons.vfs.FileType type) Factory method for creating name instances.- Overrides:
createName
in classorg.apache.commons.vfs.provider.GenericFileName
-
getUriWithoutAuth
Construct the path suitable for SmbFile when used with NtlmPasswordAuthentication- Throws:
org.apache.commons.vfs.FileSystemException
-
getDomain
returns the domain name