Class ResultMessage
- java.lang.Object
-
- org.activecomponents.webservice.messages.BaseMessage
-
- org.activecomponents.webservice.messages.ResultMessage
-
public class ResultMessage extends BaseMessage
A message for a service call result.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.Exception
exception
The exception.protected boolean
finished
The finished flag.protected java.lang.Object
result
The result.-
Fields inherited from class org.activecomponents.webservice.messages.BaseMessage
callid
-
-
Constructor Summary
Constructors Constructor Description ResultMessage()
Create a new result message.ResultMessage(java.lang.Exception exception, java.lang.String callid)
Create a new result message.ResultMessage(java.lang.Object result, java.lang.String callid, boolean finished)
Create a new result message.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Exception
getException()
Get the exception.java.lang.Object
getResult()
Get the result.boolean
isFinished()
Get the finished.void
setException(java.lang.Exception exception)
Set the exception.void
setFinished(boolean finished)
Set the finished.void
setResult(java.lang.Object result)
Set the result.-
Methods inherited from class org.activecomponents.webservice.messages.BaseMessage
getCallid, setCallid
-
-
-
-
Constructor Detail
-
ResultMessage
public ResultMessage()
Create a new result message.
-
ResultMessage
public ResultMessage(java.lang.Object result, java.lang.String callid, boolean finished)
Create a new result message.
-
ResultMessage
public ResultMessage(java.lang.Exception exception, java.lang.String callid)
Create a new result message.
-
-
Method Detail
-
getResult
public java.lang.Object getResult()
Get the result.- Returns:
- Tthe result
-
setResult
public void setResult(java.lang.Object result)
Set the result.- Parameters:
result
- The result to set
-
getException
public java.lang.Exception getException()
Get the exception.- Returns:
- Tthe exception
-
setException
public void setException(java.lang.Exception exception)
Set the exception.- Parameters:
exception
- The exception to set
-
isFinished
public boolean isFinished()
Get the finished.- Returns:
- Tthe finished
-
setFinished
public void setFinished(boolean finished)
Set the finished.- Parameters:
finished
- The finished to set
-
-