se.entra.phantom.server
Class ClientCommunicationAdapter

java.lang.Object
  extended by se.entra.phantom.server.ClientCommunicationAdapter
All Implemented Interfaces:
ClientCommunicationListener
Direct Known Subclasses:
HtmlApplication

public abstract class ClientCommunicationAdapter
extends Object
implements ClientCommunicationListener

This convenience adapter class imlements the interface of a non-NetPhantom Java Client such as e.g. a state-less HTTP session using a client session or an request-reply type of program requesting e.g. host data.


Constructor Summary
ClientCommunicationAdapter()
           
 
Method Summary
 boolean isClientTerminalDisplayed(ClientSession clientSession)
          Checks if the client is displaying the terminal window.
 void onClientChange(ClientSession clientSession)
          Notifies of a client change.
 void onClientDispose(ClientSession clientSession)
          Notifies of a client session disposal.
 void onClientInactivity(ClientSession clientSession)
          Called when the session has been inactive for a period of time.
 void onDisplayTerminal(ClientSession clientSession)
          Displays the terminal window.
 boolean onExitApplication(ClientSession clientSession)
          Called when local code (e.g.
 void onHostChange(ClientSession clientSession)
          Notifies of a host change.
 void onHostSessionFailure(ClientSession clientSession, String description)
          Notifies of a failure in a host session.
 void onRemoveTerminal(ClientSession clientSession)
          Removes the terminal window.
 void onSoundAlarm(ClientSession clientSession)
          Sound alarm on the client.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClientCommunicationAdapter

public ClientCommunicationAdapter()
Method Detail

onClientChange

public void onClientChange(ClientSession clientSession)
Notifies of a client change.

Specified by:
onClientChange in interface ClientCommunicationListener

onHostChange

public void onHostChange(ClientSession clientSession)
Notifies of a host change.

Specified by:
onHostChange in interface ClientCommunicationListener

onHostSessionFailure

public void onHostSessionFailure(ClientSession clientSession,
                                 String description)
Notifies of a failure in a host session.

Specified by:
onHostSessionFailure in interface ClientCommunicationListener

onDisplayTerminal

public void onDisplayTerminal(ClientSession clientSession)
Displays the terminal window.

Specified by:
onDisplayTerminal in interface ClientCommunicationListener

onRemoveTerminal

public void onRemoveTerminal(ClientSession clientSession)
Removes the terminal window.

Specified by:
onRemoveTerminal in interface ClientCommunicationListener

isClientTerminalDisplayed

public boolean isClientTerminalDisplayed(ClientSession clientSession)
Checks if the client is displaying the terminal window.

Specified by:
isClientTerminalDisplayed in interface ClientCommunicationListener
Returns:
the visibility state.

onSoundAlarm

public void onSoundAlarm(ClientSession clientSession)
Sound alarm on the client.

Specified by:
onSoundAlarm in interface ClientCommunicationListener

onExitApplication

public boolean onExitApplication(ClientSession clientSession)
Called when local code (e.g. REXX) calls PanelExit, SessionExit or in some other way wants to exit this client session.

Specified by:
onExitApplication in interface ClientCommunicationListener
Returns:
true to allow exit of application.

onClientInactivity

public void onClientInactivity(ClientSession clientSession)
Called when the session has been inactive for a period of time.

Specified by:
onClientInactivity in interface ClientCommunicationListener

onClientDispose

public void onClientDispose(ClientSession clientSession)
Notifies of a client session disposal. This dispose may be induced by the system, an administrator or the implementor of this interface.

Specified by:
onClientDispose in interface ClientCommunicationListener


Phantom® and NetPhantom® are registered trademarks of Codectica Systems SARL.
© Copyright Codectica Systems SARL, 2008. All rights reserved.