|
LDAP Classes Implements Java LDAP |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.novell.ldap.LDAPSearchResults
An LDAPSearchResults object is returned from a synchronous search operation. It provides access to all results received during the operation (entries and exceptions).
Sample Code: Search.java
LDAPConnection.search(java.lang.String, int, java.lang.String, java.lang.String[], boolean)
,
Serialized FormConstructor Summary | |
LDAPSearchResults()
This constructor was added to support default Serialization |
Method Summary | |
int |
getCount()
Returns a count of the items in the search result. |
LDAPControl[] |
getDeSerializedControls()
Returns LDAP Server Controls after De-serialization |
java.util.Vector |
getDeSerializedEntries()
Returns LDAP Entries after De-serialization |
LDAPControl[] |
getResponseControls()
Returns the latest server controls returned by the server in the context of this search request, or null if no server controls were returned. |
boolean |
hasMore()
Reports if there are more search results. |
LDAPEntry |
next()
Returns the next result as an LDAPEntry. |
static java.lang.Object |
readDSML(java.io.InputStream input)
This method is used to deserialize the DSML encoded representation of this class. |
void |
readExternal(java.io.ObjectInput in)
Reads the serialized object from the underlying input stream. |
void |
writeExternal(java.io.ObjectOutput out)
Writes the object state to a stream in XML format |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public LDAPSearchResults()
Method Detail |
public int getCount()
Returns a count of the entries and exceptions remaining in the object. If the search was submitted with a batch size greater than zero, getCount reports the number of results received so far but not enumerated with next(). The behavior is same for search submitted with batch size equals to 0.
For blocking calls with batch size equals to 0, get count returns the count of all the expected results from search for first time once after enumerated with hasMore(). The subsequent iterations decrement count value for both blocking and non-blocking calls.
public LDAPControl[] getResponseControls()
public boolean hasMore()
public LDAPEntry next() throws LDAPException
If automatic referral following is disabled or if a referral was not followed, next() will throw an LDAPReferralException when the referral is received.
LDAPException
- A general exception which includes an error
message and an LDAP error code.
LDAPReferralException
- A referral was received and not
followed.public static java.lang.Object readDSML(java.io.InputStream input) throws java.io.IOException
input
- InputStream for the DSML formatted data.
java.io.IOException
- when serialization fails.public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
out
- The ObjectOutput stream where the Object in XML format
is being written to
java.io.IOException
- - If I/O errors occurpublic void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
in
- The ObjectInput stream where the Serialized Object is being read from
java.io.IOException
- - If I/O errors occur
java.lang.ClassNotFoundException
- - If the class for an object being restored
cannot be found.public java.util.Vector getDeSerializedEntries()
public LDAPControl[] getDeSerializedControls()
|
LDAP Classes Implements Java LDAP |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |