Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

RAP/WebClient

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

Back to the top