public interface SmbResourceLocator
Modifier and Type | Method and Description |
---|---|
Address |
getAddress() |
String |
getCanonicalURL()
Returns the full URL of this SMB resource with '.' and '..' components
factored out.
|
String |
getDfsPath()
If the path of this
SmbFile falls within a DFS volume,
this method will return the referral path to which it maps. |
DfsReferralData |
getDfsReferral() |
String |
getName()
Returns the last component of the target URL.
|
String |
getParent()
Everything but the last component of the URL representing this SMB
resource is effectively it's parent.
|
String |
getPath()
Returns the full uncanonicalized URL of this SMB resource.
|
int |
getPort() |
String |
getServer()
Retrieve the hostname of the server for this SMB resource.
|
String |
getServerWithDfs()
Retrieve the hostname of the server for this SMB resource.
|
String |
getShare()
Retrieves the share associated with this SMB resource.
|
int |
getType()
Returns type of of object this SmbFile represents.
|
String |
getUNCPath() |
URL |
getURL() |
String |
getURLPath() |
boolean |
isIPC() |
boolean |
isRoot() |
boolean |
isWorkgroup() |
String getName()
SmbFile
or in the case of URLs that only specify a server
or workgroup, the server or workgroup will be returned. The name of
the root URL smb://
is also smb://
. If this
SmbFile refers to a workgroup, server, share, or directory,
the name will include a trailing slash '/' so that composing new
SmbFiles will maintain the trailing slash requirement.smb://
if the resource is smb://
itself.DfsReferralData getDfsReferral()
String getParent()
smb://
does not have a parent. In this case smb://
is returned.smb://
if the resource refers to the root of the URL
hierarchy which incidentally is also smb://
.String getPath()
SmbFile
constructed with the result of this method will
result in an SmbFile
that is equal to the original.String getCanonicalURL()
SmbFile
constructed with the result of
this method will result in an SmbFile
that is equal to
the original.String getUNCPath()
String getURLPath()
String getShare()
smb://
, smb://workgroup/
,
and smb://server/
URLs which do not specify a share,
null
will be returned.null
if there is no shareString getServerWithDfs()
String getServer()
SmbFile
references a workgroup, the name of the workgroup
is returned. If this SmbFile
refers to the root of this
SMB network hierarchy, null
is returned.null
if this
SmbFile
refers to the root smb://
resource.String getDfsPath()
SmbFile
falls within a DFS volume,
this method will return the referral path to which it maps. Otherwise
null
is returned.int getPort()
URL getURL()
Address getAddress() throws CIFSException
CIFSException
boolean isIPC()
int getType() throws CIFSException
CIFSException
boolean isWorkgroup() throws CIFSException
CIFSException
boolean isRoot()
Copyright © 2020. All rights reserved.