Jump to: navigation, search

Difference between revisions of "RAP/WebClient"

< RAP
Line 5: Line 5:
 
= Server API  =
 
= Server API  =
  
The web client is represented on the server by the class <code>org.eclipse.rap.rwt.client.WebClient</code>, which can be obtained via <code>org.eclipse.rap.rwt.RWT#getClient()</code>. Besides the methods specified by the <code>org.eclipse.rap.rwt.client.Client</code> interface, it also provides a number of constants that may be used in the configuration map of an [http://eclipse.org/rap/developers-guide/devguide.php?topic=advanced/application-configuration.html application entrypoint].
+
The web client is represented on the server by the class <code>org.eclipse.rap.rwt.client.WebClient</code>. (Since RAP 2.0.) An instance can be obtained via <code>org.eclipse.rap.rwt.RWT#getClient()</code>. Besides the methods specified by the <code>org.eclipse.rap.rwt.client.Client</code> interface, it also provides a number of constants that may be used in the configuration map of an [http://eclipse.org/rap/developers-guide/devguide.php?topic=advanced/application-configuration.html application entrypoint].  
 +
 
 +
The <code>WebClient#getService()</code> method can be used to obtain the follwing supported services:
 +
 
 +
*<code>org.eclipse.rap.rwt.client.service.JavaScriptExecuter</code>
 +
*<code>org.eclipse.rap.rwt.client.service.BrowserHistory</code>
 +
 
 +
Diferent clients may support different services. If you target multiple clients, check for null before using a service.
 +
 
 +
<br>
  
 
= Client API =
 
= Client API =

Revision as of 06:48, 24 October 2012

General Information

The web client is the default client delivered by the RAP server if an application URL is entered into a web browser.

Server API

The web client is represented on the server by the class org.eclipse.rap.rwt.client.WebClient. (Since RAP 2.0.) An instance can be obtained via org.eclipse.rap.rwt.RWT#getClient(). Besides the methods specified by the org.eclipse.rap.rwt.client.Client interface, it also provides a number of constants that may be used in the configuration map of an application entrypoint.

The WebClient#getService() method can be used to obtain the follwing supported services:

  • org.eclipse.rap.rwt.client.service.JavaScriptExecuter
  • org.eclipse.rap.rwt.client.service.BrowserHistory

Diferent clients may support different services. If you target multiple clients, check for null before using a service.


Client API