net.sourceforge.apphere
Interface VirtualApplication

All Known Implementing Classes:
VirtualWebBrowser

public interface VirtualApplication

Author:
Dewi Roberts

Method Summary
 Session getSessionState()
          Method getSessionState returns the value of the shared application's current state.
 void setSessionState(Session newState)
          Method setSessionState updates the application with the latest state from the user's client.
 void transferSession(java.net.InetAddress newClient)
          Method transferSession tells the virtual application to allow a different client to access its state.
 

Method Detail

setSessionState

public void setSessionState(Session newState)
Method setSessionState updates the application with the latest state from the user's client.

Parameters:
newState - Session containing latest client values

getSessionState

public Session getSessionState()
Method getSessionState returns the value of the shared application's current state. May not be called by all types of application e.g. a client's web browser gets its state updated directly via http

Returns:
Session

transferSession

public void transferSession(java.net.InetAddress newClient)
Method transferSession tells the virtual application to allow a different client to access its state. It's up to the new client to fetch the state afterwards.

Parameters:
newClient -