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
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. |
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 startdata
- 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.