- All Superinterfaces:
DfsReferralData
- All Known Implementing Classes:
DfsReferralDataImpl
Internal interface for DFS referral data with extended functionality.
Extends the public DFS referral data interface with internal operations like
hostname resolution and referral data manipulation for internal DFS management.
- Author:
- mbechler
-
Method Summary
Modifier and TypeMethodDescriptionvoidAppend another referral to this referral chaincombine(DfsReferralData next) Combine this referral with another to form a chainvoidfixupDomain(String domain) Possibly appends the given domain name to the host name if it is currently unqualifiedvoidReplaces the host with the given FQDN if it is currently unqualifiedgetKey()Get the cache key for this referralbooleanCheck if this referral needs to be resolved furtherbooleanNot exactly sure what that is all about, certainly legacy stuffnext()Get the next referral in the chainvoidReplaces the entry with key in the cache map with this referralvoidSet the cache map for this referralvoidSet the cache key for this referralvoidSet the UNC path link for this referralvoidstripPathConsumed(int i) Reduces path consumed by the given valueMethods inherited from interface org.codelibs.jcifs.smb.DfsReferralData
getDomain, getExpiration, getLink, getPath, getPathConsumed, getServer, getShare, unwrap
-
Method Details
-
fixupHost
Replaces the host with the given FQDN if it is currently unqualified- Parameters:
fqdn- the fully qualified domain name to use
-
fixupDomain
Possibly appends the given domain name to the host name if it is currently unqualified- Parameters:
domain- the domain name to append
-
stripPathConsumed
void stripPathConsumed(int i) Reduces path consumed by the given value- Parameters:
i- the number of characters to strip from path consumed
-
next
DfsReferralDataInternal next()Description copied from interface:DfsReferralDataGet the next referral in the chain- Specified by:
nextin interfaceDfsReferralData- Returns:
- pointer to next referral, points to self if there is no further referral
-
setLink
Set the UNC path link for this referral- Parameters:
link- the UNC path link to set
-
getKey
String getKey()Get the cache key for this referral- Returns:
- cache key
-
setKey
Set the cache key for this referral- Parameters:
key- cache key
-
setCacheMap
Set the cache map for this referral- Parameters:
map- the cache map to associate with this referral
-
replaceCache
void replaceCache()Replaces the entry with key in the cache map with this referral -
isResolveHashes
boolean isResolveHashes()Not exactly sure what that is all about, certainly legacy stuff- Returns:
- resolveHashes
-
isIntermediate
boolean isIntermediate()Check if this referral needs to be resolved further- Returns:
- whether this refrral needs to be resolved further
-
combine
Combine this referral with another to form a chain- Parameters:
next- the referral to combine with- Returns:
- new referral, combining a chain of referrals
-
append
Append another referral to this referral chain- Parameters:
dr- the referral to append
-