public class CommandWithJustType extends Object implements Command
CommandWithJustType class represents a command, which contains only the
type property, to be used to deserialize the command string coming as payload of
the REST request. It is then used to determine which real concrete Command implementation
to deserialize the command string to based on that deserialized type.| Constructor and Description |
|---|
CommandWithJustType() |
| Modifier and Type | Method and Description |
|---|---|
String |
getType()
Getter for string-based command type identifier.
|
public String getType()
Command
Warning! Command type identifier should not be settable outside of this class. It should
be read-only, i.e., immutable. It's recommended that its internal declaration be marked
final.
Copyright © 2018. All rights reserved.