|
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.client.JavaGateway
This class is now a wrapper class around underlying classes that do the real work of managing a connection/pseudo-connection between a program and the Gateway or local-client. These underlying classes must implement the JavaGatewayInterface. This class then simply passes through any calls.
AutoJavaGateway
,
HttpJavaGateway
,
HttpsJavaGateway
,
LocalJavaGateway
,
SslJavaGateway
,
TcpJavaGateway
Constructor Summary | |
JavaGateway()
Constructs a default JavaGateway object. |
|
JavaGateway(java.lang.String strSetURL,
int iSetPort)
Constructs a JavaGateway object and connects it via the relevant protocol to a CICS Gateway for Java or local client. |
|
JavaGateway(java.lang.String strSetURL,
int iSetPort,
java.lang.String strSetClientSecurity,
java.lang.String strSetServerSecurity)
Constructs a JavaGateway object and connects it via the relevant protocol to a CICS Gateway for Java or local client. |
Method Summary | |
void |
close()
Pass through to the underlying real Gateway object |
int |
flow(GatewayRequest gatRequest)
Pass through to the underlying real Gateway object |
java.lang.String |
getAddress()
Returns the address that this JavaGateway is/will be connected to. |
java.util.Locale |
getGatewayLocale()
Returns the Locale of the remote Gateway if it is known. |
java.lang.String |
getGatewayOs()
Returns a string containing the JVM platform, architecture and version. |
int |
getPort()
Returns the port that this JavaGateway is/will be connected to. |
java.lang.String |
getProtocol()
Returns the protocol that this JavaGateway is/will be connected via. |
java.lang.String |
getURL()
Returns the URL that this JavaGateway is/will be connected via. |
boolean |
isInitialFlow()
Checks whether an initial flow will be sent when this JavaGateway is opened |
boolean |
isOpen()
Checks both our expected state and the real state of any wrappered object |
void |
open()
Opens this JavaGateway type object. |
void |
setAddress(java.lang.String strSetAddress)
Set the address that this JavaGateway connects to. |
void |
setInitialFlow(boolean bSetInitialFlow)
When a JavaGateway connects to a remote Gateway host, an initial flow takes place. |
void |
setPort(int iSetPort)
Sets the port that this JavaGateway connects to. |
void |
setProtocol(java.lang.String strSetProtocol)
Set the protocol that this JavaGateway connects via. |
void |
setSecurity(java.lang.String strSetClientSecurity,
java.lang.String strSetServerSecurity)
Sets the security classes to be used on the client and server sides of this connection. |
void |
setURL(java.lang.String strSetURL)
Sets the protocol, address and port of this JavaGateway by means of a single URL string. |
Methods inherited from class java.lang.Object |
|
Constructor Detail |
public JavaGateway()
public JavaGateway(java.lang.String strSetURL, int iSetPort) throws java.io.IOException
strSetURL
- URL specifying the remote/local Gateway to connect toiSetPort
- TCP/IP port to connect to, if relevantpublic JavaGateway(java.lang.String strSetURL, int iSetPort, java.lang.String strSetClientSecurity, java.lang.String strSetServerSecurity) throws java.io.IOException
strSetURL
- URL specifying the remote/local Gateway to connect toiSetPort
- TCP/IP port to connect to, if relevantstrSetClientSecurity
- Name of class implementing ClientSecurity to use on this connectionstrSetServerSecurity
- Name of class implementing ServerSecurity to use on this connectionMethod Detail |
public void open() throws java.io.IOException
public int flow(GatewayRequest gatRequest) throws java.io.IOException
gatRequest
- GatewayRequest object containing the requestpublic void close() throws java.io.IOException
public void setAddress(java.lang.String strSetAddress) throws java.io.IOException
strSetAddress
- Address (normally TCP/IP) to connect topublic java.lang.String getAddress()
public void setPort(int iSetPort) throws java.io.IOException
iSetPort
- Port (normally TCP/IP) to connect topublic int getPort()
public void setProtocol(java.lang.String strSetProtocol) throws java.io.IOException
strSetProtocol
- Protocol used to connect viapublic java.lang.String getProtocol()
public void setURL(java.lang.String strSetURL) throws java.io.IOException
protcol://address:port/
This is only allowed when the JavaGateway is in a closed state
strSetURL
- URL that the JavaGateway will connect topublic java.lang.String getURL()
public boolean isOpen()
public void setSecurity(java.lang.String strSetClientSecurity, java.lang.String strSetServerSecurity) throws java.io.IOException
strSetClientSecurity
- Name of class implementing ClientSecurity to use on this connectionstrSetServerSecurity
- Name of class implementing ServerSecurity to use on this connectionpublic void setInitialFlow(boolean bSetInitialFlow) throws java.io.IOException
If you are not using security objects and are not interested in any Locale information, you can choose to not incur the additional network traffic produced by the initial flow.
This method turns on/off the production of this initial flow.
bSetInitialFlow
- Whether to produce initial flows or notpublic boolean isInitialFlow()
public java.util.Locale getGatewayLocale()
The Gateway Locale may be unknown because you have yet to open the Gateway, or because you have disabled the initial flow which communicates this information.
public java.lang.String getGatewayOs()
The Gateway JVM may be unknown because you have yet to open the Gateway, or because you have disabled the initial flow which communicates this information.
|
© Copyright IBM Corp. 1994, 1999 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |