Package org.eso.ias.command
Class ReplyJsonSerializer
java.lang.Object
org.eso.ias.command.ReplyJsonSerializer
- All Implemented Interfaces:
ReplyStringSerializer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioniasReplyToString(ReplyMessage reply) Convert the passedReplyMessageto a StringReturn the command by parsing the passed string
-
Constructor Details
-
ReplyJsonSerializer
public ReplyJsonSerializer()
-
-
Method Details
-
iasReplyToString
Description copied from interface:ReplyStringSerializerConvert the passedReplyMessageto a String- Specified by:
iasReplyToStringin 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:ReplyStringSerializerReturn the command by parsing the passed string- Specified by:
valueOfin interfaceReplyStringSerializer- Parameters:
str- The string describing theReplyMessage- Returns:
- the reply obtained unmasrhalling the passed string
- Throws:
StringSerializerException- In case of error converting the string
-