/** * Creates a new ConversationMessage with the specified command type and * reference message. * * @param commandType * The command type for this message. Command is an optional * extension for creating services that can respond to different * specific commands. Must not be null. * @param inReplyTo * the incoming message. Must not be null. */ public static ConversationMessage create(Enum<?> commandType, Message inReplyTo) { ConversationMessage message = new ConversationMessage(inReplyTo); message.command(commandType.name()); return message; }
/** * Creates a new ConversationMessage with the specified command type and * reference message. * * @param commandType * The command type for this message. Command is an optional * extension for creating services that can respond to different * specific commands. Must not be null. * @param inReplyTo * the incoming message. Must not be null. */ public static ConversationMessage create(String commandType, Message inReplyTo) { ConversationMessage message = new ConversationMessage(inReplyTo); message.command(commandType); return message; }
/** * Creates a new ConversationMessage with the specified command type and * reference message. * * @param commandType * The command type for this message. Command is an optional * extension for creating services that can respond to different * specific commands. Must not be null. * @param inReplyTo * the incoming message. Must not be null. */ public static ConversationMessage create(String commandType, Message inReplyTo) { ConversationMessage message = new ConversationMessage(inReplyTo); message.command(commandType); return message; }
/** * Creates a new ConversationMessage with the specified command type and * reference message. * * @param commandType * The command type for this message. Command is an optional * extension for creating services that can respond to different * specific commands. Must not be null. * @param inReplyTo * the incoming message. Must not be null. */ public static ConversationMessage create(Enum<?> commandType, Message inReplyTo) { ConversationMessage message = new ConversationMessage(inReplyTo); message.command(commandType.name()); return message; }