|
|||||||||||
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 String |
ATTR_HOST
Host - attribute name. |
static String |
ATTR_REQUESTED_RESOURCE
Requested resource - attribute name. |
static String |
ATTR_RESPONSE_CONTENT_TYPE
Response content type - attribute name. |
static String |
ATTR_SOAP_ACTION
SOAP action - attribute name. |
static String |
ATTR_SOAP_REQUEST
SOAP request - attribute name. |
static String |
ATTR_SOAP_RESPONSE
SOAP response - attribute name. |
static String |
ATTR_WSDL_REQUESTED
WSDL requested - attribute name. |
protected String |
CHARSET
Charset constant. |
static String |
CONTENT_TYPE_HTML
Content type - "text/html" |
static String |
CONTENT_TYPE_XML
Content type - "text/xml" |
protected static String |
FALSE
Boolean value represented as String. |
protected 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 String |
mReturnXMLType
Specifies the type of the SOAP Response message output from the AssemblyLine |
protected SAXParserFactory |
mSAXParserFactory
SAXParserFactory |
protected WSReceiverServerConnector |
mServerConnector
Server Connector |
protected ServerSocket |
mServerSocket
Server socket. |
protected 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 String |
PARAM_INPUT_TYPE
Parameter name.Specifies the type of the SOAP Request message input to the AssemblyLine |
protected static 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 String |
PARAM_RETURN_XML_TYPE
Parameter name.Parameter name.Specifies the type of the SOAP Response message output from the AssemblyLine |
protected static String |
PARAM_SYSTEM_TCP_BACKLOG
System backlog. |
protected static 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 String |
PARAM_TCP_BACKLOG
Parameter name.Backlog. |
protected static String |
PARAM_TCP_PORT
Parameter name.The port number the service is running (listening) on |
protected static String |
PARAM_USE_SSL
Parameter name.Enable/Disable SSL.If checked the server will only accept SSL (https) connections |
protected static String |
TRUE
Boolean value represented as String. |
static String |
WSDL_ID
WSDL suffix |
static String |
XML_DOM
Public constant representing XML DOM format. |
static 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 String |
getAuthorization(StringBuffer headers)
Gets the username and password return by client. |
protected 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()
|
String |
getVersion()
Version information. |
protected void |
httpAuthenticationRequest(String realm)
Send request to client to authenticate. |
void |
initialize(Object obj)
Initialize the connector. |
boolean |
isAccepting()
|
boolean |
isTerminating()
|
String |
readFile(String aFileName)
This method is supposed to be used in scripts for reading WSDL files. |
protected 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 String PARAM_TCP_PORT
protected static final String PARAM_TCP_BACKLOG
protected static final String PARAM_SYSTEM_TCP_BACKLOG
protected static final String PARAM_RETURN_XML_TYPE
protected static final String PARAM_INPUT_TYPE
protected static final String PARAM_USE_SSL
protected static final String PARAM_REQUIRE_CLIENT_AUTH
protected static final String PARAM_TAG_OPENTRY
protected int mPort
protected String mInputXMLType
protected String mReturnXMLType
protected boolean mUseSSL
protected boolean mRequireClientAuth
protected boolean mTagOpEntry
protected Socket mSocket
Socket
protected ServerSocket mServerSocket
ServerSocket
protected WSReceiverServerConnector mServerConnector
protected String CHARSET
public static final String ATTR_SOAP_RESPONSE
public static final String ATTR_HOST
public static final String ATTR_REQUESTED_RESOURCE
public static final String ATTR_SOAP_REQUEST
public static final String ATTR_SOAP_ACTION
public static final String ATTR_WSDL_REQUESTED
public static final String ATTR_RESPONSE_CONTENT_TYPE
public static final String XML_STRING
public static final String XML_DOM
public static final String WSDL_ID
public static final String CONTENT_TYPE_XML
public static final String CONTENT_TYPE_HTML
protected static final String TRUE
protected static final String FALSE
protected boolean mNoNextEntry
protected SAXParserFactory mSAXParserFactory
SAXParserFactory
Constructor Detail |
---|
public WSReceiverServerConnector()
Method Detail |
---|
public void initialize(Object obj) throws Exception
initialize
in interface ConnectorInterface
initialize
in class Connector
obj
- User provided parameter
Exception
- if the initialization of this connector fails.public ConnectorInterface getNextClient() throws Exception
getNextClient
in interface ConnectorInterface
getNextClient
in class Connector
Exception
- : if the server socket is not specified.public WSReceiverServerConnector getServerConnector()
public void setServerConnector(WSReceiverServerConnector aServerConnector)
WSReceiverServerConnector
aServerConnector
- WSReceiverServerConnectorpublic void terminateServer() throws Exception
terminateServer
in interface ConnectorInterface
terminateServer
in class Connector
Exception
- if an error occurspublic void terminate() throws Exception
terminate
in interface ConnectorInterface
terminate
in class Connector
Exception
- if an error occurspublic Entry getNextEntry() throws Exception
getNextEntry
in interface ConnectorInterface
getNextEntry
in class Connector
Exception
- if an error occursConnectorInterface.selectEntries()
public void replyEntry(Entry conn) throws Exception
replyEntry
in interface ConnectorInterface
replyEntry
in class Connector
conn
- Entry
Exception
- if an error occurspublic boolean isAccepting()
public boolean isTerminating()
public String getVersion()
VersionInfoInterface
getVersion
in interface VersionInfoInterface
public String readFile(String aFileName) throws IOException
aFileName
- String
IOException
- if an I/O error occursprotected String getAuthorization(StringBuffer headers) throws IOException
headers
- HTTP headers sent by client.
IOException
protected StringBuffer getHeaders() throws IOException
IOException
protected String readLine() throws IOException
IOException
protected void httpAuthenticationRequest(String realm) throws IOException
realm
- String
IOException
- if an I/O error occurs
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |