Package org.eso.ias.command
Class CommandJsonSerializer
java.lang.Object
org.eso.ias.command.CommandJsonSerializer
- All Implemented Interfaces:
CommandStringSerializer
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionConvert the passedCommandMessage
to a StringReturn the command by parsing the passed string
-
Constructor Details
-
CommandJsonSerializer
public CommandJsonSerializer()
-
-
Method Details
-
iasCmdToString
Description copied from interface:CommandStringSerializer
Convert the passedCommandMessage
to a String- Specified by:
iasCmdToString
in 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:CommandStringSerializer
Return the command by parsing the passed string- Specified by:
valueOf
in interfaceCommandStringSerializer
- Parameters:
str
- The string describing theCommandMessage
- Returns:
- the command obtained unmasrhalling the passed string
- Throws:
StringSerializerException
- In case of error converting the string
-