java.lang.Object
org.codelibs.jcifs.smb.internal.dfs.Referral
- All Implemented Interfaces:
Decodable
Represents a DFS (Distributed File System) referral entry containing server redirection information.
This class handles DFS referral responses that redirect clients to alternate servers for accessing
distributed file system resources, supporting multiple DFS versions and referral types.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintdecode(byte[] buffer, int bufferIndex, int len) Decode data from a byte bufferfinal StringGets the alternate path for this referral.final String[]Gets the expanded names array for this referral.final StringgetNode()Gets the node name for this referral.final intGets the proximity value indicating the distance to the target.final intGets the referral flags.final StringgetRpath()Gets the referral path.final intGets the server type of this referral.final intgetSize()Gets the size of this referral entry in bytes.final StringGets the special name for this referral.final intgetTtl()Gets the time-to-live value for this referral in seconds.final intGets the DFS referral version number.toString()
-
Constructor Details
-
Referral
public Referral()Default constructor for Referral.
-
-
Method Details
-
getVersion
public final int getVersion()Gets the DFS referral version number.- Returns:
- the version
-
getSize
public final int getSize()Gets the size of this referral entry in bytes.- Returns:
- the size
-
getServerType
public final int getServerType()Gets the server type of this referral.- Returns:
- the serverType
-
getRFlags
public final int getRFlags()Gets the referral flags.- Returns:
- the rflags
-
getProximity
public final int getProximity()Gets the proximity value indicating the distance to the target.- Returns:
- the proximity
-
getAltPath
Gets the alternate path for this referral.- Returns:
- the altPath
-
getTtl
public final int getTtl()Gets the time-to-live value for this referral in seconds.- Returns:
- the ttl
-
getRpath
Gets the referral path.- Returns:
- the rpath
-
getNode
Gets the node name for this referral.- Returns:
- the node
-
getSpecialName
Gets the special name for this referral.- Returns:
- the specialName
-
getExpandedNames
Gets the expanded names array for this referral.- Returns:
- the expandedNames
-
decode
public int decode(byte[] buffer, int bufferIndex, int len) Description copied from interface:DecodableDecode data from a byte buffer -
toString
-