com.noelios.restlet.ext.gwt
Class GwtShellServletWrapper
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
com.noelios.restlet.ext.servlet.ServerServlet
com.noelios.restlet.ext.gwt.GwtShellServletWrapper
- All Implemented Interfaces:
- java.io.Serializable, Servlet, ServletConfig
public class GwtShellServletWrapper
- extends ServerServlet
Servlet to Restlet adapter aware of GWT requests. To allow Restlet to handle
all non-module requests under the hosted mode of Google Web Toolkit, this
wrapper can be used in place of the GWTShellServlet supplied with Google Web
Toolkit.
As GWTShellServlet expects, add a context parameter called "module" that
specifies the fully qualified name of a GWT module. Requests directed to the
module will be forwarded to GWTShellServlet; Restlet will handle all other
requests.
Because this wrapper extends Restlet's ServerServlet, it also supports the
parameters for component and application initialization described in the
ServerServlet Javadocs.
- Author:
- Rob Heittman (rob.heittman@solertium.com)
- See Also:
ServerServlet
,
Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GwtShellServletWrapper
public GwtShellServletWrapper()
- Default constructor.
destroy
public void destroy()
- Specified by:
destroy
in interface Servlet
- Overrides:
destroy
in class ServerServlet
init
public void init()
throws ServletException
- Overrides:
init
in class ServerServlet
- Throws:
ServletException
service
public void service(HttpServletRequest request,
HttpServletResponse response)
throws ServletException,
java.io.IOException
- Description copied from class:
ServerServlet
- Services a HTTP Servlet request as an uniform call.
- Overrides:
service
in class ServerServlet
- Parameters:
request
- The HTTP Servlet request.response
- The HTTP Servlet response.
- Throws:
ServletException
java.io.IOException
Copyright © 2005-2008 Noelios Technologies.