Module jcifs

Interface DfsReferralData

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 Type
    Method
    Description
    Get the domain this referral is for
    long
    Get the expiration time of this referral entry
    Get the complete UNC path link for this referral
    Get the replacement path for this referral
    int
    Get the number of characters from the UNC path that were consumed by this referral
    Get the server this referral points to
    Get the share this referral points to
    Get the next referral in the chain
    <T extends DfsReferralData>
    T
    unwrap(Class<T> type)
    Unwrap the referral data to a specific implementation type
  • Method Details

    • unwrap

      <T extends DfsReferralData> T unwrap(Class<T> type)
      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
    • getShare

      String getShare()
      Get the share this referral points to
      Returns:
      the share this referral points to
    • 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

      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