Module jcifs
Package org.codelibs.jcifs.smb.internal
Interface Request<T extends CommonServerMessageBlockResponse>
- Type Parameters:
T- response type
- All Superinterfaces:
CommonServerMessageBlock,CommonServerMessageBlockRequest,Message,Request
- All Known Implementing Classes:
ServerMessageBlock2Request,Smb2ChangeNotifyRequest,Smb2CloseRequest,Smb2CreateRequest,Smb2EchoRequest,Smb2FlushRequest,Smb2IoctlRequest,Smb2LockRequest,Smb2LogoffRequest,Smb2NegotiateRequest,Smb2QueryDirectoryRequest,Smb2QueryInfoRequest,Smb2ReadRequest,Smb2SessionSetupRequest,Smb2SetInfoRequest,Smb2TreeConnectRequest,Smb2TreeDisconnectRequest,Smb2WriteRequest,SmbComClose,SmbComNTCreateAndX
public interface Request<T extends CommonServerMessageBlockResponse>
extends CommonServerMessageBlockRequest
Generic interface for typed SMB request messages.
Extends the common request interface with type-safe response handling,
allowing requests to specify their expected response type.
- Author:
- mbechler
-
Method Summary
Modifier and TypeMethodDescriptionGets the response associated with this message.Marks this request to ignore disconnection errors.Initializes and returns a response object for this request.Methods inherited from interface org.codelibs.jcifs.smb.internal.CommonServerMessageBlock
decode, encode, getCommand, getDigest, getMid, reset, setCommand, setDigest, setExtendedSecurity, setMid, setResponse, setSessionId, setUidMethods inherited from interface org.codelibs.jcifs.smb.internal.CommonServerMessageBlockRequest
allowChain, createCancel, getNext, getOverrideTimeout, isResponseAsync, setTid, size, splitMethods 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, isCancel, setRequestCredits
-
Method Details
-
initResponse
Initializes and returns a response object for this request.- Parameters:
tc- the CIFS context- Returns:
- the initialized response
-
getResponse
T getResponse()Description copied from interface:CommonServerMessageBlockGets the response associated with this message.- Specified by:
getResponsein interfaceCommonServerMessageBlock- Specified by:
getResponsein interfaceRequest- Returns:
- the response message
-
ignoreDisconnect
CommonServerMessageBlock ignoreDisconnect()Marks this request to ignore disconnection errors.- Returns:
- this request
-