net.sf.xbus.technical.ldap
Class LDAPSender

java.lang.Object
  extended by net.sf.xbus.technical.ldap.LDAPSender
All Implemented Interfaces:
ObjectSender, Sender

public class LDAPSender
extends java.lang.Object
implements Sender, ObjectSender

The LDAPSender sends requests to a LDAP server and returns the results. The request and the response are XML documents.

Please refer to the documentation about the structure of the XML documents.


Constructor Summary
LDAPSender(XBUSSystem destination)
          The constructor stores the destination.
 
Method Summary
 java.lang.Object execute(java.lang.String function, java.lang.Object callData)
          Sends requests to the LDAP server and return the results.
 java.lang.String getType()
          A Sender can send data either as a String or as an Object to the neighboring system.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LDAPSender

public LDAPSender(XBUSSystem destination)
The constructor stores the destination.

Parameters:
destination - definition of the interface in standard.conf
Throws:
XException - never thrown
Method Detail

execute

public java.lang.Object execute(java.lang.String function,
                                java.lang.Object callData)
                         throws XException
Sends requests to the LDAP server and return the results. Currently only searching for entries is implemented.

Specified by:
execute in interface ObjectSender
Parameters:
function - not used
callData - XML document containing requests
Returns:
XML document with results
Throws:
XException - in case of errors

getType

public java.lang.String getType()
Description copied from interface: Sender
A Sender can send data either as a String or as an Object to the neighboring system.
When working with Strings the Sender must fulfill two preconditions: When working with Objects the Sender must also fulfill two preconditions:

Specified by:
getType in interface Sender
Returns:
Constants.TYPE_OBJECT
See Also:
Sender.getType()