|
||||||||||
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.WSReceiverServerConnector.WSReceiverServerConnector
public class WSReceiverServerConnector
The Web Service Receiver Server Connector is part of the IBM Tivoli Directory Integrator Web Services suite. This Connector is basically an HTTP Server specialized for servicing SOAP requests over HTTP. It operates in Server mode only.
Field Summary | |
---|---|
static java.lang.String |
ATTR_HOST
Host - attribute name. |
static java.lang.String |
ATTR_REQUESTED_RESOURCE
Requested resource - attribute name. |
static java.lang.String |
ATTR_RESPONSE_CONTENT_TYPE
Response content type - attribute name. |
static java.lang.String |
ATTR_SOAP_ACTION
SOAP action - attribute name. |
static java.lang.String |
ATTR_SOAP_REQUEST
SOAP request - attribute name. |
static java.lang.String |
ATTR_SOAP_RESPONSE
SOAP response - attribute name. |
static java.lang.String |
ATTR_WSDL_REQUESTED
WSDL requested - attribute name. |
protected java.lang.String |
CHARSET
Charset constant. |
static java.lang.String |
CONTENT_TYPE_HTML
Content type - "text/html" |
static java.lang.String |
CONTENT_TYPE_XML
Content type - "text/xml" |
protected static java.lang.String |
FALSE
Boolean value represented as String. |
protected java.lang.String |
mInputXMLType
Specifies the type of the SOAP Request message input to the AssemblyLine |
protected boolean |
mNoNextEntry
Next entry is not available. |
protected int |
mPort
The port number the service is running (listening) on. |
protected boolean |
mRequireClientAuth
If checked clients will be required to provide SSL certificates for client authentication |
protected java.lang.String |
mReturnXMLType
Specifies the type of the SOAP Response message output from the AssemblyLine |
protected javax.xml.parsers.SAXParserFactory |
mSAXParserFactory
SAXParserFactory |
protected WSReceiverServerConnector |
mServerConnector
Server Connector |
protected java.net.ServerSocket |
mServerSocket
Server socket. |
protected java.net.Socket |
mSocket
Client socket |
protected boolean |
mTagOpEntry
Specifies whether the $operation attribute of the op-entry is set to the name of the web service operation. |
protected boolean |
mUseSSL
If checked the server will only accept SSL (https) connections |
protected static java.lang.String |
PARAM_INPUT_TYPE
Parameter name.Specifies the type of the SOAP Request message input to the AssemblyLine |
protected static java.lang.String |
PARAM_REQUIRE_CLIENT_AUTH
Parameter name.Is client authentication required.If checked clients will be required to provide SSL certificates for client authentication |
protected static java.lang.String |
PARAM_RETURN_XML_TYPE
Parameter name.Parameter name.Specifies the type of the SOAP Response message output from the AssemblyLine |
protected static java.lang.String |
PARAM_SYSTEM_TCP_BACKLOG
System backlog. |
protected static java.lang.String |
PARAM_TAG_OPENTRY
Parameter name.Specifies whether the $operation attribute of the op-entry is set to the name of the web service operation. |
protected static java.lang.String |
PARAM_TCP_BACKLOG
Parameter name.Backlog. |
protected static java.lang.String |
PARAM_TCP_PORT
Parameter name.The port number the service is running (listening) on |
protected static java.lang.String |
PARAM_USE_SSL
Parameter name.Enable/Disable SSL.If checked the server will only accept SSL (https) connections |
protected static java.lang.String |
TRUE
Boolean value represented as String. |
static java.lang.String |
WSDL_ID
WSDL suffix |
static java.lang.String |
XML_DOM
Public constant representing XML DOM format. |
static java.lang.String |
XML_STRING
Public constant representing XML String format. |
Fields inherited from class com.ibm.di.connector.Connector |
---|
ALL_MODES, myLog, PROPERTY_MESSAGE, PROPERTY_READER, PROPERTY_WRITER |
Constructor Summary | |
---|---|
WSReceiverServerConnector()
Default constructor |
Method Summary | |
---|---|
protected java.lang.String |
getAuthorization(java.lang.StringBuffer headers)
Gets the username and password return by client. |
protected java.lang.StringBuffer |
getHeaders()
Gets the header information send by client. |
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. |
WSReceiverServerConnector |
getServerConnector()
|
java.lang.String |
getVersion()
Version information. |
protected void |
httpAuthenticationRequest(java.lang.String realm)
Send request to client to authenticate. |
void |
initialize(java.lang.Object obj)
Initialize the connector. |
boolean |
isAccepting()
|
boolean |
isTerminating()
|
java.lang.String |
readFile(java.lang.String aFileName)
This method is supposed to be used in scripts for reading WSDL files. |
protected java.lang.String |
readLine()
Read line from client. |
void |
replyEntry(Entry conn)
Send a reply to the connector. |
void |
setServerConnector(WSReceiverServerConnector aServerConnector)
Sets the WSReceiverServerConnector |
void |
terminate()
Terminate the connector. |
void |
terminateServer()
Interrupts and shuts down the Connector if it runs in Server Mode. |
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, querySchema, reconnect, registerScriptBeans, selectEntries, setConfiguration, setContext, setCurrent, setLog, setMaxDuplicateEntries, setName, setParam, setRSInterface |
Field Detail |
---|
protected static final java.lang.String PARAM_TCP_PORT
protected static final java.lang.String PARAM_TCP_BACKLOG
protected static final java.lang.String PARAM_SYSTEM_TCP_BACKLOG
protected static final java.lang.String PARAM_RETURN_XML_TYPE
protected static final java.lang.String PARAM_INPUT_TYPE
protected static final java.lang.String PARAM_USE_SSL
protected static final java.lang.String PARAM_REQUIRE_CLIENT_AUTH
protected static final java.lang.String PARAM_TAG_OPENTRY
protected int mPort
protected java.lang.String mInputXMLType
protected java.lang.String mReturnXMLType
protected boolean mUseSSL
protected boolean mRequireClientAuth
protected boolean mTagOpEntry
protected java.net.Socket mSocket
Socket
protected java.net.ServerSocket mServerSocket
ServerSocket
protected WSReceiverServerConnector mServerConnector
protected java.lang.String CHARSET
public static final java.lang.String ATTR_SOAP_RESPONSE
public static final java.lang.String ATTR_HOST
public static final java.lang.String ATTR_REQUESTED_RESOURCE
public static final java.lang.String ATTR_SOAP_REQUEST
public static final java.lang.String ATTR_SOAP_ACTION
public static final java.lang.String ATTR_WSDL_REQUESTED
public static final java.lang.String ATTR_RESPONSE_CONTENT_TYPE
public static final java.lang.String XML_STRING
public static final java.lang.String XML_DOM
public static final java.lang.String WSDL_ID
public static final java.lang.String CONTENT_TYPE_XML
public static final java.lang.String CONTENT_TYPE_HTML
protected static final java.lang.String TRUE
protected static final java.lang.String FALSE
protected boolean mNoNextEntry
protected javax.xml.parsers.SAXParserFactory mSAXParserFactory
SAXParserFactory
Constructor Detail |
---|
public WSReceiverServerConnector()
Method Detail |
---|
public void initialize(java.lang.Object obj) throws java.lang.Exception
initialize
in interface ConnectorInterface
initialize
in class Connector
obj
- User provided parameter
java.lang.Exception
- if the initialization of this connector fails.public ConnectorInterface getNextClient() throws java.lang.Exception
getNextClient
in interface ConnectorInterface
getNextClient
in class Connector
java.lang.Exception
- :
if the server socket is not specified.public WSReceiverServerConnector getServerConnector()
public void setServerConnector(WSReceiverServerConnector aServerConnector)
WSReceiverServerConnector
aServerConnector
- WSReceiverServerConnectorpublic void terminateServer() throws java.lang.Exception
terminateServer
in interface ConnectorInterface
terminateServer
in class Connector
java.lang.Exception
- if an error occurspublic void terminate() throws java.lang.Exception
terminate
in interface ConnectorInterface
terminate
in class Connector
java.lang.Exception
- if an error occurspublic Entry getNextEntry() throws java.lang.Exception
getNextEntry
in interface ConnectorInterface
getNextEntry
in class Connector
java.lang.Exception
- if an error occursConnectorInterface.selectEntries()
public void replyEntry(Entry conn) throws java.lang.Exception
replyEntry
in interface ConnectorInterface
replyEntry
in class Connector
conn
- Entry
java.lang.Exception
- if an error occurspublic boolean isAccepting()
public boolean isTerminating()
public java.lang.String getVersion()
VersionInfoInterface
getVersion
in interface VersionInfoInterface
public java.lang.String readFile(java.lang.String aFileName) throws java.io.IOException
aFileName
- String
java.io.IOException
- if an I/O error occursprotected java.lang.String getAuthorization(java.lang.StringBuffer headers) throws java.io.IOException
headers
- HTTP headers sent by client.
java.io.IOException
protected java.lang.StringBuffer getHeaders() throws java.io.IOException
java.io.IOException
protected java.lang.String readLine() throws java.io.IOException
java.io.IOException
protected void httpAuthenticationRequest(java.lang.String realm) throws java.io.IOException
realm
- String
java.io.IOException
- if an I/O error occurs
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |