Package org.eso.ias.command
Class CommandJsonSerializer
java.lang.Object
org.eso.ias.command.CommandJsonSerializer
- All Implemented Interfaces:
CommandStringSerializer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionConvert the passedCommandMessageto a StringReturn the command by parsing the passed string
-
Constructor Details
-
CommandJsonSerializer
public CommandJsonSerializer()
-
-
Method Details
-
iasCmdToString
Description copied from interface:CommandStringSerializerConvert the passedCommandMessageto a String- Specified by:
iasCmdToStringin interfaceCommandStringSerializer- Parameters:
cmd- The command to serialize- Returns:
- A string representation of the passed command
- Throws:
StringSerializerException- In case of error creating the string from the passed command
-
valueOf
Description copied from interface:CommandStringSerializerReturn the command by parsing the passed string- Specified by:
valueOfin interfaceCommandStringSerializer- Parameters:
str- The string describing theCommandMessage- Returns:
- the command obtained unmasrhalling the passed string
- Throws:
StringSerializerException- In case of error converting the string
-