Class CallbackEvent


  • public final class CallbackEvent
    extends Object
    Class that represents an event for a callback that must be handled.
    • Constructor Detail

      • CallbackEvent

        public CallbackEvent​(String id,
                             CallbackEvent.EventType eventType,
                             Object response,
                             String newclassNameOfMethod,
                             String newOpSignature)
        Constructor.
        Parameters:
        id - id of the execution request related to the callback event.
        eventType - type of the event.
        response - result obtained from the execution request.
        newclassNameOfMethod - name of the class where the original method that produces the response resides.
        newOpSignature - signature of the operation that produced this result
      • CallbackEvent

        public CallbackEvent​(String id,
                             CallbackEvent.EventType eventType,
                             String newMessage)
        Constructor for results different than SUCCESS.
        Parameters:
        id - id of the execution request related to the callback event.
        eventType - type of the event.
        newMessage - message of failure
    • Method Detail

      • getRequestID

        public String getRequestID()
        Get the CallbackEvent::requestID
        Returns:
        the requestID
      • setRequestID

        public void setRequestID​(String newrequestID)
        Set the CallbackEvent::requestID
        Parameters:
        newrequestID - the requestID to set
      • setType

        public void setType​(CallbackEvent.EventType newtype)
        Set the CallbackEvent::type
        Parameters:
        newtype - the type to set
      • getContent

        public Object getContent()
        Get the CallbackEvent::content
        Returns:
        the content
      • setContent

        public void setContent​(Object newcontent)
        Set the CallbackEvent::content
        Parameters:
        newcontent - the content to set
      • getClassNameOfMethod

        public String getClassNameOfMethod()
        Get the CallbackEvent::classNameOfMethod
        Returns:
        the classNameOfMethod
      • setClassNameOfMethod

        public void setClassNameOfMethod​(String newclassNameOfMethod)
        Set the CallbackEvent::classNameOfMethod
        Parameters:
        newclassNameOfMethod - the classNameOfMethod to set
      • getMessage

        public String getMessage()
        Get the CallbackEvent::message
        Returns:
        the message
      • setMessage

        public void setMessage​(String newmessage)
        Set the CallbackEvent::message
        Parameters:
        newmessage - the message to set
      • getOperationSignature

        public String getOperationSignature()
        Get the CallbackEvent::operationSignature
        Returns:
        the operationSignature
      • setOperationSignature

        public void setOperationSignature​(String newoperationSignature)
        Set the CallbackEvent::operationSignature
        Parameters:
        newoperationSignature - the operationSignature to set