|
|||||||||||
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.axis2.Axis2WSServerConnector
public class Axis2WSServerConnector
This Connector can be used to provide a SOAP web service, which is accessible via HTTP/HTTPS. It is named after the underlying Axis2 Java library: http://ws.apache.org/axis2/. The Connector uses the HTTP Server Connector as its HTTP transport.
Field Summary | |
---|---|
static String |
ATTR_AUTH_RESULT
Whether the authentication of the client is successful. |
static String |
ATTR_FAULT_CODE
SOAP fault code (the local part of the qualified name). |
static String |
ATTR_FAULT_CODE_NS_PREFIX
SOAP fault code (the namespace prefix). |
static String |
ATTR_FAULT_CODE_NS_URI
SOAP fault code (the namespace URI). |
static String |
ATTR_FAULT_DETAIL
SOAP fault detail. |
static String |
ATTR_FAULT_NODE
SOAP fault node. |
static String |
ATTR_FAULT_REASON
SOAP fault reason. |
static String |
ATTR_FAULT_ROLE
SOAP fault role. |
static String |
ATTR_OPERATION_CARRIER
This Attribute carries the name of the AL Operation. |
static String |
ATTR_SOAP_HEADER
The SOAP header of the request/response message. |
static String |
PARAM_SERVICE
The name of the service description inside the WSDL document. |
static String |
PARAM_WSDL
A URL of a WSDL document. |
Fields inherited from class com.ibm.di.connector.Connector |
---|
ALL_MODES, myLog, PROPERTY_MESSAGE, PROPERTY_READER, PROPERTY_WRITER |
Constructor Summary | |
---|---|
Axis2WSServerConnector()
Creates the Connector. |
Method Summary | |
---|---|
static Map<String,String> |
getHTTPHeaders(Entry httpEntry)
|
ConnectorInterface |
getNextClient()
Server mode - return a clone of self that handles the next client instance when running in server mode. |
Entry |
getNextEntry()
Returns the next Entry from the connector. |
static ResourceHash |
getResHash()
|
String |
getVersion()
Version information. |
void |
initialize(Object obj)
Initialize the Connector. |
boolean |
isTerminating()
|
Object |
querySchema(Object input)
This function translates to whatever means a connector has to discover schema for a connection. |
void |
replyEntry(Entry conn)
Send a reply to the connector. |
void |
terminate()
Terminate the connector. |
void |
terminateServer()
Stop servicing clients. |
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, findEntry, getConfiguration, getContext, getFindEntryCount, getFirstFindEntry, getMaxDuplicateEntries, getName, getNextFindEntry, getParam, getPushbackEntry, getRawConnectorConfiguration, isDeltaSupported, isExceptionFatal, isIOException, modEntry, modEntry, pushback, putEntry, queryOperations, queryReply, reconnect, registerScriptBeans, selectEntries, setConfiguration, setContext, setCurrent, setLog, setMaxDuplicateEntries, setName, setParam, setRSInterface |
Field Detail |
---|
public static final String PARAM_WSDL
public static final String PARAM_SERVICE
public static final String ATTR_OPERATION_CARRIER
public static final String ATTR_SOAP_HEADER
public static final String ATTR_AUTH_RESULT
public static final String ATTR_FAULT_CODE
public static final String ATTR_FAULT_CODE_NS_URI
public static final String ATTR_FAULT_CODE_NS_PREFIX
public static final String ATTR_FAULT_REASON
public static final String ATTR_FAULT_NODE
public static final String ATTR_FAULT_ROLE
public static final String ATTR_FAULT_DETAIL
Constructor Detail |
---|
public Axis2WSServerConnector()
Method Detail |
---|
public void initialize(Object obj) throws Exception
initialize
in interface ConnectorInterface
initialize
in class Connector
obj
- Pass an instance of the HTTPServerConnector, which handles a
particular client to initialize the Connector for a client
session. Otherwise the Connector will start an HTTP server and
will wait for clients.
Exception
- If the 'service' parameter is not specified and the WSDL
document contains multiple service descriptions. If the
'service' parameter is specified, but does not refer to an
existing service description from the WSDL document. A
problem while reading the WSDL document or an Axis2
related error.public ConnectorInterface getNextClient() throws Exception
getNextClient
in interface ConnectorInterface
getNextClient
in class Connector
Exception
- if an error occurs.public void terminateServer() throws Exception
terminateServer
in interface ConnectorInterface
terminateServer
in class Connector
Exception
- if an error occurs.public void terminate() throws Exception
terminate
in interface ConnectorInterface
terminate
in class Connector
Exception
- if an error occurs.public Entry getNextEntry() throws Exception
Example:
var ctor = input.getConnector(); var entry = ctor.getNextEntry(); for (; entry != null; entry = ctor.getNextEntry()) { main.logmsg("Read entry..."); main.dumpEntry(entry); }
getNextEntry
in interface ConnectorInterface
getNextEntry
in class Connector
Exception
- if an error occurs.ConnectorInterface.selectEntries()
public void replyEntry(Entry conn) throws Exception
replyEntry
in interface ConnectorInterface
replyEntry
in class Connector
conn
- the information as an Entry
Exception
- if an error occurs.public String getVersion()
getVersion
in interface VersionInfoInterface
public boolean isTerminating()
public static Map<String,String> getHTTPHeaders(Entry httpEntry)
httpEntry
- An Entry produced by the HTTP Server Connector.
public static ResourceHash getResHash()
public Object querySchema(Object input) throws Exception
Each Entry in the Vector returned should contain the following attributes:
Name | Value |
---|---|
name | The name of the column/attribute/field .... |
syntax | The syntax or expected value type |
size | If specified this will give the user a hint as to how long the field may be |
querySchema
in interface ConnectorInterface
querySchema
in class Connector
input
- The object on which to discover schema. This may be an Entry
or a string value
Exception
- if an error while retrieving the schema occurs.Entry
,
Vector
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |