Class SMB2ProcessResponsePacketHandler
- All Implemented Interfaces:
IncomingPacketHandler
If 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
FieldsModifier and TypeFieldDescriptionprivate static final org.slf4j.Logger
private final OutstandingRequests
private final SMB2MessageConverter
Fields inherited from class com.hierynomus.smbj.connection.packet.AbstractIncomingPacketHandler
next
-
Constructor Summary
ConstructorsConstructorDescriptionSMB2ProcessResponsePacketHandler
(SMB2MessageConverter smb2Converter, OutstandingRequests outstandingRequests) -
Method Summary
Methods inherited from class com.hierynomus.smbj.connection.packet.SMB2PacketHandler
canHandle, doHandle
Methods inherited from class com.hierynomus.smbj.connection.packet.AbstractIncomingPacketHandler
handle, setNext
-
Field Details
-
logger
private static final org.slf4j.Logger logger -
smb2Converter
-
outstandingRequests
-
-
Constructor Details
-
SMB2ProcessResponsePacketHandler
public SMB2ProcessResponsePacketHandler(SMB2MessageConverter smb2Converter, OutstandingRequests outstandingRequests)
-
-
Method Details
-
doSMB2Handle
- Specified by:
doSMB2Handle
in classSMB2PacketHandler
- Throws:
TransportException
-