|
CICS® Transaction Gateway Programming Reference V3.1 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.ctg.epi.EPITerminal
A Java bean that represents a connection to a CICS 3270 terminal.
Inner Class Summary | |
(package private) class |
EPITerminal.Timer
This class is a simple timer. |
Constructor Summary | |
EPITerminal()
Construct an EPITerminal. |
Method Summary | |
void |
actionPerformed(java.awt.event.ActionEvent evt)
Reacts to an action event by starting a transaction - the action command associated with the event is assumed to be the transaction name. |
void |
addTerminalEventListener(TerminalEventListener h)
Adds a TerminalEventListener to the list of screen handlers. |
void |
connect()
Connect to the CICS server. |
void |
disconnect()
Disconnect from the CICS server. |
protected void |
finalize()
finalize. |
java.lang.String |
getGatewayClientSecurity()
Returns the name of the client security class that the CICS Transaction Gateway will use. |
java.lang.String |
getGatewayServerSecurity()
Returns the name of the server security class that the CICS Transaction Gateway will use. |
java.lang.String |
getGatewayURL()
Returns the URL of the CICS Transaction Gateway that the terminal will connect to. |
Screen |
getScreen()
Returns the Screen object associated with this terminal. |
int |
getState()
Returns the terminal state. |
int |
getSyncType()
Returns the type of synchronization the terminal is using. |
TerminalInterface |
getTerminal()
Returns the terminal that will be used to connect to CICS.. |
long |
getTimeout()
Returns the terminal timeout. |
java.lang.String |
getTransaction()
Returns the transaction that will be started if startTran is called. |
java.lang.String |
getTransactionData()
Returns the parameters that will be passed when startTran is called. |
void |
handleReply(TerminalInterface term)
Handles a reply from CICS by sending handleScreen events to all listeners if the terminal is in the right state. |
boolean |
isATI()
Returns true if ATI is currently enabled for this terminal. |
boolean |
isConnected()
Returns true if the terminal is connected to CICS. |
(package private) void |
processConnect()
Send the terminalConnected event to all listeners |
(package private) void |
processDisconnect()
Send the terminalDsiconnected event to all listeners |
(package private) void |
processError(java.lang.Exception e)
Send the exception occurred event to all listeners |
(package private) void |
processScreen()
Handle a change in the terminal state. |
boolean |
queryATI()
Determines whether ATI is currently enabled for this terminal. |
void |
removeTerminalEventListener(TerminalEventListener h)
Remove a TerminalEventListener from the list of screen handlers. |
void |
send()
Sends the current screen to CICS. |
void |
send(java.lang.String tran,
java.lang.String data)
Starts a new transaction. |
void |
setATI(boolean on)
Sets the Terminal ATI state. |
void |
setGatewayClientSecurity(java.lang.String classname)
Set the client security class that the CICS Transaction Gateway will use. |
void |
setGatewayServerSecurity(java.lang.String classname)
Set the server security class that the CICS Transaction Gateway will use. |
void |
setGatewayURL(java.lang.String url)
Set the URL of the CICS Transaction Gateway to connect to. |
void |
setTerminal(TerminalInterface t)
Set the terminal that will be used to connect to CICS. |
void |
setTimeout(long t)
Set the terminal timeout. |
void |
setTransaction(java.lang.String t)
Set the transaction to be started when startTran is called. |
void |
setTransactionData(java.lang.String d)
Set the parameters to pass when startTran is called. |
void |
startTran()
Starts a transaction on the terminal, using the current transaction ID and data. |
void |
terminate()
Waits for the terminal to finish disconnecting, then closes the connection to the CICS Transaction Gateway. |
(package private) void |
timedOut()
This method is called by the timer thread if the idle timeout period expires |
Methods inherited from class java.lang.Object |
|
Constructor Detail |
public EPITerminal()
Method Detail |
protected void finalize() throws java.lang.Throwable
public void terminate()
public void connect()
public void disconnect()
public void setTransaction(java.lang.String t)
t
- the transaction ID.public java.lang.String getTransaction()
public void setTransactionData(java.lang.String d)
d
- the parameterspublic java.lang.String getTransactionData()
public void setTerminal(TerminalInterface t)
t
- the terminal to usepublic TerminalInterface getTerminal()
public void setGatewayURL(java.lang.String url)
url
- the URL of the gatewaypublic java.lang.String getGatewayURL()
public void setGatewayClientSecurity(java.lang.String classname)
classname
- the name of the security classpublic java.lang.String getGatewayClientSecurity()
public void setGatewayServerSecurity(java.lang.String classname)
classname
- the name of the security classpublic java.lang.String getGatewayServerSecurity()
public void setTimeout(long t)
t
- the timeout in millisecondspublic long getTimeout()
public boolean isConnected()
public void startTran()
public Screen getScreen()
Screen
object associated with this terminal.public void send()
public void send(java.lang.String tran, java.lang.String data)
tran
- a transaction IDdata
- parameters to pass to the transactionpublic boolean queryATI()
public void setATI(boolean on)
on
- true to set ATI enabledpublic boolean isATI()
public void actionPerformed(java.awt.event.ActionEvent evt)
evt
- the action eventpublic void addTerminalEventListener(TerminalEventListener h)
TerminalEventListener
to the list of screen handlers.
When an event occurs, such as the arrival of a screen of data from CICS,
all the event listeners are notified.h
- the event listenerpublic void removeTerminalEventListener(TerminalEventListener h)
TerminalEventListener
from the list of screen handlers.h
- the event listenervoid processScreen()
void processConnect()
void processDisconnect()
void processError(java.lang.Exception e)
public int getSyncType()
public void handleReply(TerminalInterface term)
term
- the terminal object where the state has changedpublic int getState()
void timedOut()
|
© Copyright IBM Corp. 1994, 1999 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |