public interface ClientSessionInterface
Modifier and Type | Method and Description |
---|---|
void |
clientTrace(String text)
Performs a trace output (normally after a call to
doClientVerboseTrace . |
Transaction |
createTransaction()
Called to create a transaction that will later on be sent to the client.
|
void |
displayTerminal()
Creates the terminal window, gets the contents of the terminal window,
hides all the panels, and displays it.
|
void |
dispose()
Disposes of the client session.
|
boolean |
doClientVerboseTrace()
Checks if client verbose trace is turned on.
|
boolean |
doesScreenContainData()
Checks if the host screen contains data.
|
boolean |
exitApplication()
Exits the current client session.
|
void |
flagClientEventForProcessing()
Flags a client event to be processed asynchronously.
|
void |
flagHostEventForProcessing()
Flags a host event to be processed asynchronously.
|
ClientCommunicationInterface |
getClientCommunicationInterface()
Gets the client communication interface..
|
ClientConnectionData |
getClientConnectionData()
Gets the client connection data.
|
ClientWorker |
getClientWorker()
Get client worker.
|
HostSession |
getCurrentHostSession()
Gets the current host session.
|
HostScreen |
getHostScreen()
Gets the host screen.
|
HostSessionManager |
getHostSessionManager()
Gets the host session manager.
|
Transaction |
getModalReturnCode(int replyType)
Gets the return code (Transaction) for a modal server-client request.
|
int |
getSessionType()
Get the session type.
|
VirtualSessionManager |
getVirtualSessionManager()
Gets the VirtualSessionManager.
|
boolean |
hasFullDuplexClient()
Checks if this session is a full duplex NetPhantom Client, either Java or JavaScript.
|
boolean |
hasJavaClient()
Checks if this session is connected to a NetPhantom Java Client.
|
boolean |
isClientTerminalDisplayed()
Checks if the client is displaying the terminal window.
|
boolean |
isDisposed()
Check for dispose.
|
boolean |
isHostInErrorState()
Checks if the current host session is in error state.
|
boolean |
isHostLocked()
Checks if the current host session is locked.
|
boolean |
isMainThread()
Checks if the current calling thread is the main thread.
|
void |
logEvent(int id)
Logs an event for the client.
|
void |
logEvent(int id,
String param)
Logs an event for the client.
|
void |
postClientTransaction(Transaction trans)
Posts a client transaction for processing.
|
void |
processCheckInactivity(int inactivityWarning,
int inactivityTimeout)
Checks if a warning message should be displayed on the client
due to inactivity or if the session should be closed.
|
void |
processClientEvent()
Process a new client event.
|
void |
processClientTransaction(Transaction trans)
Processes events posted to the client worker for processing in
the virtual session manager.
|
void |
processHostEvent()
Process a new host event.
|
void |
removeTerminal()
Removes the terminal window and displays all the panels again.
|
void |
sendTransaction(Transaction trans)
Sends a transaction to the client.
|
void |
sendTransaction(Transaction trans,
boolean doSetLastTransactionTime)
Sends a transaction to the client.
|
void |
setModalReturnCode(Transaction trans)
Sets the return code for a server-client request (message box).
|
void |
soundAlarm()
Called to issue an alarm on the client side.
|
boolean |
waitForScreenChange(long msTime)
Waits for a screen change for a certain time.
|
boolean |
waitForUnlock(long msTime)
Waits for the lock state to disappear for a certain time.
|
void soundAlarm()
int getSessionType()
Transaction createTransaction()
void sendTransaction(Transaction trans)
sendTransaction(trans,true)
.trans
- The transaction to send.void sendTransaction(Transaction trans, boolean doSetLastTransactionTime)
trans
- The transaction to send.doSetLastTransactionTime
- Flag indicating if the last transaction time
is also always set.void setModalReturnCode(Transaction trans)
Transaction getModalReturnCode(int replyType)
boolean waitForScreenChange(long msTime)
boolean isHostLocked()
boolean isHostInErrorState()
HostScreen getHostScreen()
HostSession getCurrentHostSession()
boolean waitForUnlock(long msTime)
boolean isMainThread()
void logEvent(int id)
void logEvent(int id, String param)
boolean hasFullDuplexClient()
boolean hasJavaClient()
boolean exitApplication()
The connection to the client will be closed and the terminal sessions stopped. The session will then be restarted for use by another client session.
void dispose()
boolean doClientVerboseTrace()
void clientTrace(String text)
doClientVerboseTrace
.ClientConnectionData getClientConnectionData()
ClientCommunicationInterface getClientCommunicationInterface()
HostSessionManager getHostSessionManager()
void flagClientEventForProcessing()
void flagHostEventForProcessing()
boolean doesScreenContainData()
void postClientTransaction(Transaction trans)
void displayTerminal()
void removeTerminal()
boolean isClientTerminalDisplayed()
VirtualSessionManager getVirtualSessionManager()
ClientWorker getClientWorker()
void processClientEvent()
void processClientTransaction(Transaction trans)
void processHostEvent()
void processCheckInactivity(int inactivityWarning, int inactivityTimeout)
boolean isDisposed()
Phantom® and NetPhantom® are registered trademarks of Mindus SARL.
© © Mindus SARL, 2024. All rights reserved.