public interface IRpcClient extends ISocketRpcExchange
DEFAULT_MSG_404, DEFAULT_MSG_500, MAGIC, TYPE_BODY, TYPE_END, TYPE_FILE_DATA, TYPE_FILE_NAME, TYPE_FILE_SIZE, TYPE_JSON, TYPE_LOCALE, TYPE_PARAM_NAME, TYPE_PARAM_VALUE, TYPE_PATH| 限定符和类型 | 方法和说明 |
|---|---|
IRpcResponse |
call(String host,
int port,
String path)
调用
|
IRpcResponse |
call(String host,
int port,
String path,
Map<String,String> args)
调用
|
IRpcResponse |
call(String host,
int port,
String path,
Map<String,String> args,
String body,
File... file)
调用
|
IRpcResponse |
call(String host,
int port,
String path,
String body)
调用
|
boolean |
support(String type)
是否支持
|
boolean support(String type)
type - 类型IRpcResponse call(String host, int port, String path, Map<String,String> args, String body, File... file)
host - 主机地址port - 主机端口path - 请求路径,以/开头args - 请求参数body - 数据体file - 上传文件IRpcResponse call(String host, int port, String path, Map<String,String> args)
host - 主机地址port - 主机端口path - 请求路径,以/开头args - 请求参数IRpcResponse call(String host, int port, String path, String body)
host - 主机地址port - 主机端口path - 请求路径,以/开头body - 数据体IRpcResponse call(String host, int port, String path)
host - 主机地址port - 主机端口path - 请求路径,以/开头Copyright © 2020. All Rights Reserved.