- All Superinterfaces:
CommonServerMessageBlock,Message,Request
- All Known Subinterfaces:
Request<T>
- All Known Implementing Classes:
AndXServerMessageBlock,NetServerEnum2,NetServerEnum2Response,NetShareEnum,NetShareEnumResponse,NtTransNotifyChange,NtTransNotifyChangeResponse,NtTransQuerySecurityDesc,NtTransQuerySecurityDescResponse,ServerMessageBlock,ServerMessageBlock2Request,Smb2CancelRequest,Smb2ChangeNotifyRequest,Smb2CloseRequest,Smb2CreateRequest,Smb2EchoRequest,Smb2FlushRequest,Smb2IoctlRequest,Smb2LockRequest,Smb2LogoffRequest,Smb2NegotiateRequest,Smb2QueryDirectoryRequest,Smb2QueryInfoRequest,Smb2ReadRequest,Smb2SessionSetupRequest,Smb2SetInfoRequest,Smb2TreeConnectRequest,Smb2TreeDisconnectRequest,Smb2WriteRequest,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 request messages sent from client to server.
Extends the common SMB message block with request-specific functionality including
asynchronous handling, message chaining, cancellation, and timeout management.
- Author:
- mbechler
-
Method Summary
Modifier and TypeMethodDescriptionbooleanChecks if chaining is allowed with the next request.Creates a cancel request for this request.getNext()Gets the next request in the chain.Gets the custom response timeout for this request.booleanChecks if the request will be handled asynchronously.voidsetTid(int t) Sets the tree ID.intsize()Gets the size of this message.split()Splits this request for processing.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, setRawPayloadMethods inherited from interface org.codelibs.jcifs.smb.util.transport.Request
getCreditCost, getResponse, isCancel, setRequestCredits
-
Method Details
-
isResponseAsync
boolean isResponseAsync()Checks if the request will be handled asynchronously.- Returns:
- request was handled asynchronously
-
getNext
CommonServerMessageBlockRequest getNext()Description copied from interface:RequestGets the next request in the chain. -
split
CommonServerMessageBlockRequest split()Splits this request for processing.- Returns:
- the following message
-
size
int size()Gets the size of this message.- Returns:
- the size of this message
-
createCancel
CommonServerMessageBlockRequest createCancel()Creates a cancel request for this request.- Returns:
- create cancel request
-
allowChain
Checks if chaining is allowed with the next request.- Parameters:
next- the next request in the chain- Returns:
- whether to allow chaining
-
setTid
void setTid(int t) Sets the tree ID.- Parameters:
t- the tree ID to set
-
getOverrideTimeout
Integer getOverrideTimeout()Gets the custom response timeout for this request.- Returns:
- custom response timeout for this request
-