MethodParser 类

定义

Representation of a single Direct Method Access collection with a Json serializer and deserializer.

public class MethodParser
继承
java.lang.Object
MethodParser

构造函数

MethodParser()

CONSTRUCTOR Create a MethodParser instance with provided values.

MethodParser(Object payload)

CONSTRUCTOR Create a MethodParser instance with provided values.

MethodParser(String name, Long responseTimeout, Long connectTimeout, Object payload)

CONSTRUCTOR Create a MethodParser instance with provided values.

方法

fromJson(String json)

Set the Method collection with the provided information in the json.

getPayload()

Return an Object with the payload.

getStatus()

Return an Integer with the response status.

toJson()

Create a String with a json content that represents all the information in the method collection.

toJsonElement()

Create a JsonElement with a content that represents all the information in the method collection.

适用于