Rap1.3
This article mainly describes how to use entrypoint and Servlet in rap.
- Entrypoint: the entry to the rap application. The extension point is org. Eclipse. Rap. UI. entrypoint.
One rap plug-in can have multiple entrypoints,
Select an extension point as follows:
- Servlet is also required to start entrypoint. You can use org. Eclipse. Rap. UI. branding to set the default entrypoint, for example:
The settings are as follows:
- Start rap. If it is a direct launch application in eclipse, the URL in IE should be: http: // [host]: [port]/[servlet]? Startup = [entrypoint]. For the above instances, the address is http: // locahost: 10086/test? Startup = entrypoint1 where the port number can be preset. It should be noted that the default entrypoint has been set for servlet for test. Therefore, if the rap application has been started, enter http: // locahost: 10086/test: You can also jump to the entrypoint1 application based on the defaultentrypointid settings (as shown in.
In other cases, you can create multiple branding and multiple entrypoints.
- Sometimes setting the default entrypoint cannot meet the flexibility in the IE Address Bar. In this case, address redirection may be required. Therefore, the RAP also provides the corresponding extension point of the redirection path: Org. eclipse. equinox. HTTP. registry. servlets,
The detailed settings are as follows:
Here, alias is the substitution character of [servlet] In the IE address bar, that is, sevlet can be escaped as "/". The real implementation jump must be implemented in the code.
Enter
Http: // localhost: 10086/path
==> Redirect to ==>
Http: // localhost: 10086/test? Startup = entrypoint2
If alias is set to "/Files", enter
Http: // localhost: 10086/files/path
= Redirect to =>
Http: // localhost: 10086/files/test? Starup = entrypoint2
Finally, entrypoint, branding and servlet can be used together to implement different requirements for IE addresses in Multi-entrypoint applications.
For reference only!