类 HttpJsonRpcRemote

java.lang.Object
net.apexes.wsonrpc.client.HttpJsonRpcRemote
所有已实现的接口:
net.apexes.wsonrpc.core.Remote

public class HttpJsonRpcRemote extends Object implements net.apexes.wsonrpc.core.Remote
作者:
HeDYn
  • 字段详细资料

    • url

      protected final URL url
    • headers

      protected final Map<String,String> headers
    • jsonRpcEngine

      protected final net.apexes.wsonrpc.core.JsonRpcEngine jsonRpcEngine
    • rand

      protected final Random rand
  • 构造器详细资料

    • HttpJsonRpcRemote

      public HttpJsonRpcRemote(URL url, net.apexes.wsonrpc.json.JsonImplementor jsonImpl)
      参数:
      url -
      jsonImpl -
  • 方法详细资料

    • setHeader

      protected final void setHeader(String key, String value)
      参数:
      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.exception.WsonrpcException
      指定者:
      notify 在接口中 net.apexes.wsonrpc.core.Remote
      抛出:
      IOException
      net.apexes.wsonrpc.core.exception.WsonrpcException
    • request

      public <T> T request(String serviceName, String methodName, Object[] args, Class<T> returnType, int timeout) throws IOException, net.apexes.wsonrpc.core.exception.WsonrpcException, net.apexes.wsonrpc.core.exception.RemoteException
      指定者:
      request 在接口中 net.apexes.wsonrpc.core.Remote
      抛出:
      IOException
      net.apexes.wsonrpc.core.exception.WsonrpcException
      net.apexes.wsonrpc.core.exception.RemoteException