org.apache.tuscany.sca.binding.dwr
Class DWRServlet

java.lang.Object
  extended by DwrServlet
      extended by org.apache.tuscany.sca.binding.dwr.DWRServlet

public class DWRServlet
extends DwrServlet

Tuscany customized DWR Servlet to implement support for the DWR binding Handles requests for SCA services and references that use , and also the HTTP GET for the Tuscany DWR system script "scaDomain.js"


Constructor Summary
DWRServlet()
           
 
Method Summary
 void addReference(java.lang.String name)
          Add an SCA reference to be added to the DWR runtime
 void addService(java.lang.String name, java.lang.Class type, java.lang.Object instance)
          Add an SCA service to be added to the DWR runtime
 void init(ServletConfig servletConfig)
          Initialize the Servlet There is a single instance of this Servlet which is registered for multiple path mappings, but the init should only run once.
 void service(ServletRequest req, ServletResponse res)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DWRServlet

public DWRServlet()
Method Detail

service

public void service(ServletRequest req,
                    ServletResponse res)
             throws ServletException,
                    java.io.IOException
Throws:
ServletException
java.io.IOException

init

public void init(ServletConfig servletConfig)
          throws ServletException
Initialize the Servlet There is a single instance of this Servlet which is registered for multiple path mappings, but the init should only run once.

Throws:
ServletException

addReference

public void addReference(java.lang.String name)
Add an SCA reference to be added to the DWR runtime


addService

public void addService(java.lang.String name,
                       java.lang.Class type,
                       java.lang.Object instance)
Add an SCA service to be added to the DWR runtime