Package com.hierynomus.mssmb2.messages
Class SMB2OplockBreakResponse
java.lang.Object
com.hierynomus.smb.SMBPacket<SMB2PacketData,SMB2PacketHeader>
com.hierynomus.mssmb2.SMB2Packet
com.hierynomus.mssmb2.messages.SMB2OplockBreakResponse
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.
-
Field Summary
Fields inherited from class com.hierynomus.mssmb2.SMB2Packet
SINGLE_CREDIT_PAYLOAD_SIZE, structureSize -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe file id; only meaningful whenisLease()isfalse.The lease key; only meaningful whenisLease()istrue.longThe lease state; only meaningful whenisLease()istrue.The oplock level; only meaningful whenisLease()isfalse.booleanisLease()Returnstrueif this is a lease break response (StructureSize 36).protected voidreadMessage(SMBBuffer buffer) Read the packet body, this should be implemented by the various packet types.Methods inherited from class com.hierynomus.mssmb2.SMB2Packet
getBuffer, getCreditsAssigned, getError, getMaxPayloadSize, getPacket, getSequenceNumber, getStructureSize, isIntermediateAsyncResponse, isSuccess, read, setCreditsAssigned, setError, toString, write, writeTo
-
Constructor Details
-
SMB2OplockBreakResponse
public SMB2OplockBreakResponse()
-
-
Method Details
-
readMessage
Description copied from class:SMB2PacketRead the packet body, this should be implemented by the various packet types.- Overrides:
readMessagein classSMB2Packet- Parameters:
buffer-- Throws:
Buffer.BufferException
-
isLease
public boolean isLease()Returnstrueif this is a lease break response (StructureSize 36). -
getOplockLevel
The oplock level; only meaningful whenisLease()isfalse. -
getFileId
The file id; only meaningful whenisLease()isfalse. -
getLeaseKey
The lease key; only meaningful whenisLease()istrue. -
getLeaseState
public long getLeaseState()The lease state; only meaningful whenisLease()istrue.
-