public class SpringHttpReplyMessage<R> extends ReplyMessage implements Serializable
commandIdentifier, resultRevision, resultType, serializedResult, success
Constructor and Description |
---|
SpringHttpReplyMessage(String commandIdentifier,
boolean success,
Object returnValue,
Serializer serializer)
Initializes a SpringHttpReplyMessage containing a reply to the command with given {commandIdentifier} and given
returnValue . |
Modifier and Type | Method and Description |
---|---|
R |
getReturnValue(Serializer serializer)
Returns the returnValue of the command processing.
|
equals, getCommandIdentifier, getError, getResultRevision, getResultType, getSerializedResult, hashCode, isSuccess, toString
public SpringHttpReplyMessage(String commandIdentifier, boolean success, Object returnValue, Serializer serializer)
returnValue
. The parameter success
determines whether the was executed successfully or not.commandIdentifier
- The identifier of the command to which the message is a replysuccess
- Whether or not the command executed successfully or notreturnValue
- The return value of command process
the given returnValue
is ignored.serializer
- The serializer to serialize the message contents withpublic R getReturnValue(Serializer serializer)
ReplyMessage
ReplyMessage.isSuccess()
return false
, this
method returns null
. This method also returns null
if response processing returned
a null
value.getReturnValue
in class ReplyMessage
serializer
- The serializer to deserialize the result withCopyright © 2010–2018. All rights reserved.