Class 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 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • result

        protected java.lang.Object result
        The result.
      • exception

        protected java.lang.Exception exception
        The exception.
      • finished

        protected boolean finished
        The finished flag. (False in case of intermediate results)
    • 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