Package net.solarnetwork.ocpp.util
Interface OcppInstructionUtils.JsonOcppInstructionMessageHandler<T>
- Type Parameters:
T- the return type
- Enclosing class:
- OcppInstructionUtils
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface
public static interface OcppInstructionUtils.JsonOcppInstructionMessageHandler<T>
API for handling the results of decoding a JSON OCPP instruction.
-
Method Summary
Modifier and TypeMethodDescriptionhandleMessage(Exception e, com.fasterxml.jackson.databind.node.ObjectNode jsonPayload, Object payload) Handle the results of decoding a JSON OCPP instruction message.
-
Method Details
-
handleMessage
T handleMessage(Exception e, com.fasterxml.jackson.databind.node.ObjectNode jsonPayload, Object payload) Handle the results of decoding a JSON OCPP instruction message.- Parameters:
e- if any error occursjsonPayload- the raw JSON message, or null if an error occurredpayload- the decoded OCPP message payload, or null if an error occurred- Returns:
- the result
-