Difference between revisions of "ECF/REST abstraction"

From Eclipsepedia

< ECF
Jump to: navigation, search
(OSGi Services to expose REST Clients)
(Test/Example code)
 
(2 intermediate revisions by one user not shown)
Line 11: Line 11:
 
==Test/Example code==
 
==Test/Example code==
  
See the test cases in '''org.eclipse.ecf.tests.remoteservice.rest'''.  Particularly the test classes:  '''[http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.ecf/tests/bundles/org.eclipse.ecf.tests.remoteservice.rest/src/org/eclipse/ecf/tests/remoteservice/rest/RestRemoteServiceTest.java?root=RT_Project&view=log org.eclipse.ecf.tests.remoteservice.rest.RestRemoteServiceTest]''' and '''[http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.ecf/tests/bundles/org.eclipse.ecf.tests.remoteservice.rest/src/org/eclipse/ecf/tests/remoteservice/rest/twitter/TwitterRemoteServiceTest.java?root=RT_Project&view=log org.eclipse.ecf.tests.remoteservice.rest.twitter.TwitterRemoteServiceTest]'''.
+
See the test cases in '''org.eclipse.ecf.tests.remoteservice.rest'''.  Particularly the test classes:  '''[http://git.eclipse.org/c/ecf/org.eclipse.ecf.git/tree/tests/bundles/org.eclipse.ecf.tests.remoteservice.rest/src/org/eclipse/ecf/tests/remoteservice/rest/RestRemoteServiceTest.java org.eclipse.ecf.tests.remoteservice.rest.RestRemoteServiceTest]''' and '''[http://git.eclipse.org/c/ecf/org.eclipse.ecf.git/tree/tests/bundles/org.eclipse.ecf.tests.remoteservice.rest/src/org/eclipse/ecf/tests/remoteservice/rest/twitter/TwitterRemoteServiceTest.java org.eclipse.ecf.tests.remoteservice.rest.twitter.TwitterRemoteServiceTest]'''.
 +
 
 +
There are a number of other, more complete and extensive examples available on [https://github.com/ECF/ECF-Examples ECF's Examples github site].
  
 
=== Javadocs ===  
 
=== Javadocs ===  
  
Documentation is available in [http://download.eclipse.org/rt/ecf/3.5Test/javadoc pse.ecf Javadoc API].  The REST client API is in these packages:
+
Documentation is available in [http://download.eclipse.org/rt/ecf/3.5Test/javadoc Javadoc API].  The REST client API is in these packages:
  
 
* <tt>org.eclipse.ecf.remoteservice.rest</tt>
 
* <tt>org.eclipse.ecf.remoteservice.rest</tt>

Latest revision as of 14:37, 14 March 2011

[edit] OSGi Remote Services to expose REST Clients

ECF's focus has been the support of OSGi remote services...i.e. exposing OSGi services remotely, via proxies that have underneath them some protocol for communicating with the actual remote service.

REST-based services use http to access remote resources via http get, put, post, and delete actions.

The ECF REST abstraction allows REST-based services to be exposed to clients/consumers as OSGi services. This allows the automatic use of a number of useful technologies based upon OSGi services (e.g. declarative services, spring, ServiceTracker, etc) for accessing REST-based services.

UNDER CONSTRUCTION

[edit] Test/Example code

See the test cases in org.eclipse.ecf.tests.remoteservice.rest. Particularly the test classes: org.eclipse.ecf.tests.remoteservice.rest.RestRemoteServiceTest and org.eclipse.ecf.tests.remoteservice.rest.twitter.TwitterRemoteServiceTest.

There are a number of other, more complete and extensive examples available on ECF's Examples github site.

[edit] Javadocs

Documentation is available in Javadoc API. The REST client API is in these packages:

  • org.eclipse.ecf.remoteservice.rest
  • org.eclipse.ecf.remoteservice.rest.client
  • org.eclipse.ecf.remoteservice.rest.identity
  • org.eclipse.ecf.remoteservice.rest.util