Package net.solarnetwork.ocpp.domain
Class BasicActionMessage<T>
java.lang.Object
net.solarnetwork.ocpp.domain.BasicActionMessage<T>
- All Implemented Interfaces:
ActionMessage<T>
Basic implementation of
ActionMessage.- Version:
- 1.1
- Author:
- matt
-
Constructor Summary
ConstructorsConstructorDescriptionBasicActionMessage(ChargePointIdentity clientId, String messageId, ocpp.domain.Action action, T message) Constructor.BasicActionMessage(ChargePointIdentity clientId, ocpp.domain.Action action, T message) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionocpp.domain.ActionGet the action (verb) to perform.Get the ID of the client that initiated the action.Get the message (content).Get the ID of this message.toString()
-
Constructor Details
-
BasicActionMessage
Constructor.A new unique random UUID will be used for the message ID value.
- Parameters:
clientId- the client IDaction- the actionmessage- the message
-
BasicActionMessage
public BasicActionMessage(ChargePointIdentity clientId, String messageId, ocpp.domain.Action action, T message) Constructor.- Parameters:
clientId- the client IDmessageId- the message IDaction- the actionmessage- the message
-
-
Method Details
-
toString
-
getClientId
Description copied from interface:ActionMessageGet the ID of the client that initiated the action.- Specified by:
getClientIdin interfaceActionMessage<T>- Returns:
- the client ID
-
getMessageId
Description copied from interface:ActionMessageGet the ID of this message.- Specified by:
getMessageIdin interfaceActionMessage<T>- Returns:
- the message ID
-
getAction
public ocpp.domain.Action getAction()Description copied from interface:ActionMessageGet the action (verb) to perform.- Specified by:
getActionin interfaceActionMessage<T>- Returns:
- the action; never null
-
getMessage
Description copied from interface:ActionMessageGet the message (content).- Specified by:
getMessagein interfaceActionMessage<T>- Returns:
- the message, or null
-