Package com.hierynomus.mssmb2.messages
Class SMB2TreeConnectResponse
- java.lang.Object
-
- com.hierynomus.smb.SMBPacket<SMB2PacketData,SMB2PacketHeader>
-
- com.hierynomus.mssmb2.SMB2Packet
-
- com.hierynomus.mssmb2.messages.SMB2TreeConnectResponse
-
public class SMB2TreeConnectResponse extends SMB2Packet
[MS-SMB2].pdf 2.2.10 SMB2 TREE_CONNECT ResponseTODO
-
-
Field Summary
-
Fields inherited from class com.hierynomus.mssmb2.SMB2Packet
SINGLE_CREDIT_PAYLOAD_SIZE, structureSize
-
-
Constructor Summary
Constructors Constructor Description SMB2TreeConnectResponse()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Set<SMB2ShareCapabilities>
getCapabilities()
java.util.Set<AccessMask>
getMaximalAccess()
java.util.Set<SMB2ShareFlags>
getShareFlags()
boolean
isDiskShare()
Whether the ShareType returned is SMB2_SHARE_TYPE_DISK (0x01)boolean
isNamedPipe()
Whether the ShareType returned is SMB2_SHARE_TYPE_PIPE (0x02)boolean
isPrinterShare()
Whether the ShareType returned is SMB2_SHARE_TYPE_PRINT (0x03)protected void
readMessage(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, toString, write, writeTo
-
-
-
-
Method Detail
-
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 classSMB2Packet
- Throws:
Buffer.BufferException
-
isDiskShare
public boolean isDiskShare()
Whether the ShareType returned is SMB2_SHARE_TYPE_DISK (0x01)- Returns:
- true if the ShareType returned is SMB2_SHARE_TYPE_DISK (0x01)
-
isNamedPipe
public boolean isNamedPipe()
Whether the ShareType returned is SMB2_SHARE_TYPE_PIPE (0x02)- Returns:
- true if the ShareType returned is SMB2_SHARE_TYPE_PIPE (0x02)
-
isPrinterShare
public boolean isPrinterShare()
Whether the ShareType returned is SMB2_SHARE_TYPE_PRINT (0x03)- Returns:
- true if the ShareType returned is SMB2_SHARE_TYPE_PRINT (0x03)
-
getShareFlags
public java.util.Set<SMB2ShareFlags> getShareFlags()
-
getCapabilities
public java.util.Set<SMB2ShareCapabilities> getCapabilities()
-
getMaximalAccess
public java.util.Set<AccessMask> getMaximalAccess()
-
-