Package io.guise.framework.platform.web
Class WebCommandMessage<C extends Enum<C> & WebPlatformCommand>
java.lang.Object
io.guise.framework.platform.AbstractPlatformMessage
io.guise.framework.platform.web.AbstractWebMessage
io.guise.framework.platform.web.WebCommandMessage<C>
- Type Parameters:
C
- The type of command.
- All Implemented Interfaces:
PlatformCommandMessage<C>
,PlatformMessage
,WebPlatformCommandMessage<C>
,WebPlatformMessage
public class WebCommandMessage<C extends Enum<C> & WebPlatformCommand>
extends AbstractWebMessage
implements WebPlatformCommandMessage<C>
A command message to or from the web platform.
- Author:
- Garret Wilson
-
Constructor Summary
ConstructorDescriptionWebCommandMessage
(C command, com.globalmentor.model.NameValuePair<String, Object>... parameters) Command and parameters constructor.WebCommandMessage
(C command, Map<String, Object> parameters) Command and parameters map constructor. -
Method Summary
-
Constructor Details
-
WebCommandMessage
public WebCommandMessage(C command, com.globalmentor.model.NameValuePair<String, Object>... parameters) Command and parameters constructor.- Parameters:
command
- The command.parameters
- The parameters of the command; parameters with duplicate names replace earlier parameters of the same name.- Throws:
NullPointerException
- if the given command and/or parameters isnull
.
-
WebCommandMessage
Command and parameters map constructor.- Parameters:
command
- The command.parameters
- The map representing the parameters of the command.- Throws:
NullPointerException
- if the given command and/or parameters isnull
.
-
-
Method Details
-
getCommand
- Specified by:
getCommand
in interfacePlatformCommandMessage<C extends Enum<C> & WebPlatformCommand>
- Returns:
- The command.
-
getParameters
- Specified by:
getParameters
in interfaceWebPlatformCommandMessage<C extends Enum<C> & WebPlatformCommand>
- Returns:
- The read-only map of parameters.
-