Class SMB2ProcessResponsePacketHandler
- java.lang.Object
-
- com.hierynomus.smbj.connection.packet.AbstractIncomingPacketHandler
-
- com.hierynomus.smbj.connection.packet.SMB2PacketHandler
-
- com.hierynomus.smbj.connection.packet.SMB2ProcessResponsePacketHandler
-
- All Implemented Interfaces:
IncomingPacketHandler
public class SMB2ProcessResponsePacketHandler extends SMB2PacketHandler
[MS-SMB2] 3.2.5.1.7 Handling Incorrectly Formatted Responses AND 3.2.5.1.8 Processing the ResponseIf the client receives a response that does not conform to the structures specified in 2, the client MUST discard the response and fail the corresponding application request with an error indicating that an invalid network response was received. The client MAY<154> also disconnect the connection.
The client MUST process the response based on the Command field of the SMB2 header of the response. When the processing is completed, the corresponding request MUST be removed from Connection.OutstandingRequests. The corresponding request MUST also be removed from Open.OutstandingRequests, if it exists.
If the command that is received is not a valid command, or if the server returned a command that did not match the command of the request, the client SHOULD<155> fail the application request with an implementation-specific error that indicates an invalid network response was received.
-
-
Field Summary
-
Fields inherited from class com.hierynomus.smbj.connection.packet.AbstractIncomingPacketHandler
next
-
-
Constructor Summary
Constructors Constructor Description SMB2ProcessResponsePacketHandler(SMB2MessageConverter smb2Converter, OutstandingRequests outstandingRequests)
-
Method Summary
Modifier and Type Method Description protected void
doSMB2Handle(SMB2PacketData packetData)
-
Methods inherited from class com.hierynomus.smbj.connection.packet.SMB2PacketHandler
canHandle, doHandle
-
Methods inherited from class com.hierynomus.smbj.connection.packet.AbstractIncomingPacketHandler
handle, setNext
-
-
-
-
Constructor Detail
-
SMB2ProcessResponsePacketHandler
public SMB2ProcessResponsePacketHandler(SMB2MessageConverter smb2Converter, OutstandingRequests outstandingRequests)
-
-
Method Detail
-
doSMB2Handle
protected void doSMB2Handle(SMB2PacketData packetData) throws TransportException
- Specified by:
doSMB2Handle
in classSMB2PacketHandler
- Throws:
TransportException
-
-