Interface JSONListener


public interface JSONListener
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    If listener isDone, then caller should exit
    boolean
    implementation should advertise if it prefers JSON or String.
    void
    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 Details

    • 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(jodd.json.JsonObject obj) throws MessageParseException
      Throws:
      MessageParseException
    • readObject

      void readObject(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