<此文章仅用于技术交流,不做任何商业用途,任何转载请注明来源!>
RAP Servlet & EntryPoint & Branding
Overview an example flow chart
The screenshot below comments about servlet and entry point for MSDK RAP application with graph.Users access the RAP MSDK APP with URI,which responses the request by different parameters in URI.The new URI will be requested again.
Be used to redirect with Servlet(Extension:org.eclipse.equinox.http.registry.servlets)
The servlet is only used to redirect in RAP application,which extends the extension of "org.eclipse.equinox.http.registry.servlets".The attribute of alias named "/test" ,which is shown in URI,decides whether the instance of servlet will execute.If you access RAP APP with the URI "http://<host>:<port>/<APP_NAME>/msdk",the class "MsdkRedirectServlet" will be called by APP.
About Branding(Extension:org.eclipse.rap.ui.branding)
With the branding we are able to define several aspects of RAP APP.We can define a new branding by creating an extension for the "org.eclipse.rap.ui.branding" extension point.The servletName attribute is responsible for the URL of the application for the outside world.In MSDK RAP APP,it is named "amino",which will be available at <host>:<port>/<APP_NAME>/amino.The defaultEntrypointId refers to an entrypoint which should be launched for the sevlet like "amino".Below the URI "http://<host>:<port>/<APP_NAME>/aimo" and "http://<host>:<port>/<APP_NAME>/aimo?startup=sherlock" are equivalent because there is an entrypoint defined with ID "com.ibm.msdk.ui.entrypoint.sherlock" and parameter "sherlock".