Class Action

    • Constructor Detail

      • Action

        public Action​(String type)
    • Method Detail

      • getId

        public String getId()
        An (optional) unique identifier that the client sends. This allows the client to disambiguate like-named calls and dispatch them however it pleases.

        This is passed back unaltered if present.
        Returns:
      • setId

        public void setId​(String id)
      • getState

        public String getState()
        An optional state string that the client sends.

        It is passed back unaltered.
        Returns:
      • setState

        public void setState​(String state)
      • getComment

        public String getComment()
        the client may send a comment. This is passed along, and while it might be recorded in the logs, is ignored. This is because JSON does not allow for comments, hence the client can have comments for its own purposes.
        Returns:
      • setComment

        public void setComment​(String comment)
      • serialize

        public net.sf.json.JSONObject serialize()
        Typically this is called by the Client during POST
        Returns:
      • deserialize

        public void deserialize​(net.sf.json.JSONObject json)