- All Known Subinterfaces:
DfsReferralDataInternal
- All Known Implementing Classes:
DfsReferralDataImpl
public interface DfsReferralData
Information returned in DFS referrals
- Author:
- mbechler
This interface is intended for internal use.
-
Method Summary
Modifier and TypeMethodDescriptionGet the domain this referral is forlongGet the expiration time of this referral entrygetLink()Get the complete UNC path link for this referralgetPath()Get the replacement path for this referralintGet the number of characters from the UNC path that were consumed by this referralGet the server this referral points togetShare()Get the share this referral points tonext()Get the next referral in the chain<T extends DfsReferralData>
TUnwrap the referral data to a specific implementation type
-
Method Details
-
unwrap
Unwrap the referral data to a specific implementation type- Type Parameters:
T- the target type to unwrap to- Parameters:
type- the class of the target type- Returns:
- the referral adapted to type
- Throws:
ClassCastException- if the type is not valid for this object
-
getServer
String getServer()Get the server this referral points to- Returns:
- the server this referral points to
-
getDomain
String getDomain()Get the domain this referral is for- Returns:
- the domain this referral is for
-
getPathConsumed
int getPathConsumed()Get the number of characters from the UNC path that were consumed by this referral- Returns:
- the number of characters from the unc path that were consumed by this referral
-
getPath
String getPath()Get the replacement path for this referral- Returns:
- the replacement path for this referal
-
getExpiration
long getExpiration()Get the expiration time of this referral entry- Returns:
- the expiration time of this entry
-
next
DfsReferralData next()Get the next referral in the chain- Returns:
- pointer to next referral, points to self if there is no further referral
-
getLink
String getLink()Get the complete UNC path link for this referral- Returns:
- the link
-