Module jcifs

Class DfsReferralResponseBuffer

java.lang.Object
org.codelibs.jcifs.smb.internal.dfs.DfsReferralResponseBuffer
All Implemented Interfaces:
Decodable

public class DfsReferralResponseBuffer extends Object implements Decodable
DFS (Distributed File System) referral response buffer parser. Decodes server responses to DFS referral requests, extracting information about available DFS targets, path consumption details, and referral flags.
Author:
mbechler
  • Constructor Details

    • DfsReferralResponseBuffer

      public DfsReferralResponseBuffer()
      Default constructor for DfsReferralResponseBuffer. Initializes the DFS referral response buffer for parsing server responses.
  • Method Details

    • getPathConsumed

      public final int getPathConsumed()
      Get the number of characters consumed from the path
      Returns:
      the pathConsumed
    • getNumReferrals

      public final int getNumReferrals()
      Get the number of referrals in the response
      Returns:
      the numReferrals
    • getTflags

      public final int getTflags()
      Get the referral flags
      Returns:
      the tflags
    • getReferrals

      public final Referral[] getReferrals()
      Get the array of referral entries
      Returns:
      the referrals
    • decode

      public int decode(byte[] buffer, int bufferIndex, int len)
      Description copied from interface: Decodable
      Decode data from a byte buffer
      Specified by:
      decode in interface Decodable
      Parameters:
      buffer - the byte buffer containing the data to decode
      bufferIndex - the starting index in the buffer
      len - the maximum length of data to decode
      Returns:
      decoded length
    • toString

      public String toString()
      Overrides:
      toString in class Object
      See Also: