public class Session5250 extends Object implements SessionInterface
| Modifier and Type | Field and Description |
|---|---|
protected Properties |
sesProps |
| Constructor and Description |
|---|
Session5250(Properties props,
String configurationResource,
String sessionName,
SessionConfig config) |
| Modifier and Type | Method and Description |
|---|---|
void |
addScanListener(ScanListener listener) |
void |
addSessionListener(SessionListener listener)
Add a SessionListener to the listener list.
|
void |
connect() |
void |
disconnect() |
void |
fireScanned(String command,
String remainder)
This is the callback method for the TNVT when sensing the action cmd
screen pattern (!
|
void |
fireSessionChanged(int state)
Notify all registered listeners of the onSessionChanged event.
|
String |
getAllocDeviceName() |
SessionConfig |
getConfiguration() |
String |
getConfigurationResource() |
Properties |
getConnectionProperties() |
SessionPanel |
getGUI() |
String |
getHostName() |
Screen5250 |
getScreen() |
SessionManager |
getSessionManager() |
String |
getSessionName() |
int |
getSessionType() |
tnvt |
getVT() |
boolean |
isConnected() |
boolean |
isScanningEnabled()
Checks whether scanning is enabled.
|
boolean |
isSendKeepAlive() |
boolean |
isSslConfigured() |
boolean |
isSslSocket() |
boolean |
isUseSystemName() |
void |
removeScanListener(ScanListener listener) |
void |
removeSessionListener(SessionListener listener)
Remove a SessionListener from the listener list.
|
void |
setGUI(SessionPanel gui) |
void |
setScanningEnabled(boolean scan)
Enables or disables scanning.
|
protected void |
setVT(tnvt v) |
String |
showSystemRequest()
Popups a dialog to ask the user for entering a SysReq value.
|
void |
signalBell()
Signals the user a sound (or maybe a light flash).
|
protected Properties sesProps
public Session5250(Properties props, String configurationResource, String sessionName, SessionConfig config)
public String getConfigurationResource()
getConfigurationResource in interface SessionInterfacepublic SessionConfig getConfiguration()
public SessionManager getSessionManager()
public boolean isConnected()
isConnected in interface SessionInterfacepublic boolean isSslSocket()
public boolean isSslConfigured()
public boolean isSendKeepAlive()
public boolean isUseSystemName()
public Properties getConnectionProperties()
public void setGUI(SessionPanel gui)
public SessionPanel getGUI()
public String getSessionName()
getSessionName in interface SessionInterfacepublic String getAllocDeviceName()
public int getSessionType()
getSessionType in interface SessionInterfacepublic String getHostName()
public Screen5250 getScreen()
public void signalBell()
SessionInterfacesignalBell in interface SessionInterfacepublic String showSystemRequest()
SessionInterfaceshowSystemRequest in interface SessionInterfacepublic void connect()
connect in interface SessionInterfacepublic void disconnect()
disconnect in interface SessionInterfaceprotected void setVT(tnvt v)
public tnvt getVT()
public void setScanningEnabled(boolean scan)
scan - enables scanning when true; disables otherwise.public boolean isScanningEnabled()
public final void fireScanned(String command, String remainder)
command - discovered in the 5250 stream.remainder - are all the other characters on the screen.public final void addScanListener(ScanListener listener)
listener - a listener to addpublic final void removeScanListener(ScanListener listener)
listener - a scan listenerpublic final void fireSessionChanged(int state)
state - The state change property object.public final void addSessionListener(SessionListener listener)
addSessionListener in interface SessionInterfacelistener - The SessionListener to be addedpublic final void removeSessionListener(SessionListener listener)
removeSessionListener in interface SessionInterfacelistener - The SessionListener to be removedCopyright © 2018. All rights reserved.