All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface org.ohio.iOhioSession

public interface iOhioSession
extends iOhio
A host session.


Method Index

 o addSessionListener(iOhioSessionListener)
Registers a listener object for events dispatched by this iOhioSession object.
 o connect()
Starts the communications link to the host.
 o disconnect()
Stops the communications link to the host.
 o getConfigurationResource()
Returns the configurationResource for this iOhioSession object.
 o getScreen()
Returns the iOhioScreen object for this session.
 o getSessionName()
Returns the sessionName for this iOhioSession object.
 o getSessionType()
Returns the sessionType for this iOhioSession object.
 o isConnected()
Returns whether this iOhioSession object is connected to a host.
 o removeSessionListener(iOhioSessionListener)
Unregisters a listener object for events dispatched by this iOhioSession object.

Methods

 o getConfigurationResource
 public abstract String getConfigurationResource()
Returns the configurationResource for this iOhioSession object.

Returns:
The configurationResource.
 o isConnected
 public abstract boolean isConnected()
Returns whether this iOhioSession object is connected to a host.

Returns:
true - connected, false - notconnected
 o getSessionName
 public abstract String getSessionName()
Returns the sessionName for this iOhioSession object. The sessionName is unique among all instances of iOhioSession.

Returns:
The sessionName.
 o getSessionType
 public abstract int getSessionType()
Returns the sessionType for this iOhioSession object. The OHIO_TYPE enumeration contains the valid values for the sessionType.

Returns:
The sessionType.
See Also:
OHIO_TYPE_3270, OHIO_TYPE_5250, OHIO_TYPE_UNKNOWN
 o getScreen
 public abstract iOhioScreen getScreen()
Returns the iOhioScreen object for this session.

Returns:
The iOhioScreen object.
See Also:
iOhioScreen
 o connect
 public abstract void connect()
Starts the communications link to the host.

 o disconnect
 public abstract void disconnect()
Stops the communications link to the host.

 o addSessionListener
 public abstract void addSessionListener(iOhioSessionListener listener)
Registers a listener object for events dispatched by this iOhioSession object. The listener object must implement the iOhioSessionListener interface.

Listener objects can be unregistered using the removeSessionListener() method.

Parameters:
listener - iOhioSessionListener object which is notified when iOhioSession events occur.
See Also:
removeSessionListener
 o removeSessionListener
 public abstract void removeSessionListener(iOhioSessionListener listener)
Unregisters a listener object for events dispatched by this iOhioSession object.

Listener objects can be registered using the addSessionListener() method.

Parameters:
listener - iOhioSessionListener object which is to be removed from the notification list.
See Also:
addSessionListener

All Packages  Class Hierarchy  This Package  Previous  Next  Index