Interface ResponseHandler

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean ownsTag​(java.lang.String msgTag)
      Indicates whether this handler will process the response with a given message tag.
      void receiveResponse​(HubConnection connection, java.lang.String responderId, java.lang.String msgTag, Response response)
      Processes a response to an earlier message.
    • Method Detail

      • ownsTag

        boolean ownsTag​(java.lang.String msgTag)
        Indicates whether this handler will process the response with a given message tag.
        Parameters:
        msgTag - tag with which earlier call was labelled
        Returns:
        true iff this handler wants to process the response labelled with msgTag
      • receiveResponse

        void receiveResponse​(HubConnection connection,
                             java.lang.String responderId,
                             java.lang.String msgTag,
                             Response response)
                      throws java.lang.Exception
        Processes a response to an earlier message. Will only be called for msgTag values which return true from ownsTag(java.lang.String).
        Parameters:
        connection - hub connection
        responderId - client id of client sending response
        msgTag - message tag from previous call
        response - response object
        Throws:
        java.lang.Exception