|
||||||||||
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.DSMLv2SOAPServerConnector
public class DSMLv2SOAPServerConnector
The DSMLv2 SOAP Server Connector implements the DSMLv2 standard (http://www.oasis-open.org/committees/dsml/docs/DSMLv2.doc). It listens for DSMLv2 requests over HTTP. Once it receives the request, it parses the request and sends the parsed request to the AssemblyLine workflow to process it. The result is sent back to the client over HTTP. SOAP DSML binding is supported by the Connector.
Field Summary | |
---|---|
static java.lang.String |
ATTR_NAME_HTTP_BODY
An attribute name: "http.body" |
static java.lang.String |
ATTR_NAME_HTTP_CHARACTER_SET
An attribute name: "characterSet" |
static java.lang.String |
ATTR_NAME_HTTP_CONTENT_TYPE
An attribute name: "http.Content-Type" |
static java.lang.String |
ATTR_NAME_HTTP_REMOTE_PASSWORD
An attribute name: "http.remote_pass" |
static java.lang.String |
ATTR_NAME_HTTP_REMOTE_USER
An attribute name: "http.remote_user" |
static java.lang.String |
HTTP_BAD_REQUEST
HTTP Error String: "400 Bad Request" |
static java.lang.String |
HTTP_INTERNAL_SERVER_ERROR
HTTP Error String: "500 Internal Server Error" |
static java.lang.String |
HTTP_PARAM_PARAMETER_USE_CHUNKS
A parameter name: "msgChunked" |
static java.lang.String |
PARAM_REQUIRE_CLIENT_AUTH
A parameter name: "needClientAuth" |
static java.lang.String |
PARAM_SYSTEM_TCP_BACKLOG
A parameter name: "com.ibm.di.tcp.backlog" |
static java.lang.String |
PARAM_TCP_BACKLOG
A parameter name: "backlog" |
static java.lang.String |
PARAMETER_AUTH_REALM
A parameter name: "authRealm" |
static java.lang.String |
PARAMETER_BINARY_ATTRIBUTES
A parameter name: "binaryAttributes" |
static java.lang.String |
PARAMETER_DSML_PORT
A parameter name: "dsmlPort" |
static java.lang.String |
PARAMETER_HTTP_BASIC_AUTH
A parameter name: "httpAuth" |
static java.lang.String |
PARAMETER_SOAPBINDING
A parameter name: "soapbinding" |
static java.lang.String |
PARAMETER_USE_SSL
A parameter name: "useSSL" |
Fields inherited from class com.ibm.di.connector.Connector |
---|
ALL_MODES, myLog, PROPERTY_MESSAGE, PROPERTY_READER, PROPERTY_WRITER |
Constructor Summary | |
---|---|
DSMLv2SOAPServerConnector()
Default constructor. |
Method Summary | |
---|---|
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()
Gets the next DSML request, sent by the client. |
java.lang.String |
getPassword()
Retrieves password. |
DSMLv2SOAPServerConnector |
getServerConnector()
Retrieves the server connector. |
java.lang.String |
getUserName()
Retrieves username. |
java.lang.String |
getVersion()
Version information. |
void |
initialize(java.lang.Object aObject)
Initializes the connector. |
boolean |
isAccepting()
Checks whether connector is waiting for a client connection |
boolean |
isTerminating()
|
void |
putEntry(Entry aEntry)
Sets an entry object in the set of results that will be send back to the client when the replyEntry(Entry) method is called. |
void |
rejectClientAuthentication()
Reject the client authentication, send the Forbidden page and terminate the connection. |
void |
replyEntry(Entry aResponseEntry)
If the connector is not configured for communicating with clients using chunks then this method writes the entries stored in the local result set as a whole DSML search response message back to the client. |
void |
setServerConnector(DSMLv2SOAPServerConnector aServerConnector)
Sets the server connector for this connector. |
void |
terminate()
Terminate the connector. |
void |
terminateServer()
This method tries to terminate the server by setting the termination flag for the connector returned by getServerConnector and immediately connecting to its port (which should fail). |
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, queryOperations, queryReply, querySchema, reconnect, registerScriptBeans, selectEntries, setConfiguration, setContext, setCurrent, setLog, setMaxDuplicateEntries, setName, setParam, setRSInterface |
Field Detail |
---|
public static final java.lang.String PARAMETER_DSML_PORT
public static final java.lang.String PARAM_TCP_BACKLOG
public static final java.lang.String PARAM_SYSTEM_TCP_BACKLOG
public static final java.lang.String PARAMETER_USE_SSL
public static final java.lang.String PARAM_REQUIRE_CLIENT_AUTH
public static final java.lang.String PARAMETER_BINARY_ATTRIBUTES
public static final java.lang.String PARAMETER_SOAPBINDING
public static final java.lang.String PARAMETER_HTTP_BASIC_AUTH
public static final java.lang.String PARAMETER_AUTH_REALM
public static final java.lang.String HTTP_PARAM_PARAMETER_USE_CHUNKS
public static final java.lang.String HTTP_BAD_REQUEST
public static final java.lang.String HTTP_INTERNAL_SERVER_ERROR
public static final java.lang.String ATTR_NAME_HTTP_REMOTE_USER
public static final java.lang.String ATTR_NAME_HTTP_REMOTE_PASSWORD
public static final java.lang.String ATTR_NAME_HTTP_BODY
public static final java.lang.String ATTR_NAME_HTTP_CONTENT_TYPE
public static final java.lang.String ATTR_NAME_HTTP_CHARACTER_SET
Constructor Detail |
---|
public DSMLv2SOAPServerConnector()
Method Detail |
---|
public void initialize(java.lang.Object aObject) throws java.lang.Exception
initialize
in interface ConnectorInterface
initialize
in class Connector
aObject
- if this is an instance of Socket
then that object is
used as a connection with the client.
java.lang.Exception
- if the url parameter is missing or the protocol used is
neither "http" nor "https".public DSMLv2SOAPServerConnector getServerConnector()
public void setServerConnector(DSMLv2SOAPServerConnector aServerConnector)
aServerConnector
- the server connector.public boolean isAccepting()
public boolean isTerminating()
public void terminate() throws java.lang.Exception
terminate
in interface ConnectorInterface
terminate
in class Connector
java.lang.Exception
- if a termination 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 ConnectorInterface getNextClient() throws java.lang.Exception
getNextClient
in interface ConnectorInterface
getNextClient
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 communication/parsing error occurs.ConnectorInterface.selectEntries()
public void putEntry(Entry aEntry) throws java.lang.Exception
replyEntry(Entry)
method is called. If the
connector is configured to transport the data as chunks then the entry
will be serialized as a DSML message and will be send right to the
client.
putEntry
in interface ConnectorInterface
putEntry
in class Connector
aEntry
- The entry object that will be sent as a part of the result to
the client.
java.lang.Exception
- if an error occurs.public void replyEntry(Entry aResponseEntry) throws java.lang.Exception
replyEntry
in interface ConnectorInterface
replyEntry
in class Connector
aResponseEntry
- the entry that will be sent back to the client.
java.lang.Exception
- if an error occurs.public java.lang.String getUserName()
public java.lang.String getPassword()
public void rejectClientAuthentication() throws java.lang.Exception
java.lang.Exception
- if an error occurs.public java.lang.String getVersion()
getVersion
in interface VersionInfoInterface
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |