Package com.iizix.term
Interface HostSessionOwner
- All Superinterfaces:
HostSessionListener
- All Known Implementing Classes:
RemoteHostSession
,TerminalDesignerProp
,TerminalHost
public interface HostSessionOwner extends HostSessionListener
The 3270 or 5250 host session owner interface.- Author:
- Christopher Mindus
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SessionInfo
getSessionInfo()
Gets the SessionInfo.Worker
getWorker()
Gets the worker of the session.int
onHostDataStreamProcessing(HostSessionPeer peer, boolean isEntering)
Called when the datastream enters or exits processing.void
onHostPrintPage(HostSessionPeer peer)
Called when a host printer needs printing of a new page.boolean
printSession(HostSessionPeer peer)
Called when the host (mainframe) has issued a Print Session (Print Local Copy).Methods inherited from interface com.iizix.term.HostSessionListener
onConnectChange, onCursorPositionChange, onFieldChange, onHostDataStreamProcessing, onScreenChange, onScreenSizeChange, onSessionFailure, onStateChange, soundAlarm
Method Detail
onHostDataStreamProcessing
int onHostDataStreamProcessing(HostSessionPeer peer, boolean isEntering)
Called when the datastream enters or exits processing. This enables the owner to "group" multiple notification events together.- Parameters:
peer
- The peer.isEntering
- Flag for entering or exiting.- Returns:
- Bit flags 0x01 = characters changed, 0x02=fields changed.
onHostPrintPage
void onHostPrintPage(HostSessionPeer peer)
Called when a host printer needs printing of a new page.- Parameters:
peer
- The peer.
printSession
boolean printSession(HostSessionPeer peer)
Called when the host (mainframe) has issued a Print Session (Print Local Copy).- Parameters:
peer
- The peer.- Returns:
- true for success, false for cancel.
getWorker
Worker getWorker() throws java.io.IOException
Gets the worker of the session.- Returns:
- The worker.
- Throws:
java.io.IOException
- For error when getting the worker.
getSessionInfo
SessionInfo getSessionInfo()
Gets the SessionInfo.- Returns:
- The session info, never null.