public class JsonRPC extends Object
@At@Ok("json")public NutMap jsonrpc(Reader r){return JsonRPC.invoke(this);}
限定符和类型 | 字段和说明 |
---|---|
static int |
InternalError |
static int |
InvalidParams |
static int |
InvalidRequest |
static int |
MethodNotFound |
static int |
ParseError |
static int |
ServerError |
static String |
Version |
构造器和说明 |
---|
JsonRPC() |
限定符和类型 | 方法和说明 |
---|---|
protected static String |
E(Throwable e) |
protected static NutMap |
error(int code,
String message,
Object data) |
static NutMap |
invoke(Object obj,
NutMap req) |
static NutMap |
invoke(Object obj,
Reader r)
服务端
|
static <T> T |
mapper(Class<T> klass,
String endpoint,
String namespace,
int timeout)
客户端.
|
public static final int ParseError
public static final int InvalidRequest
public static final int MethodNotFound
public static final int InvalidParams
public static final int InternalError
public static final int ServerError
Copyright © 2017. All rights reserved.