Package io.guise.framework.platform.web
Class WebCommandMessage<C extends java.lang.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 java.lang.Enum<C> & WebPlatformCommand> extends AbstractWebMessage implements WebPlatformCommandMessage<C>
A command message to or from the web platform.- Author:
- Garret Wilson
-
-
Constructor Summary
Constructors Constructor Description WebCommandMessage(C command, com.globalmentor.model.NameValuePair<java.lang.String,java.lang.Object>... parameters)
Command and parameters constructor.WebCommandMessage(C command, java.util.Map<java.lang.String,java.lang.Object> parameters)
Command and parameters map constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description C
getCommand()
java.util.Map<java.lang.String,java.lang.Object>
getParameters()
-
-
-
Constructor Detail
-
WebCommandMessage
public WebCommandMessage(C command, com.globalmentor.model.NameValuePair<java.lang.String,java.lang.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:
java.lang.NullPointerException
- if the given command and/or parameters isnull
.
-
WebCommandMessage
public WebCommandMessage(C command, java.util.Map<java.lang.String,java.lang.Object> parameters)
Command and parameters map constructor.- Parameters:
command
- The command.parameters
- The map representing the parameters of the command.- Throws:
java.lang.NullPointerException
- if the given command and/or parameters isnull
.
-
-
Method Detail
-
getCommand
public C getCommand()
- Specified by:
getCommand
in interfacePlatformCommandMessage<C extends java.lang.Enum<C> & WebPlatformCommand>
- Returns:
- The command.
-
getParameters
public java.util.Map<java.lang.String,java.lang.Object> getParameters()
- Specified by:
getParameters
in interfaceWebPlatformCommandMessage<C extends java.lang.Enum<C> & WebPlatformCommand>
- Returns:
- The read-only map of parameters.
-
-