| java.lang.Object org.apache.harmony.jndi.provider.ldap.LdapClient
All known Subclasses: org.apache.harmony.jndi.provider.ldap.MockLdapClient,
LdapClient | public class LdapClient (Code) | | LdapClient is the actual class used to communicate with Ldap Server.
|
Inner Class :class Dispatcher extends Thread | |
Inner Class :static class Element | |
Inner Class :static class InputStreamWrap extends InputStream | |
Method Summary | |
public void | abandon(int messageId, Control[] controls) | public int | addPersistentSearch(SearchOp op) | public void | addUnsolicitedListener(UnsolicitedListener listener) | public void | close() | public LdapMessage | doOperation(LdapOperation operation, Control[] controls) Carry out the ldap operation encapsulated in operation with controls. | public LdapMessage | doOperation(int opIndex, ASN1Encodable request, ASN1Decodable response, Control[] controls) Send out the ldap operation in request with controls, and decode response
into LdapMessage. | public void | doOperationWithoutResponse(int opIndex, ASN1Encodable op, Control[] controls) | protected void | finalize() | public String | getAddress() | public int | getPort() | public Socket | getSocket() | public static LdapClient | newInstance(String host, int port, Hashtable, ?> envmt) | public void | removePersistentSearch(int messageId, Control[] controls) | public void | setSocket(Socket socket) |
LdapClient | public LdapClient()(Code) | | |
LdapClient | public LdapClient(SocketFactory factory, String address, int port) throws UnknownHostException, IOException(Code) | | Constructor for LdapClient.
Parameters: factory - used to construct socket through its factory method Parameters: address - the Internet Protocol (IP) address of ldap server Parameters: port - the port number of ldap server throws: UnknownHostException - if the host cannot be resolved throws: IOException - if an error occurs while instantiating the socket |
addUnsolicitedListener | public void addUnsolicitedListener(UnsolicitedListener listener)(Code) | | |
close | public void close()(Code) | | Close network connection, stop dispather thread, and release all other
resources
NOTE: invoke this method should be careful when this
LdapClient instance is shared by multi
LdapContext
|
doOperation | public LdapMessage doOperation(LdapOperation operation, Control[] controls) throws IOException(Code) | | Carry out the ldap operation encapsulated in operation with controls.
Parameters: operation - the ldap operation Parameters: controls - extra controls for some ldap operations the encapsulated response message from ldap server throws: IOException - |
doOperation | public LdapMessage doOperation(int opIndex, ASN1Encodable request, ASN1Decodable response, Control[] controls) throws IOException(Code) | | Send out the ldap operation in request with controls, and decode response
into LdapMessage.
Parameters: opIndex - Parameters: request - the ldap request Parameters: response - the ldap response Parameters: controls - extra controls for some ldap operations the encapsulated response message from ldap server throws: IOException - |
finalize | protected void finalize()(Code) | | |
getPort | public int getPort()(Code) | | |
|
|