Package org.eclipse.ecf.remoteservice.client

Examples of org.eclipse.ecf.remoteservice.client.RemoteCallParameter


  }

  public void testSyncCallWithCountParameter() {
    IRemoteService restClientService = getRemoteServiceClientContainerAdapter(container).getRemoteService(registration.getReference());
    try {
      Object result = restClientService.callSync(RestCallFactory.createRestCall(IUserTimeline.class.getName() + ".getUserStatuses", new IRemoteCallParameter[] { new RemoteCallParameter("count", "1") }));
      assertNotNull(result);
      assertTrue(result instanceof IUserStatus[]);
      assertTrue(((IUserStatus[]) result).length == 1);
    } catch (ECFException e) {
      fail("Could not contact the service");
View Full Code Here


        return null;
      }});

    // Create callable and register
    IRemoteCallable callable = RestCallableFactory.createCallable(method,resourcePath,
        new IRemoteCallParameter[] { new RemoteCallParameter("body")} ,
        new HttpPutRequestType(HttpPutRequestType.STRING_REQUEST_ENTITY,"application/xml",-1,"UTF-8"));
    // register callable
    registration = adapter.registerCallables(new IRemoteCallable[] { callable } , null);
   
  }
View Full Code Here

 
  protected void setUp() throws Exception {
    container = createRpcContainer(RpcConstants.TEST_ECHO_TARGET);
   
    IRemoteCallable callableEcho = RemoteCallableFactory.createCallable(RpcConstants.TEST_ECHO_METHOD_NAME, RpcConstants.TEST_ECHO_METHOD,
        new IRemoteCallParameter[]{new RemoteCallParameter(RpcConstants.TEST_ECHO_METHOD_PARAM)});
    registrationEcho = registerCallable(container, callableEcho, null);
   
    IRemoteCallable callableEchoProxy = RemoteCallableFactory.createCallable(IEcho.class.getName());
    registrationEchoProxy = registerCallable(container, callableEchoProxy, null);
   
    IRemoteCallable callableCalc = RemoteCallableFactory.createCallable(RpcConstants.TEST_CALC_PLUS_METHOD_NAME, RpcConstants.TEST_CALC_PLUS_METHOD,
        new IRemoteCallParameter[]{
          new RemoteCallParameter(RpcConstants.TEST_CALC_PLUS_METHOD_PARAM1),
          new RemoteCallParameter(RpcConstants.TEST_CALC_PLUS_METHOD_PARAM2)});
    registrationCalc = registerCallable(container, callableCalc, null);
  }
View Full Code Here

TOP

Related Classes of org.eclipse.ecf.remoteservice.client.RemoteCallParameter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.