Class WebCommandMessage<C extends Enum<C> & WebPlatformCommand>

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 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 is null.
    • WebCommandMessage

      public WebCommandMessage(C command, Map<String,Object> parameters)
      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 is null.
  • Method Details