com.bankframe.ei.txnhandler.connector.http
Class HTTPConnection

java.lang.Object
  |
  +--com.bankframe.ei.txnhandler.connector.http.HTTPConnection
All Implemented Interfaces:
EConnection

public class HTTPConnection
extends java.lang.Object
implements EConnection

This class is the connection class for the HTTP Connector.


Constructor Summary
HTTPConnection(java.lang.String properties, HTTPConnectionManager connectionManager)
          Constructor.
 
Method Summary
 void close()
          Initiates close of the connection handle at the application level.
 void httpManagedConnection()
          This method configures the properties for the HTTPManagedConnection.
 org.w3c.dom.Document invoke(org.w3c.dom.Document requestDocument)
          This method makes the HTTP call.
 java.lang.Object post(java.lang.Object arg0)
          This method posts a transaction to an Enterprise Information System.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HTTPConnection

public HTTPConnection(java.lang.String properties,
                      HTTPConnectionManager connectionManager)
Constructor.

Parameters:
properties - the String containing the connector properties
Method Detail

httpManagedConnection

public void httpManagedConnection()
This method configures the properties for the HTTPManagedConnection.


close

public void close()
Description copied from interface: EConnection
Initiates close of the connection handle at the application level. A client should not use a closed connection to interact with a Host System.

Specified by:
close in interface EConnection
See Also:
EConnection.close()

post

public java.lang.Object post(java.lang.Object arg0)
                      throws ProcessingErrorException
Description copied from interface: EConnection
This method posts a transaction to an Enterprise Information System. The object passed in must adhere to the format required by the implementation of the Connector (ie. an MQSeries Connector requires a byte array to be passed in as a transaction). All objects passed to the post method are required to be serializable so that the Connector can be run in OffLine mode.

Specified by:
post in interface EConnection
Parameters:
arg0 - An object representing a transaction that will be forwarded on to the host system by the Connector imnplementation.
Returns:
The result object of a successful transaction execution. Null otherwise.
Throws:
ProcessingErrorException - if an error occurs
See Also:
EConnection.post(Object)

invoke

public org.w3c.dom.Document invoke(org.w3c.dom.Document requestDocument)
                            throws ProcessingErrorException
This method makes the HTTP call.

Returns:
Document the HTTP response
Throws:
ProcessingErrorException - if processing fails


Copyright © 2005 Siebel Systems, Inc. All rights reserved.