Ejemplo n.º 1
0
 /** {@inheritDoc} */
 @Override
 public <T> T execute(
     ConnectionCallback<T> action,
     RpcHost host,
     String division,
     String accessCode,
     String verifyCode)
     throws DataAccessException {
   return execute(
       action,
       new RpcRequest(
           host,
           RpcUriUtils.toCredentials(division, accessCode, verifyCode, null, null),
           null,
           null,
           (List) null));
 }
Ejemplo n.º 2
0
 protected RpcRequest createRpcRequest(
     RpcHost host,
     String division,
     String accessCode,
     String verifyCode,
     String rpcContext,
     String rpcName,
     List params) {
   RpcRequest request =
       new RpcRequest(
           host,
           RpcUriUtils.toCredentials(division, accessCode, verifyCode, null, null),
           rpcContext,
           rpcName,
           params);
   if (getTimeout() > 0) request.setTimeout(getTimeout());
   return request;
 }