|
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.Terminal
This class represents an EPI terminal
TerminalSession
, Serialized FormInner Class Summary | |
(package private) class |
Terminal.Wait
|
Field Summary | |
(package private) EPIRequest |
asyncReq
|
(package private) boolean |
ATIEnabled
|
(package private) boolean |
ATIShouldBeEnabled
|
(package private) boolean |
inCallback
|
(package private) JavaGateway |
jgate
|
(package private) Screen |
screen
|
(package private) Session |
session
|
(package private) EPIRequest |
syncReq
|
(package private) boolean |
waitingEvent
|
Constructor Summary | |
Terminal()
Constructs a terminal. |
|
Terminal(JavaGateway jgate,
java.lang.String server,
java.lang.String devtype,
java.lang.String netname)
Constructs a terminal to the given server using the given gateway |
Method Summary | |
void |
connect()
Connects the terminal to the server. |
void |
disconnect()
Disconnects the terminal from the server. |
java.lang.String |
getDeviceType()
Returns the device type of the terminal. |
(package private) void |
getEncodingFromCics()
|
int |
getEndReason()
Returns the end reason code. |
(package private) void |
getEvents()
|
java.lang.String |
getNetName()
Returns the netname of the terminal. |
Screen |
getScreen()
Returns the screen associated with the terminal. |
java.lang.String |
getServerName()
Returns the name of the server the terminal is connected to. |
int |
getState()
Returns the state of the terminal. |
java.lang.String |
getTransID()
Returns the transaction id of the current transaction. |
(package private) void |
handleEvent(EPIRequest req)
|
(package private) void |
keepWaitingATI()
|
boolean |
queryATI()
Returns a boolean indicating whether the terminal ATI state is enabled or disabled. |
void |
send()
Sends the current screen to the server using the current Session. |
void |
send(Session session)
Sends the current screen to the server. |
void |
send(Session session,
java.lang.String transid,
java.lang.String data)
Starts a transaction on the server. |
void |
send(java.lang.String transid,
java.lang.String data)
Starts a transaction on the server using the current session. |
void |
setATI(boolean on)
Sets the terminal ATI state to be enabled or disabled. |
void |
setDeviceType(java.lang.String devtype)
Sets the device type the terminal should use. |
void |
setGateway(JavaGateway jgate)
Sets the Java Gateway that this terminal should use to connect to the server. |
void |
setNetName(java.lang.String netname)
Sets the netname that terminal should use. |
void |
setServerName(java.lang.String server)
Sets the name of the server the terminal should connect to. |
void |
setSession(Session s)
Set the Session object associated with the terminal. |
Methods inherited from class java.lang.Object |
|
Field Detail |
transient JavaGateway jgate
Session session
transient Screen screen
transient EPIRequest syncReq
transient EPIRequest asyncReq
transient boolean inCallback
transient boolean waitingEvent
boolean ATIEnabled
boolean ATIShouldBeEnabled
Constructor Detail |
public Terminal()
public Terminal(JavaGateway jgate, java.lang.String server, java.lang.String devtype, java.lang.String netname) throws java.io.IOException, EPIException
jgate
- the Java Gateway to useserver
- the name of the server to connect todevtype
- device type that the terminal should use - can be nullnetname
- netname that the terminal should use - can be nullMethod Detail |
public void setGateway(JavaGateway jgate) throws java.io.IOException, EPIException
public void connect() throws java.io.IOException, EPIException
public void send(Session session, java.lang.String transid, java.lang.String data) throws EPIException, java.io.IOException
idle
state.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 transactionpublic void send(java.lang.String transid, java.lang.String data) throws EPIException, java.io.IOException
idle
state.transid
- the transaction to startdata
- the data to pass to the transactionpublic void send(Session session) throws EPIException, java.io.IOException
idle
or the screen is already set up to start the
next transaction.session
- the Session that will handle responses from the server.
If this is null, no Session is used and calls are handled synchronously.public void send() throws EPIException, java.io.IOException
idle
or the screen is already set up to start the
next transaction.public void disconnect() throws java.io.IOException, EPIException
idle
.public boolean queryATI() throws EPIException, java.io.IOException
public void setATI(boolean on) throws EPIException, java.io.IOException
on
- true to set ATI enabled, false otherwisepublic java.lang.String getServerName()
public java.lang.String getNetName()
public java.lang.String getDeviceType()
public void setServerName(java.lang.String server)
server
- the name of the serverpublic void setNetName(java.lang.String netname)
netname
- the netnamepublic void setDeviceType(java.lang.String devtype)
devtype
- the device typepublic Screen getScreen()
public void setSession(Session s)
s
- a Session objectpublic java.lang.String getTransID()
public int getState()
public int getEndReason()
void getEncodingFromCics() throws java.io.IOException, EPIException
void handleEvent(EPIRequest req) throws EPIException, java.io.IOException
void getEvents() throws EPIException, java.io.IOException
void keepWaitingATI() throws java.io.IOException, EPIException
|
© Copyright IBM Corp. 1994, 1999 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |