public class DefaultSocketRpcClient extends AbstractSocketRpcClient
| 限定符和类型 | 字段和说明 |
|---|---|
protected ISocketRpcFileUploader |
uploader |
socketDEFAULT_MSG_404, DEFAULT_MSG_500, MAGIC, TYPE_END, TYPE_FILE_DATA, TYPE_FILE_NAME, TYPE_FILE_SIZE, TYPE_JSON, TYPE_LOCALE, TYPE_PARAM_NAME, TYPE_PARAM_VALUE, TYPE_PATH| 构造器和说明 |
|---|
DefaultSocketRpcClient() |
| 限定符和类型 | 方法和说明 |
|---|---|
IRpcResponse |
call(String host,
int port,
String path,
Map<String,String> args,
File... file)
调用
|
protected IRpcResponse |
parseResponse(DataInputStream in) |
getSocket, setSocket, supportcallclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcallprotected ISocketRpcFileUploader uploader
protected IRpcResponse parseResponse(DataInputStream in) throws IOException
IOExceptionpublic IRpcResponse call(String host, int port, String path, Map<String,String> args, File... file)
IRpcClienthost - 主机地址port - 主机端口path - 请求路径,以/开头args - 请求参数file - 上传文件Copyright © 2020. All Rights Reserved.