MethodParser.fromJson(String json) 方法
定义
Set the Method collection with the provided information in the json.
public synchronized void fromJson(String json)
参数
- json
- String
- Json with the information to change the collection.
If contains `methodName`, it is a full method including `methodName`, `responseTimeoutInSeconds`, `connectTimeoutInSeconds`, and `payload`.
If contains `status`, it is a response with `status` and `payload`.
Otherwise, it is only `payload`.
返回
synchronized void
例外
IllegalArgumentException
This exception is thrown if the one of the provided information do not fits the requirements.