Module jcifs

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 Details

    • initResponse

      T initResponse(CIFSContext tc)
      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: CommonServerMessageBlock
      Gets the response associated with this message.
      Specified by:
      getResponse in interface CommonServerMessageBlock
      Specified by:
      getResponse in interface Request
      Returns:
      the response message
    • ignoreDisconnect

      CommonServerMessageBlock ignoreDisconnect()
      Marks this request to ignore disconnection errors.
      Returns:
      this request