|
||||||||||
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 java.lang.String |
ATTR_AUTH_RESULT
Whether the authentication of the client is successful. |
static java.lang.String |
ATTR_FAULT_CODE
SOAP fault code (the local part of the qualified name). |
static java.lang.String |
ATTR_FAULT_CODE_NS_PREFIX
SOAP fault code (the namespace prefix). |
static java.lang.String |
ATTR_FAULT_CODE_NS_URI
SOAP fault code (the namespace URI). |
static java.lang.String |
ATTR_FAULT_DETAIL
SOAP fault detail. |
static java.lang.String |
ATTR_FAULT_NODE
SOAP fault node. |
static java.lang.String |
ATTR_FAULT_REASON
SOAP fault reason. |
static java.lang.String |
ATTR_FAULT_ROLE
SOAP fault role. |
static java.lang.String |
ATTR_OPERATION_CARRIER
This Attribute carries the name of the AL Operation. |
static java.lang.String |
ATTR_SOAP_HEADER
The SOAP header of the request/response message. |
static java.lang.String |
PARAM_SERVICE
The name of the service description inside the WSDL document. |
static java.lang.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 java.util.Map<java.lang.String,java.lang.String> |
getHTTPHeaders(Entry httpEntry)
|
||||||||
ConnectorInterface |
getNextClient()
Server mode - return a clone of self that handles the next client instance when running in server mode. The returned connector may be used in its own thread to handle a "client" request so if the returned instance is returned more than once it must be thread safe. |
||||||||
Entry |
getNextEntry()
Returns the next Entry from the connector. The entry is populated with attributes and values from the next entry in the input set. Example: var ctor = input.getConnector(); var entry = ctor.getNextEntry(); for (; entry != null; entry = ctor.getNextEntry()) { main.logmsg("Read entry..."); main.dumpEntry(entry); } |
||||||||
static ResourceHash |
getResHash()
|
||||||||
java.lang.String |
getVersion()
Version information. |
||||||||
void |
initialize(java.lang.Object obj)
Initialize the Connector. |
||||||||
boolean |
isTerminating()
|
||||||||
java.lang.Object |
querySchema(java.lang.Object input)
This function translates to whatever means a connector has to discover schema for a connection. The connector may implement this, in which case a Vector of Entry objects is returned for each column/attribute it discovered. For a database connector this would typically be column names and their attributes. Each Entry in the Vector returned should contain the following attributes:
|
||||||||
void |
replyEntry(Entry conn)
Send a reply to the connector. |
||||||||
void |
terminate()
Terminate the connector. This function closes all connection and releases all resources used by the connector. This function also calls the parser's closeParser() method if a parser is active. |
||||||||
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 java.lang.String PARAM_WSDL
public static final java.lang.String PARAM_SERVICE
public static final java.lang.String ATTR_OPERATION_CARRIER
public static final java.lang.String ATTR_SOAP_HEADER
public static final java.lang.String ATTR_AUTH_RESULT
public static final java.lang.String ATTR_FAULT_CODE
public static final java.lang.String ATTR_FAULT_CODE_NS_URI
public static final java.lang.String ATTR_FAULT_CODE_NS_PREFIX
public static final java.lang.String ATTR_FAULT_REASON
public static final java.lang.String ATTR_FAULT_NODE
public static final java.lang.String ATTR_FAULT_ROLE
public static final java.lang.String ATTR_FAULT_DETAIL
Constructor Detail |
---|
public Axis2WSServerConnector()
Method Detail |
---|
public void initialize(java.lang.Object obj) throws java.lang.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.
java.lang.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 java.lang.Exception
getNextClient
in interface ConnectorInterface
getNextClient
in class Connector
java.lang.Exception
- if an error occurs.public void terminateServer() throws java.lang.Exception
terminateServer
in interface ConnectorInterface
terminateServer
in class Connector
java.lang.Exception
- if an error occurs.public void terminate() throws java.lang.Exception
terminate
in interface ConnectorInterface
terminate
in class Connector
java.lang.Exception
- if an error occurs.public Entry getNextEntry() throws java.lang.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
java.lang.Exception
- if an error occurs.ConnectorInterface.selectEntries()
public void replyEntry(Entry conn) throws java.lang.Exception
replyEntry
in interface ConnectorInterface
replyEntry
in class Connector
conn
- the information as an Entry
java.lang.Exception
- if an error occurs.public java.lang.String getVersion()
getVersion
in interface VersionInfoInterface
public boolean isTerminating()
public static java.util.Map<java.lang.String,java.lang.String> getHTTPHeaders(Entry httpEntry)
httpEntry
- An Entry produced by the HTTP Server Connector.
public static ResourceHash getResHash()
public java.lang.Object querySchema(java.lang.Object input) throws java.lang.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
java.lang.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 |