CICS® Transaction Gateway Programming Reference V3.1

com.ibm.ctg.epi
Interface TerminalInterface

All Known Implementing Classes:
Terminal

public abstract interface TerminalInterface
extends TerminalSession

This interface defines the behaviour of a terminal. It is implemented by the Terminal class. It extends the TerminalSession interface.

See Also:
TerminalSession

Fields inherited from class com.ibm.ctg.epi.TerminalSession
client, discon, error, idle, server, start
 
Method Summary
 void send(Session session)
          Sends the current screen to the server.
 void send(Session session, java.lang.String transid, java.lang.String data)
          Sends the current screen to the server.
 void setGateway(JavaGateway jgate)
          Sets the JavaGateway that this terminal should use to connect to the server.
 void setSession(Session session)
          Sets the Session associated with this terminal.
 
Methods inherited from interface com.ibm.ctg.epi.TerminalSession
connect, disconnect, getScreen, getState, queryATI, send, send, setATI
 

Method Detail

setGateway

public void setGateway(JavaGateway jgate)
                throws java.io.IOException,
                       EPIException
Sets the JavaGateway that this terminal should use to connect to the server.
Parameters:
jgate - a JavaGateway object
Throws:
java.io.IOException - if an error occurs
EPIException - if an error occurs

send

public void send(Session session,
                 java.lang.String transid,
                 java.lang.String data)
          throws java.io.IOException,
                 EPIException
Sends the current screen to the server. This method starts a new transaction on a terminal in the idle state.
Parameters:
session - the Session that will handle responses from the server. If this is null, no Session is used and calls are handled synchronously.
transid - the transaction to start
data - the data to pass to the transaction
Throws:
java.io.IOException - if an error occurs
EPIException - if an error occurs

send

public void send(Session session)
          throws java.io.IOException,
                 EPIException
Sends the current screen to the server. This method is used when the terminal state is not idle or the screen is already set up to start the next transaction.
Parameters:
session - the Session that will handle responses from the server. If this is null, no Session is used and calls are handled synchronously.
Throws:
java.io.IOException - if an error occurs
EPIException - if an error occurs

setSession

public void setSession(Session session)
Sets the Session associated with this terminal.
Parameters:
session - the Session that will handle responses from the server. If this is null, no Session is used and calls are handled synchronously.

© Copyright IBM Corp. 1994, 1999