|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.ldap.clients.LdapBind
org.apache.ldap.clients.LdapSearch
public class LdapSearch
Ldap client for the Search operation
| Constructor Summary | |
|---|---|
LdapSearch(java.lang.String[] args)
Create an instance of the search client and parse the command line arguments |
|
| Method Summary | |
|---|---|
static void |
main(java.lang.String[] args)
The main will call trhe bind operation first. |
void |
printAttributeList(javax.naming.NamingEnumeration a_attributeList)
Print each attribute and the values for each attribute from the list passed into the method. |
void |
printAttributeNames(javax.naming.NamingEnumeration a_attributeList)
Print each attribute name only. |
java.lang.String |
requestToString(SearchRequest a_request)
|
void |
search(int id)
Create the Search Request encoded message and send it to the server, then process each response from the server |
| Methods inherited from class org.apache.ldap.clients.LdapBind |
|---|
bind, connect, disconnect, enableLogging, getDecoder, getEncoder, getIn, getLog, getModule, getOpts, getOut, getSocket, setDecoder, setEncoder, setIn, setLog, setModule, setOpts, setOut, setSocket |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LdapSearch(java.lang.String[] args)
args - Command line arguments| Method Detail |
|---|
public java.lang.String requestToString(SearchRequest a_request)
public void printAttributeNames(javax.naming.NamingEnumeration a_attributeList)
a_attributeList - NamingEnumeration of Attributespublic void printAttributeList(javax.naming.NamingEnumeration a_attributeList)
a_attributeList - NamingEnumeration of Attributespublic void search(int id)
id - session message idpublic static void main(java.lang.String[] args)
args - Command line string
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||