org.cafesip.gwtcomp.server
Class LiveDataServiceImpl

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet
              extended by com.google.gwt.user.server.rpc.RemoteServiceServlet
                  extended by org.cafesip.gwtcomp.server.LiveDataServiceImpl
All Implemented Interfaces:
RemoteService, SerializationPolicyProvider, Serializable, Servlet, ServletConfig, LiveDataService

public class LiveDataServiceImpl
extends RemoteServiceServlet
implements LiveDataService

A GWT servlet for handling the server-side RPC functions needed by the LiveDataPanel to display and refresh data dynamically. This class must be added to the web.xml of your application as explained in the documentation for the LiveDataPanel.

Author:
Amit Chatterjee
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.cafesip.gwtcomp.client.common.LiveDataService
LiveDataService.Util
 
Field Summary
 
Fields inherited from class com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet
perThreadRequest, perThreadResponse
 
Constructor Summary
LiveDataServiceImpl()
           
 
Method Summary
 void cancel(int sessionId)
           
 ChartInitData getChartInfoAndInitialData(String context, String instance, String param)
           
 ChartData getNextData(int sessionId)
           
 void init(ServletConfig config)
           
 
Methods inherited from class com.google.gwt.user.server.rpc.RemoteServiceServlet
doGetSerializationPolicy, getSerializationPolicy, onAfterResponseSerialized, onBeforeRequestDeserialized, processCall, processPost, shouldCompressResponse
 
Methods inherited from class com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet
doPost, doUnexpectedFailure, getPermutationStrongName, getThreadLocalRequest, getThreadLocalResponse, onAfterRequestDeserialized, readContent
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPut, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, 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

LiveDataServiceImpl

public LiveDataServiceImpl()
Method Detail

init

public void init(ServletConfig config)
          throws ServletException
Specified by:
init in interface Servlet
Overrides:
init in class GenericServlet
Throws:
ServletException

getChartInfoAndInitialData

public ChartInitData getChartInfoAndInitialData(String context,
                                                String instance,
                                                String param)
Specified by:
getChartInfoAndInitialData in interface LiveDataService

getNextData

public ChartData getNextData(int sessionId)
Specified by:
getNextData in interface LiveDataService

cancel

public void cancel(int sessionId)
Specified by:
cancel in interface LiveDataService


Copyright © 2010 Cafesip.org. All Rights Reserved.