Package org.hcjf.io.net.messages
Class ResponseMessage
- java.lang.Object
-
- org.hcjf.io.net.messages.Message
-
- org.hcjf.io.net.messages.ResponseMessage
-
- All Implemented Interfaces:
BsonParcelable
- Direct Known Subclasses:
ServiceDefinitionResponseMessage
public class ResponseMessage extends Message
This kind of messges are to send a response for a particular message.- Author:
- javaito
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.hcjf.utils.bson.BsonParcelable
BsonParcelable.Builder
-
-
Field Summary
-
Fields inherited from interface org.hcjf.utils.bson.BsonParcelable
MAP_KEYS_FIELD_NAME, MAP_VALUES_FIELD_NAME, PARCELABLE_CLASS_NAME
-
-
Constructor Summary
Constructors Constructor Description ResponseMessage()ResponseMessage(Message message)
-
Method Summary
Modifier and Type Method Description java.lang.ThrowablegetThrowable()Returns the throwable value.java.lang.ObjectgetValue()Returns the response value.voidsetThrowable(java.lang.Throwable throwable)Set the throwable value.voidsetValue(java.lang.Object value)Set the response value.-
Methods inherited from class org.hcjf.io.net.messages.Message
getId, getSessionBean, getSessionId, getTimestamp, setId, setSessionBean, setSessionId, setTimestamp
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hcjf.utils.bson.BsonParcelable
fromBson, fromBson, fromBson, populate, toBson, toBson, toBson, toBson, typeFromBson
-
-
-
-
Constructor Detail
-
ResponseMessage
public ResponseMessage()
-
ResponseMessage
public ResponseMessage(Message message)
-
-
Method Detail
-
getValue
public java.lang.Object getValue()
Returns the response value.- Returns:
- Response value.
-
setValue
public void setValue(java.lang.Object value)
Set the response value.- Parameters:
value- Response value.
-
getThrowable
public java.lang.Throwable getThrowable()
Returns the throwable value.- Returns:
- Throwable value.
-
setThrowable
public void setThrowable(java.lang.Throwable throwable)
Set the throwable value.- Parameters:
throwable- Throwable value.
-
-