public class RWTServlet
extends HttpServlet
Usually, you only have to register this servlet manually in a traditional web application, i.e. without OSGi.
In a traditional web application (without OSGi), this servlet must be registered in the application's deployment descriptor like shown below. Note that the RWT servlet has to be registered for every entrypoint of the application.
<context-param> <param-name>org.eclipse.rap.applicationConfiguration</param-name> <param-value>com.example.HelloWorldConfiguration</param-value> </context-param> <listener> <listener-class>org.eclipse.rap.rwt.engine.RWTServletContextListener</listener-class> </listener> <servlet> <servlet-name>rwtServlet</servlet-name> <servlet-class>org.eclipse.rap.rwt.engine.RWTServlet</servlet-class> </servlet> <servlet-mapping> <servlet-name>rwtServlet</servlet-name> <url-pattern>/example</url-pattern> </servlet-mapping>
Constructor and Description |
---|
RWTServlet() |
Modifier and Type | Method and Description |
---|---|
void |
doGet(HttpServletRequest request,
HttpServletResponse response) |
void |
doPost(HttpServletRequest request,
HttpServletResponse response) |
java.lang.String |
getServletInfo() |
void |
init() |
public java.lang.String getServletInfo()
public void init() throws ServletException
ServletException
public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, java.io.IOException
ServletException
java.io.IOException
public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, java.io.IOException
ServletException
java.io.IOException
Copyright (c) EclipseSource and others 2002, 2016.
All rights reserved. This program and the accompanying materials
are made available under the terms of the
Eclipse Public License v1.0