CICS® Transaction Gateway Programming Reference V3.1

com.ibm.ctg.client
Class HttpsJavaGateway

com.ibm.ctg.client.HttpsJavaGateway

public class HttpsJavaGateway


Method Summary
(package private)  void close()
          Closes the connection to the CICS Gateway for Java.
 int flow(GatewayRequest gatRequest)
          Calls into our internal flow routine, passing the request object as both source of the request and as the object the reply is put into
protected  int flow(GatewayRequest gatRequest, GatewayRequest gatReplyInto)
          Flows the specified GatewayRequest to the CICS Gateway for Java and then waits for the reply.
(package private)  void open()
          Opens a HttpsJavaGateway.
 

Method Detail

open

void open()
    throws java.io.IOException
Opens a HttpsJavaGateway. Since (secure) HTTP is a non-persistent connection a new connection is made for each request, not when the object is logically opened. However, since generally a initial flow is made when the Gateway is opened, a connection will probably made when we are opened.
Throws:
java.io.IOException - If an error occurs when creating the TcpJavaGateway

flow

public int flow(GatewayRequest gatRequest)
         throws java.io.IOException
Calls into our internal flow routine, passing the request object as both source of the request and as the object the reply is put into
Parameters:
gatRequest - GatewayRequest object containing the request
Returns:
Return code from this flow operation
Throws:
java.io.IOException - If a network I/O error occurs during the operation

flow

protected int flow(GatewayRequest gatRequest,
                   GatewayRequest gatReplyInto)
            throws java.io.IOException
Flows the specified GatewayRequest to the CICS Gateway for Java and then waits for the reply. The reply is returned in the specified request object.

Since (secure) HTTP is a non-persistent protocol, we create a new connection for each request that we flow. If the request is a synchronous request then we wait for the reply to return. If it is asynchronous we wait for the FLOW_CONFIRM, before starting a separate thread to wait for the real reply.

Parameters:
gatRequest - GatewayRequest object containing the request
gatRequest - GatewayRequest object to put the reply into
Returns:
Return code from this flow operation
Throws:
java.io.IOException - If a network I/O error occurs during the operation

close

void close()
     throws java.io.IOException
Closes the connection to the CICS Gateway for Java. If there were any other threads using this TcpJavaGateway who were in the middle of a flow operation, they will return with a error.
Throws:
java.io.IOException - If a network I/O error occurs during the operation

© Copyright IBM Corp. 1994, 1999