use of org.eclipse.ecf.remoteservice.rest.client.HttpGetRequestType in project ecf by eclipse.
the class RestContainerTest method testRegisterRestService.
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);
}
use of org.eclipse.ecf.remoteservice.rest.client.HttpGetRequestType in project ecf by eclipse.
the class TimeServiceRestClientContainer method connect.
@Override
public void connect(ID targetID, IConnectContext connectContext1) throws ContainerConnectException {
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);
}
use of org.eclipse.ecf.remoteservice.rest.client.HttpGetRequestType in project ecf by eclipse.
the class Activator method registerCall.
private IRemoteServiceRegistration registerCall() {
IRemoteCallable callable = RestCallableFactory.createCallable(RSS_PATH, RSS_PATH, null, new HttpGetRequestType());
registration = registerCallable(callable, null);
return registration;
}
Aggregations