creamtec.webcream.core
Interface ClientAgentRemote

All Superinterfaces:
java.rmi.Remote
All Known Implementing Classes:
ClientAgent, ClientAgentImpl, ClientAgentImpl_Stub, ServletHelper.InProcessClientAgent

public interface ClientAgentRemote
extends java.rmi.Remote

Remote interface, through which a ClientAgent can be accessed via RMI


Method Summary
 void init(AgentInitData data)
          Initializes the client
 void ping()
          Renews a lease on the agent.
 HttpResponseData processHttpRequest(HttpRequestData request)
          Processes HTTP request
 HttpResponseData renderCurrentWindow(HttpRequestData request)
          Renderes the currently focused window as HTML
 void runApp(boolean wait)
          Runs the application/applet.
 void shutdown()
          Terminates the client JVM
 

Method Detail

init

void init(AgentInitData data)
          throws java.lang.Exception,
                 java.rmi.RemoteException
Initializes the client

Throws:
java.lang.Exception
java.rmi.RemoteException

shutdown

void shutdown()
              throws java.rmi.RemoteException
Terminates the client JVM

Throws:
java.rmi.RemoteException

runApp

void runApp(boolean wait)
            throws WebCreamException,
                   java.rmi.RemoteException
Runs the application/applet. Can be used to preload app classes

Throws:
WebCreamException
java.rmi.RemoteException

processHttpRequest

HttpResponseData processHttpRequest(HttpRequestData request)
                                    throws WebCreamException,
                                           java.rmi.RemoteException
Processes HTTP request

Returns:
HTTP response, containing HTML page to be displayed
Throws:
WebCreamException
java.rmi.RemoteException

renderCurrentWindow

HttpResponseData renderCurrentWindow(HttpRequestData request)
                                     throws WebCreamException,
                                            java.rmi.RemoteException
Renderes the currently focused window as HTML

Returns:
HTTP response, containing HTML page to be displayed
Throws:
WebCreamException
java.rmi.RemoteException

ping

void ping()
          throws java.rmi.RemoteException
Renews a lease on the agent. Used to keep warmedUp JVM running

Throws:
java.rmi.RemoteException


Copyright © 2000-2006 CreamTec LLC. All Rights Reserved.