com.ibm.di.connector
Class OldHTTPCLient

java.lang.Object
  extended by com.ibm.di.connector.Connector
      extended by com.ibm.di.connector.OldHTTPCLient
All Implemented Interfaces:
ConnectorInterface, VersionInfoInterface

Deprecated.

@Deprecated
public class OldHTTPCLient
extends Connector
implements ConnectorInterface

OldHTTPCLient provides a client side HTTP connection where the user can use it in Iterator, Lookup and AddOnly mode. A parser may be specified in which case the contents sent/received on the HTTP connection is parsed. If no parser is specified then all data is conveyed through the entry object. All HTTP headers from the server is entered as is prefixing their names with "http.". The "body" attribute contains the result from the server and also provides the data to be submitted to the server if no parser is specified.


Field Summary
 
Fields inherited from class com.ibm.di.connector.Connector
ALL_MODES, myLog, PROPERTY_MESSAGE, PROPERTY_READER, PROPERTY_WRITER
 
Constructor Summary
OldHTTPCLient()
          Deprecated. 
 
Method Summary
 Entry findEntry(SearchCriteria search)
          Deprecated. 
 Entry getNextEntry()
          Deprecated. 
 String getVersion()
          Deprecated. 
 void initialize(Object o)
          Deprecated. 
 void putEntry(Entry entry)
          Deprecated. 
 void selectEntries()
          Deprecated. 
 
Methods inherited from class com.ibm.di.connector.Connector
addFindEntry, allModes, clearFindEntries, debug, debugMode, deleteEntry, findEntry, getBoolean, getClassInstance, getConfiguration, getContext, getFindEntryCount, getFirstFindEntry, getLog, getMaxDuplicateEntries, getModes, getModes, getName, getNextClient, getNextFindEntry, getParam, getParser, getProperty, getPushbackEntry, getRawConnectorConfiguration, getRSInterface, getUI, hasConfigValue, hasParser, initParser, isDeltaSupported, isExceptionFatal, isIOException, logError, logmsg, modEntry, modEntry, pushback, queryOperations, queryReply, querySchema, queryTables, reconnect, reconnect, registerScriptBeans, replyEntry, setConfiguration, setContext, setCurrent, setDebugMode, setLog, setMaxDuplicateEntries, setModes, setModes, setName, setParam, setParser, setProperty, setRSInterface, terminate, terminateServer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.ibm.di.connector.ConnectorInterface
deleteEntry, getConfiguration, getContext, getFindEntryCount, getFirstFindEntry, getMaxDuplicateEntries, getName, getNextClient, getNextFindEntry, getParam, getPushbackEntry, getRawConnectorConfiguration, isDeltaSupported, isExceptionFatal, isIOException, modEntry, modEntry, pushback, queryOperations, queryReply, querySchema, reconnect, registerScriptBeans, replyEntry, setConfiguration, setContext, setCurrent, setLog, setMaxDuplicateEntries, setName, setParam, setRSInterface, terminate, terminateServer
 

Constructor Detail

OldHTTPCLient

@Deprecated
public OldHTTPCLient()
Deprecated. 

Constructor

Method Detail

initialize

@Deprecated
public void initialize(Object o)
                throws Exception
Deprecated. 

This function is called once after the connector configuration file has been provided by the caller. Always call super class to load parser etc...

Specified by:
initialize in interface ConnectorInterface
Overrides:
initialize in class Connector
Parameters:
o - ignored
Throws:
Exception - never

selectEntries

@Deprecated
public void selectEntries()
                   throws Exception
Deprecated. 

This function is called when the connector operates in Iterator mode inside an assembly line.

Specified by:
selectEntries in interface ConnectorInterface
Overrides:
selectEntries in class Connector
Throws:
Exception - never

getNextEntry

@Deprecated
public Entry getNextEntry()
                   throws Exception
Deprecated. 

This function is called to retreive the next entry from the connector. When there are no more entries to retrieve the function should return a null value indicating a logical end of file. If the connector has no parser this will never happen since we always make a HTTP connection every time getNextEntry is called.

Specified by:
getNextEntry in interface ConnectorInterface
Overrides:
getNextEntry in class Connector
Returns:
next entry
Throws:
Exception
See Also:
ConnectorInterface.selectEntries()

putEntry

@Deprecated
public void putEntry(Entry entry)
              throws Exception
Deprecated. 

The putEntry function is called during AddOnly or Update operations.

Specified by:
putEntry in interface ConnectorInterface
Overrides:
putEntry in class Connector
Parameters:
entry - entry to be written
Throws:
Exception - if an error occurs

findEntry

@Deprecated
public Entry findEntry(SearchCriteria search)
                throws Exception
Deprecated. 

The findEntry function is called during Lookup or Update operations. Since this connector implements both findEntry and putEntry it is technically possible to use this connector in Update mode. However, the connector does not support the modEntry function so this will eventually fail.

Specified by:
findEntry in interface ConnectorInterface
Overrides:
findEntry in class Connector
Parameters:
search - search criteria
Returns:
the single entry found or null
Throws:
Exception - if an error occurs

getVersion

@Deprecated
public String getVersion()
Deprecated. 

Return version information

Specified by:
getVersion in interface VersionInfoInterface
Returns:
version info