- All Superinterfaces:
CommonServerMessageBlock,CommonServerMessageBlockResponse,Message,Response
- All Known Implementing Classes:
Smb2TreeConnectResponse,SmbComTreeConnectAndXResponse
Interface for SMB Tree Connect response messages.
Handles the server's response to a tree connect request, providing tree ID,
service type, and DFS information for the connected share.
- Author:
- mbechler
-
Method Summary
Modifier and TypeMethodDescriptionReturns the service type of the connected share (e.g., A: for disk, LPT1: for printer, IPC for named pipe).intgetTid()Returns the tree identifier (TID) assigned to this tree connection.booleanIndicates whether the connected share is part of a Distributed File System (DFS) namespace.booleanIndicates whether the tree connection has been successfully established and has a valid tree ID.Methods inherited from interface org.codelibs.jcifs.smb.internal.CommonServerMessageBlock
decode, encode, getCommand, getDigest, getMid, getResponse, reset, setCommand, setDigest, setExtendedSecurity, setMid, setResponse, setSessionId, setUidMethods inherited from interface org.codelibs.jcifs.smb.internal.CommonServerMessageBlockResponse
getNextResponse, isAsync, prepareMethods inherited from interface org.codelibs.jcifs.smb.util.transport.Message
getRawPayload, isRetainPayload, retainPayload, setRawPayloadMethods inherited from interface org.codelibs.jcifs.smb.util.transport.Response
clearReceived, error, exception, getErrorCode, getException, getExpiration, getGrantedCredits, getMid, isError, isReceived, isVerifyFailed, received, reset, setExpiration, setMid, verifySignature
-
Method Details
-
getTid
int getTid()Returns the tree identifier (TID) assigned to this tree connection.- Returns:
- tree id
-
getService
String getService()Returns the service type of the connected share (e.g., A: for disk, LPT1: for printer, IPC for named pipe).- Returns:
- service
-
isValidTid
boolean isValidTid()Indicates whether the tree connection has been successfully established and has a valid tree ID.- Returns:
- whether the tree id is a valid one
-