类 HttpJsonRpcRemote
java.lang.Object
net.apexes.wsonrpc.client.HttpJsonRpcRemote
- 所有已实现的接口:
net.apexes.wsonrpc.core.Remote
- 作者:
- HeDYn
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明intbooleanvoid<T> TvoidsetAcceptCompress(boolean value) final voidsetConnectTimeout(int timeout) protected final void
-
字段详细资料
-
url
-
headers
-
jsonRpcEngine
protected final net.apexes.wsonrpc.core.JsonRpcEngine jsonRpcEngine -
rand
-
-
构造器详细资料
-
HttpJsonRpcRemote
- 参数:
url-jsonImpl-
-
-
方法详细资料
-
setHeader
- 参数:
key-value-
-
setConnectTimeout
public final void setConnectTimeout(int timeout) -
getConnectTimeout
public int getConnectTimeout() -
isAcceptCompress
public boolean isAcceptCompress() -
setAcceptCompress
public void setAcceptCompress(boolean value) -
notify
public void notify(String serviceName, String methodName, Object[] args) throws IOException, net.apexes.wsonrpc.core.WsonrpcException - 指定者:
notify在接口中net.apexes.wsonrpc.core.Remote- 抛出:
IOExceptionnet.apexes.wsonrpc.core.WsonrpcException
-
request
public <T> T request(String serviceName, String methodName, Object[] args, Class<T> returnType, int timeout) throws IOException, net.apexes.wsonrpc.core.WsonrpcException, net.apexes.wsonrpc.core.RemoteException - 指定者:
request在接口中net.apexes.wsonrpc.core.Remote- 抛出:
IOExceptionnet.apexes.wsonrpc.core.WsonrpcExceptionnet.apexes.wsonrpc.core.RemoteException
-