All Packages Class Hierarchy This Package Previous Next Index
Interface org.ohio.iOhioSession
- public interface iOhioSession
- extends iOhio
A host session.
-
addSessionListener(iOhioSessionListener)
- Registers a listener object for events dispatched by this iOhioSession
object.
-
connect()
- Starts the communications link to the host.
-
disconnect()
- Stops the communications link to the host.
-
getConfigurationResource()
- Returns the configurationResource for this iOhioSession object.
-
getScreen()
- Returns the iOhioScreen object for this session.
-
getSessionName()
- Returns the sessionName for this iOhioSession object.
-
getSessionType()
- Returns the sessionType for this iOhioSession object.
-
isConnected()
- Returns whether this iOhioSession object is connected to a host.
-
removeSessionListener(iOhioSessionListener)
- Unregisters a listener object for events dispatched by this iOhioSession
object.
getConfigurationResource
public abstract String getConfigurationResource()
- Returns the configurationResource for this iOhioSession object.
- Returns:
- The configurationResource.
isConnected
public abstract boolean isConnected()
- Returns whether this iOhioSession object is connected to a host.
- Returns:
- true - connected, false - notconnected
getSessionName
public abstract String getSessionName()
- Returns the sessionName for this iOhioSession object. The sessionName is
unique among all instances of iOhioSession.
- Returns:
- The sessionName.
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
getScreen
public abstract iOhioScreen getScreen()
- Returns the iOhioScreen object for this session.
- Returns:
- The iOhioScreen object.
- See Also:
- iOhioScreen
connect
public abstract void connect()
- Starts the communications link to the host.
disconnect
public abstract void disconnect()
- Stops the communications link to the host.
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
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