com.noelios.restlet.ext.gwt
Class GwtShellServletWrapper

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by com.noelios.restlet.ext.servlet.ServerServlet
              extended by 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

Constructor Summary
GwtShellServletWrapper()
          Default constructor.
 
Method Summary
 void destroy()
           
 void init()
           
 void service(HttpServletRequest request, HttpServletResponse response)
          Services a HTTP Servlet request as an uniform call.
 
Methods inherited from class com.noelios.restlet.ext.servlet.ServerServlet
createApplication, createCall, createComponent, createServer, createWarClient, getApplication, getComponent, getInitParameter, getServer, loadClass
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service
 
Methods inherited from class javax.servlet.GenericServlet
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GwtShellServletWrapper

public GwtShellServletWrapper()
Default constructor.

Method Detail

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.