|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.di.connector.Connector
com.ibm.di.connector.HTTPClientConnector
public class HTTPClientConnector
HTTPCLientConnector 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 |
Fields inherited from interface com.ibm.di.server.CheckpointRestartInterface |
---|
RESTART_AFTER, RESTART_BEFORE, RESTART_IN |
Constructor Summary | |
---|---|
HTTPClientConnector()
Constructor |
Method Summary | |
---|---|
Entry |
findEntry(SearchCriteria search)
The findEntry function is called during Lookup or Update operations. |
Entry |
getCheckpointInformation()
Returns the state information for the connector. |
Entry |
getNextEntry()
This function is called to retreive the next entry from the connector. |
String |
getVersion()
Return version information |
void |
initialize(Object o)
This function is called once after the connector configuration file has been provided by the caller. |
boolean |
isCheckpointRestartEnabled(int mode)
Components that support checkpoint/restart for a specific mode must return TRUE from this method. |
void |
prepareForRestart(ALState state,
Entry restartInfo,
int restartPoint)
Notifies the connector of a restart situation. |
void |
putEntry(Entry entry)
The putEntry function is called during AddOnly or Update operations. |
Entry |
queryReply(Entry entry)
Performs a query/reply operations. |
void |
selectEntries()
This function is called when the connector operates in Iterator mode inside an assembly line. |
void |
terminate()
This function is called when the connector is no longer needed by the user (AssemblyLine, EventHandler or script). |
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, querySchema, reconnect, registerScriptBeans, replyEntry, setConfiguration, setContext, setCurrent, setLog, setMaxDuplicateEntries, setName, setParam, setRSInterface, terminateServer |
Constructor Detail |
---|
public HTTPClientConnector()
Method Detail |
---|
public void terminate() throws Exception
terminate
in interface ConnectorInterface
terminate
in class Connector
Exception
public void initialize(Object o) throws Exception
initialize
in interface ConnectorInterface
initialize
in class Connector
o
- User provided parameter
Exception
public void selectEntries() throws Exception
selectEntries
in interface ConnectorInterface
selectEntries
in class Connector
Exception
public Entry getNextEntry() throws Exception
getNextEntry
in interface ConnectorInterface
getNextEntry
in class Connector
Exception
Connector.selectEntries()
public void putEntry(Entry entry) throws Exception
putEntry
in interface ConnectorInterface
putEntry
in class Connector
entry
- The entry data to add
Exception
- Any exceptions thrown by the connector's underlying classespublic Entry queryReply(Entry entry) throws Exception
queryReply
in interface ConnectorInterface
queryReply
in class Connector
entry
- The data used in outgoing call
Exception
- Any exceptions thrown by the connector's underlying classespublic Entry findEntry(SearchCriteria search) throws Exception
findEntry
in interface ConnectorInterface
findEntry
in class Connector
search
- The search criteria used to locate the entry to be modified
Exception
- Any exceptions thrown by the connector's underlying classespublic boolean isCheckpointRestartEnabled(int mode)
isCheckpointRestartEnabled
in interface CheckpointRestartInterface
mode
- The mode the connector runs in
ServerConstants
public Entry getCheckpointInformation() throws Exception
getCheckpointInformation
in interface CheckpointRestartInterface
Exception
public void prepareForRestart(ALState state, Entry restartInfo, int restartPoint) throws Exception
prepareForRestart
in interface CheckpointRestartInterface
restartInfo
- The last entry object returned by the connector in the getCheckpointInformation methodstate
- The ALState object for the AssemblyLinerestartPoint
- The relative point where restarting is taking place (e.g. RESTART_BEFORE ...)
Exception
public String getVersion()
getVersion
in interface VersionInfoInterface
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |