Package org.eclipse.ecf.remoteservice.rest.client

Examples of org.eclipse.ecf.remoteservice.rest.client.HttpGetRequestType


    super.connect(targetID, connectContext1);
    // Create the IRemoteCallable to represent
    // access to the ITimeService method. 
    IRemoteCallable callable = RestCallableFactory.createCallable(
        "getCurrentTime", ITimeService.class.getName(), null,
        new HttpGetRequestType(), 30000);
    // Register the callable and associate it with the ITimeService class
    // name
    reg = registerCallables(new String[] { ITimeService.class.getName() },
        new IRemoteCallable[][] { { callable } }, null);
  }
View Full Code Here


  public void testRegisterRestService() throws Exception {
    IContainer container = createRestContainer(RestConstants.TEST_DE_TARGET);
    Dictionary properties = new Hashtable();
    properties.put("user", "null");
    IRemoteCallable callable = RestCallableFactory.createCallable("methodName","resourcePath",null,new HttpGetRequestType());
    IRemoteServiceRegistration registration = registerCallable(container, callable, properties);
    assertNotNull(registration);
  }
View Full Code Here

    }

    private IRemoteServiceRegistration registerCall()
    {
        IRemoteCallable callable = RestCallableFactory.createCallable(RSS_PATH, RSS_PATH, null,
                new HttpGetRequestType());

        registration = registerCallable(callable, null);

        return registration;
    }
View Full Code Here

  public static IRemoteCallable createCallable(String method, String resourcePath, IRemoteCallParameter[] defaultParameters, AbstractRequestType requestType) {
    return createCallable(method, resourcePath, defaultParameters, requestType, IRestCall.DEFAULT_TIMEOUT);
  }

  public static IRemoteCallable createCallable(String method, String resourcePath, IRemoteCallParameter[] defaultParameters) {
    return createCallable(method, resourcePath, defaultParameters, new HttpGetRequestType(), IRestCall.DEFAULT_TIMEOUT);
  }
View Full Code Here

  public static IRemoteCallable createCallable(String method, String resourcePath, IRemoteCallParameter[] defaultParameters) {
    return createCallable(method, resourcePath, defaultParameters, new HttpGetRequestType(), IRestCall.DEFAULT_TIMEOUT);
  }

  public static IRemoteCallable createCallable(String method, String resourcePath) {
    return createCallable(method, resourcePath, null, new HttpGetRequestType(), IRestCall.DEFAULT_TIMEOUT);
  }
View Full Code Here

  public static IRemoteCallable createCallable(String method, String resourcePath) {
    return createCallable(method, resourcePath, null, new HttpGetRequestType(), IRestCall.DEFAULT_TIMEOUT);
  }

  public static IRemoteCallable createCallable(String method) {
    return createCallable(method, method, null, new HttpGetRequestType(), IRestCall.DEFAULT_TIMEOUT);
  }
View Full Code Here

TOP

Related Classes of org.eclipse.ecf.remoteservice.rest.client.HttpGetRequestType

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.