Package org.eso.ias.command
Class ReplyJsonSerializer
java.lang.Object
org.eso.ias.command.ReplyJsonSerializer
- All Implemented Interfaces:
ReplyStringSerializer
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioniasReplyToString
(ReplyMessage reply) Convert the passedReplyMessage
to a StringReturn the command by parsing the passed string
-
Constructor Details
-
ReplyJsonSerializer
public ReplyJsonSerializer()
-
-
Method Details
-
iasReplyToString
Description copied from interface:ReplyStringSerializer
Convert the passedReplyMessage
to a String- Specified by:
iasReplyToString
in interfaceReplyStringSerializer
- Parameters:
reply
- The command to serialize- Returns:
- A string representation of the passed command
- Throws:
StringSerializerException
- In case of error creating the string from the passed reply
-
valueOf
Description copied from interface:ReplyStringSerializer
Return the command by parsing the passed string- Specified by:
valueOf
in interfaceReplyStringSerializer
- Parameters:
str
- The string describing theReplyMessage
- Returns:
- the reply obtained unmasrhalling the passed string
- Throws:
StringSerializerException
- In case of error converting the string
-