Interface JSONListener


  • public interface JSONListener
    • Method Summary

      Modifier and Type Method Description
      boolean isDone()
      If listener isDone, then caller should exit
      boolean preferJSON()
      implementation should advertise if it prefers JSON or String.
      void readObject​(java.lang.String obj)
      API method to allow implementation to read string, e.g., TW4J factory uses strictly String args in a JSON context.
      void readObject​(jodd.json.JsonObject obj)  
    • Method Detail

      • isDone

        boolean isDone()
        If listener isDone, then caller should exit
      • preferJSON

        boolean preferJSON()
        implementation should advertise if it prefers JSON or String.
        Returns:
      • readObject

        void readObject​(java.lang.String obj)
                 throws MessageParseException
        API method to allow implementation to read string, e.g., TW4J factory uses strictly String args in a JSON context.
        Parameters:
        obj -
        Throws:
        MessageParseException