Package jcifs.internal.dfs
Class DfsReferralDataImpl
- java.lang.Object
-
- jcifs.internal.dfs.DfsReferralDataImpl
-
- All Implemented Interfaces:
DfsReferralData,DfsReferralDataInternal
public class DfsReferralDataImpl extends Object implements DfsReferralDataInternal
- Author:
- mbechler
-
-
Constructor Summary
Constructors Constructor Description DfsReferralDataImpl()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidappend(DfsReferralDataInternal dr)DfsReferralDataInternalcombine(DfsReferralData n)booleanequals(Object obj)voidfixupDomain(String dom)Possibly appends the given domain name to the host name if it is currently unqualifiedvoidfixupHost(String fqdn)Replaces the host with the given FQDN if it is currently unqualifiedstatic DfsReferralDataImplfromReferral(Referral ref, String reqPath, long expire, int consumed)StringgetDomain()longgetExpiration()intgetFlags()StringgetKey()StringgetLink()StringgetPath()intgetPathConsumed()StringgetServer()StringgetShare()longgetTtl()inthashCode()voidintermediate()booleanisIntermediate()booleanisResolveHashes()Not exactly sure what that is all about, certainly legacy stuffDfsReferralDataImplnext()voidreplaceCache()Replaces the entry with key in the cache map with this referralvoidsetCacheMap(Map<String,DfsReferralDataInternal> map)voidsetDomain(String domain)voidsetKey(String key)voidsetLink(String link)voidstripPathConsumed(int i)Reduces path consumed by the given valueStringtoString()<T extends DfsReferralData>
Tunwrap(Class<T> type)
-
-
-
Method Detail
-
unwrap
public <T extends DfsReferralData> T unwrap(Class<T> type)
- Specified by:
unwrapin interfaceDfsReferralData- Returns:
- the referral adapted to type
- See Also:
DfsReferralData.unwrap(java.lang.Class)
-
getExpiration
public long getExpiration()
- Specified by:
getExpirationin interfaceDfsReferralData- Returns:
- the expiration time of this entry
-
getPathConsumed
public int getPathConsumed()
- Specified by:
getPathConsumedin interfaceDfsReferralData- Returns:
- the number of characters from the unc path that were consumed by this referral
-
getDomain
public String getDomain()
- Specified by:
getDomainin interfaceDfsReferralData- Returns:
- the domain this referral is for
- See Also:
DfsReferralData.getDomain()
-
setDomain
public void setDomain(String domain)
- Parameters:
domain- the domain to set
-
getLink
public String getLink()
- Specified by:
getLinkin interfaceDfsReferralData- Returns:
- the link
-
setLink
public void setLink(String link)
- Specified by:
setLinkin interfaceDfsReferralDataInternal
-
getKey
public String getKey()
- Specified by:
getKeyin interfaceDfsReferralDataInternal- Returns:
- the key
-
setKey
public void setKey(String key)
- Specified by:
setKeyin interfaceDfsReferralDataInternal- Parameters:
key- the key to set
-
getServer
public String getServer()
- Specified by:
getServerin interfaceDfsReferralData- Returns:
- the server this referral points to
-
getShare
public String getShare()
- Specified by:
getSharein interfaceDfsReferralData- Returns:
- the share this referral points to
-
getPath
public String getPath()
- Specified by:
getPathin interfaceDfsReferralData- Returns:
- the replacement path for this referal
-
getFlags
public int getFlags()
- Returns:
- the rflags
-
setCacheMap
public void setCacheMap(Map<String,DfsReferralDataInternal> map)
- Specified by:
setCacheMapin interfaceDfsReferralDataInternal- See Also:
DfsReferralDataInternal.setCacheMap(java.util.Map)
-
replaceCache
public void replaceCache()
Replaces the entry with key in the cache map with this referral- Specified by:
replaceCachein interfaceDfsReferralDataInternal- See Also:
DfsReferralDataInternal.replaceCache()
-
next
public DfsReferralDataImpl next()
- Specified by:
nextin interfaceDfsReferralData- Specified by:
nextin interfaceDfsReferralDataInternal- Returns:
- pointer to next referral, points to self if there is no further referral
-
append
public void append(DfsReferralDataInternal dr)
- Specified by:
appendin interfaceDfsReferralDataInternal- Parameters:
dr-
-
stripPathConsumed
public void stripPathConsumed(int i)
Reduces path consumed by the given value- Specified by:
stripPathConsumedin interfaceDfsReferralDataInternal- See Also:
DfsReferralDataInternal.stripPathConsumed(int)
-
fixupDomain
public void fixupDomain(String dom)
Description copied from interface:DfsReferralDataInternalPossibly appends the given domain name to the host name if it is currently unqualified- Specified by:
fixupDomainin interfaceDfsReferralDataInternal
-
fixupHost
public void fixupHost(String fqdn)
Description copied from interface:DfsReferralDataInternalReplaces the host with the given FQDN if it is currently unqualified- Specified by:
fixupHostin interfaceDfsReferralDataInternal
-
isResolveHashes
public boolean isResolveHashes()
Description copied from interface:DfsReferralDataInternalNot exactly sure what that is all about, certainly legacy stuff- Specified by:
isResolveHashesin interfaceDfsReferralDataInternal- Returns:
- the resolveHashes
-
intermediate
public void intermediate()
-
isIntermediate
public boolean isIntermediate()
- Specified by:
isIntermediatein interfaceDfsReferralDataInternal- Returns:
- the intermediate
-
getTtl
public long getTtl()
- Returns:
- the ttl
-
hashCode
public int hashCode()
- Overrides:
hashCodein classObject- See Also:
Object.hashCode()
-
equals
public boolean equals(Object obj)
- Overrides:
equalsin classObject- See Also:
Object.equals(java.lang.Object)
-
fromReferral
public static DfsReferralDataImpl fromReferral(Referral ref, String reqPath, long expire, int consumed)
- Parameters:
ref-reqPath-expire-consumed-- Returns:
- referral data
-
combine
public DfsReferralDataInternal combine(DfsReferralData n)
- Specified by:
combinein interfaceDfsReferralDataInternal- Returns:
- new referral, combining a chain of referrals
- See Also:
DfsReferralDataInternal.combine(jcifs.DfsReferralData)
-
-