|
|||||||||||
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 | |
---|---|
static java.lang.String[] |
CONNECTOR_MODES
Supported modes |
static java.lang.String |
PARAM_TIMEOUT
Parameter Name: "timeout" |
static java.lang.String |
VERSION_INFO
Version info |
Fields inherited from class com.ibm.di.connector.Connector |
---|
ALL_MODES, myLog, PROPERTY_MESSAGE, PROPERTY_READER, PROPERTY_WRITER |
Constructor Summary | |
---|---|
HTTPClientConnector()
Constructor |
Method Summary | |
---|---|
Entry |
findEntry(SearchCriteria search)
The findEntry function is called during Lookup operations. |
Entry |
getNextEntry()
This function is called to retrieve the next Entry from the connector. |
java.lang.String |
getVersion()
Version information. |
void |
initialize(java.lang.Object o)
This function is called once after the connector configuration file has been provided by the caller. |
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 AssemblyLine. |
void |
terminate()
This function is called when the connector is no longer needed by the user (AssemblyLine or script). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String[] CONNECTOR_MODES
public static final java.lang.String VERSION_INFO
public static final java.lang.String PARAM_TIMEOUT
Constructor Detail |
---|
public HTTPClientConnector()
Method Detail |
---|
public void terminate() throws java.lang.Exception
terminate
in interface ConnectorInterface
terminate
in class Connector
java.lang.Exception
- if an error occurs.public void initialize(java.lang.Object o) throws java.lang.Exception
initialize
in interface ConnectorInterface
initialize
in class Connector
o
- User provided parameter
java.lang.Exception
- if the initialization of this connector fails.public void selectEntries() throws java.lang.Exception
selectEntries
in interface ConnectorInterface
selectEntries
in class Connector
java.lang.Exception
- if an error occurs.public Entry getNextEntry() throws java.lang.Exception
getNextEntry
in interface ConnectorInterface
getNextEntry
in class Connector
java.lang.Exception
- if an error occurs.ConnectorInterface.selectEntries()
public void putEntry(Entry entry) throws java.lang.Exception
putEntry
in interface ConnectorInterface
putEntry
in class Connector
entry
- The entry data to add
java.lang.Exception
- if an error occurs.public Entry queryReply(Entry entry) throws java.lang.Exception
queryReply
in interface ConnectorInterface
queryReply
in class Connector
entry
- The data used in outgoing call
java.lang.Exception
- if an error occurs.public Entry findEntry(SearchCriteria search) throws java.lang.Exception
findEntry
in interface ConnectorInterface
findEntry
in class Connector
search
- The search criteria used to locate the entry to be modified
java.lang.Exception
- if an error occurs.public java.lang.String getVersion()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |