- All Superinterfaces:
CommonServerMessageBlock,Message
- All Known Implementing Classes:
AndXServerMessageBlock,NetServerEnum2,NetServerEnum2Response,NetShareEnum,NetShareEnumResponse,NtTransNotifyChange,NtTransNotifyChangeResponse,NtTransQuerySecurityDesc,NtTransQuerySecurityDescResponse,ServerMessageBlock,Smb2CreateRequest,SmbComBlankResponse,SmbComClose,SmbComCreateDirectory,SmbComDelete,SmbComDeleteDirectory,SmbComFindClose2,SmbComLockingAndX,SmbComLogoffAndX,SmbComNegotiate,SmbComNegotiateResponse,SmbComNtCancel,SmbComNTCreateAndX,SmbComNTCreateAndXResponse,SmbComNtTransaction,SmbComNtTransactionResponse,SmbComOpenAndX,SmbComOpenAndXResponse,SmbComQueryInformation,SmbComQueryInformationResponse,SmbComReadAndX,SmbComReadAndXResponse,SmbComRename,SmbComSeek,SmbComSeekResponse,SmbComSessionSetupAndX,SmbComSessionSetupAndXResponse,SmbComSetInformation,SmbComSetInformationResponse,SmbComTransaction,SmbComTransactionResponse,SmbComTreeConnectAndX,SmbComTreeConnectAndXResponse,SmbComTreeDisconnect,SmbComWrite,SmbComWriteAndX,SmbComWriteAndXResponse,SmbComWriteResponse,Trans2FindFirst2,Trans2FindFirst2Response,Trans2FindNext2,Trans2GetDfsReferral,Trans2GetDfsReferralResponse,Trans2QueryFSInformation,Trans2QueryFSInformationResponse,Trans2QueryPathInformation,Trans2QueryPathInformationResponse,Trans2SetFileInformation,Trans2SetFileInformationResponse,TransCallNamedPipe,TransCallNamedPipeResponse,TransPeekNamedPipe,TransPeekNamedPipeResponse,TransTransactNamedPipe,TransTransactNamedPipeResponse,TransWaitNamedPipe,TransWaitNamedPipeResponse
Interface for SMB requests that include file system path information.
Provides path handling capabilities including UNC path resolution and DFS support
for SMB operations that target specific files or directories on remote shares.
- Author:
- mbechler
-
Method Summary
Modifier and TypeMethodDescriptionGets the domain name.Gets the full UNC path.getPath()Gets the path to the resource.Gets the server name.booleanChecks if this request should be resolved in DFS.voidsetFullUNCPath(String domain, String server, String fullPath) Sets the full UNC path components.voidSets the path to the resource.voidsetResolveInDfs(boolean resolve) Sets whether to resolve this request path in DFS.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.util.transport.Message
getRawPayload, isRetainPayload, retainPayload, setRawPayload
-
Method Details
-
getPath
String getPath()Gets the path to the resource.- Returns:
- the path to the resource (below share)
-
getServer
String getServer()Gets the server name.- Returns:
- the server name
-
getDomain
String getDomain()Gets the domain name.- Returns:
- the domain name
-
getFullUNCPath
String getFullUNCPath()Gets the full UNC path.- Returns:
- the full UNC path
-
setPath
Sets the path to the resource.- Parameters:
path- the path to set
-
setFullUNCPath
Sets the full UNC path components.- Parameters:
domain- the domain nameserver- the server namefullPath- the full UNC path
-
setResolveInDfs
void setResolveInDfs(boolean resolve) Sets whether to resolve this request path in DFS.- Parameters:
resolve- true to enable DFS resolution
-
isResolveInDfs
boolean isResolveInDfs()Checks if this request should be resolved in DFS.- Returns:
- whether to resolve the request path in DFS
-