- All Superinterfaces:
SmbResourceLocator
Internal interface for SMB resource locators.
This interface provides internal methods for locating
and resolving SMB resources.
- Author:
- mbechler
-
Method Summary
Modifier and TypeMethodDescriptionhandleDFSReferral(DfsReferralData dr, String reqPath) Internal: for testing onlybooleanoverlaps(SmbResourceLocator other) Determines whether this resource path overlaps with another resource path by sharing a common root.booleanDetermines whether SMB signing should be enforced for connections to this resource.Methods inherited from interface org.codelibs.jcifs.smb.SmbResourceLocator
getAddress, getCanonicalURL, getDfsPath, getDfsReferral, getName, getParent, getPath, getPort, getServer, getServerWithDfs, getShare, getType, getUNCPath, getURL, getURLPath, isIPC, isRoot, isWorkgroup
-
Method Details
-
shouldForceSigning
boolean shouldForceSigning()Determines whether SMB signing should be enforced for connections to this resource.- Returns:
- whether to enforce the use of signing on connection to this resource
-
overlaps
Determines whether this resource path overlaps with another resource path by sharing a common root.- Parameters:
other- the other resource locator to compare with- Returns:
- whether the paths share a common root
- Throws:
CIFSException- if an error occurs during comparison
-
handleDFSReferral
Internal: for testing only- Parameters:
dr- the DFS referral data to processreqPath- the requested path to resolve- Returns:
- resolved unc path
-