Interface RSCPRequestResponseListener
-
- All Implemented Interfaces:
public interface RSCPRequestResponseListenerListener that can be registered to instances of type DefaultHomePowerPlantConnection to receive lifecycle events in the request/response process of a frame.
All functions are stored with empty default implementations, so that implementing classes only need to override the functions that are needed.
Call order in a normal request/response cycle:
Before encrypting the request frame
Before sending the encrypted frame
After sending the encrypted frame
After receiving the encrypted response from the home power plant.
After decrypting the answer from the home power plant
After parsing the decrypted response to a Frame.
- Since:
2.0
-
-
Method Summary
Modifier and Type Method Description UnitonBeforeRequestFrameEncryption(RSCPBeforeRequestEncryptionEvent event)Called before encrypting the request Frame UnitonBeforeRequestSend(RSCPBeforeRequestSendEvent event)Called before sending the encrypted binary data UnitonAfterRequestSend(RSCPAfterRequestSendEvent event)Called after sending the encrypted binary data UnitonAnswerReceived(RSCPAnswerReceivedEvent event)Called after receiving the encrypted response from the home power plant UnitonAnswerDecrypted(RSCPAnswerDecryptedEvent event)Called after the response from the home power plant has been decrypted UnitonAnswerParsed(RSCPAnswerParsedEvent event)Called after the response from the home power plant has been deserialized to a Frame. UnitonRSCPRequestResponseEvent(RSCPRequestResponseEvent event)Called for each RSCPRequestResponseEvent that occurs. -
-
Method Detail
-
onBeforeRequestFrameEncryption
Unit onBeforeRequestFrameEncryption(RSCPBeforeRequestEncryptionEvent event)
Called before encrypting the request Frame
- Parameters:
event- Event data- Since:
2.0
-
onBeforeRequestSend
Unit onBeforeRequestSend(RSCPBeforeRequestSendEvent event)
Called before sending the encrypted binary data
- Parameters:
event- Event data- Since:
2.0
-
onAfterRequestSend
Unit onAfterRequestSend(RSCPAfterRequestSendEvent event)
Called after sending the encrypted binary data
- Parameters:
event- Event data- Since:
2.0
-
onAnswerReceived
Unit onAnswerReceived(RSCPAnswerReceivedEvent event)
Called after receiving the encrypted response from the home power plant
- Parameters:
event- Event data- Since:
2.0
-
onAnswerDecrypted
Unit onAnswerDecrypted(RSCPAnswerDecryptedEvent event)
Called after the response from the home power plant has been decrypted
- Parameters:
event- Event data- Since:
2.0
-
onAnswerParsed
Unit onAnswerParsed(RSCPAnswerParsedEvent event)
Called after the response from the home power plant has been deserialized to a Frame.
- Parameters:
event- Event data- Since:
2.0
-
onRSCPRequestResponseEvent
Unit onRSCPRequestResponseEvent(RSCPRequestResponseEvent event)
Called for each RSCPRequestResponseEvent that occurs.
- Parameters:
event- Event data- Since:
2.0
-
-
-
-