Class SMB2OplockBreakResponse

All Implemented Interfaces:
Packet<SMBBuffer>

public class SMB2OplockBreakResponse extends SMB2Packet
Unified response for SMB2_OPLOCK_BREAK ([MS-SMB2] 2.2.25). Discriminates between a traditional file-oplock break response (StructureSize 24, §2.2.25.1) and a lease break response (StructureSize 36, §2.2.25.2) by reading StructureSize first.
  • Constructor Details

    • SMB2OplockBreakResponse

      public SMB2OplockBreakResponse()
  • Method Details

    • readMessage

      protected void readMessage(SMBBuffer buffer) throws Buffer.BufferException
      Description copied from class: SMB2Packet
      Read the packet body, this should be implemented by the various packet types.
      Overrides:
      readMessage in class SMB2Packet
      Parameters:
      buffer -
      Throws:
      Buffer.BufferException
    • isLease

      public boolean isLease()
      Returns true if this is a lease break response (StructureSize 36).
    • getOplockLevel

      public SMB2OplockLevel getOplockLevel()
      The oplock level; only meaningful when isLease() is false.
    • getFileId

      public SMB2FileId getFileId()
      The file id; only meaningful when isLease() is false.
    • getLeaseKey

      public LeaseKey getLeaseKey()
      The lease key; only meaningful when isLease() is true.
    • getLeaseState

      public long getLeaseState()
      The lease state; only meaningful when isLease() is true.