public class EntryToResponseCursor
extends org.apache.directory.api.ldap.model.cursor.AbstractCursor<org.apache.directory.api.ldap.model.message.Response>
implements org.apache.directory.api.ldap.model.cursor.SearchCursor
| Modifier and Type | Field and Description |
|---|---|
private boolean |
done
The done flag
|
private static boolean |
IS_DEBUG
Speedup for logs
|
private static org.slf4j.Logger |
LOG_CURSOR
A dedicated log for cursors
|
private int |
messageId
The messsage ID
|
private org.apache.directory.api.ldap.model.message.SearchResultDone |
searchDoneResp
a reference to hold the SearchResultDone response
|
private org.apache.directory.api.ldap.model.message.SearchRequest |
searchRequest
The search request
|
private org.apache.directory.api.ldap.model.cursor.Cursor<org.apache.directory.api.ldap.model.entry.Entry> |
wrapped
the underlying cursor
|
| Constructor and Description |
|---|
EntryToResponseCursor(org.apache.directory.api.ldap.model.message.SearchRequest searchRequest,
int messageId,
org.apache.directory.api.ldap.model.cursor.Cursor<org.apache.directory.api.ldap.model.entry.Entry> wrapped) |
| Modifier and Type | Method and Description |
|---|---|
void |
after(org.apache.directory.api.ldap.model.message.Response resp) |
void |
afterLast() |
boolean |
available() |
void |
before(org.apache.directory.api.ldap.model.message.Response resp) |
void |
beforeFirst() |
void |
close() |
void |
close(java.lang.Exception e) |
boolean |
first() |
org.apache.directory.api.ldap.model.message.Response |
get() |
org.apache.directory.api.ldap.model.entry.Entry |
getEntry() |
org.apache.directory.api.ldap.model.message.IntermediateResponse |
getIntermediate() |
org.apache.directory.api.ldap.model.message.Referral |
getReferral() |
org.apache.directory.api.ldap.model.message.SearchResultDone |
getSearchResultDone()
gives the SearchResultDone message received at the end of search results
|
boolean |
isClosed() |
boolean |
isDone() |
boolean |
isEntry() |
boolean |
isIntermediate() |
boolean |
isReferral() |
java.util.Iterator<org.apache.directory.api.ldap.model.message.Response> |
iterator() |
boolean |
last() |
boolean |
next() |
boolean |
previous() |
void |
setClosureMonitor(org.apache.directory.api.ldap.model.cursor.ClosureMonitor monitor) |
checkNotClosed, isAfterLast, isBeforeFirst, isFirst, isLast, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprivate static final org.slf4j.Logger LOG_CURSOR
private static final boolean IS_DEBUG
private org.apache.directory.api.ldap.model.cursor.Cursor<org.apache.directory.api.ldap.model.entry.Entry> wrapped
private org.apache.directory.api.ldap.model.message.SearchResultDone searchDoneResp
private boolean done
private int messageId
private org.apache.directory.api.ldap.model.message.SearchRequest searchRequest
public EntryToResponseCursor(org.apache.directory.api.ldap.model.message.SearchRequest searchRequest,
int messageId,
org.apache.directory.api.ldap.model.cursor.Cursor<org.apache.directory.api.ldap.model.entry.Entry> wrapped)
public java.util.Iterator<org.apache.directory.api.ldap.model.message.Response> iterator()
iterator in interface java.lang.Iterable<org.apache.directory.api.ldap.model.message.Response>iterator in class org.apache.directory.api.ldap.model.cursor.AbstractCursor<org.apache.directory.api.ldap.model.message.Response>public void after(org.apache.directory.api.ldap.model.message.Response resp)
throws org.apache.directory.api.ldap.model.exception.LdapException,
org.apache.directory.api.ldap.model.cursor.CursorException
after in interface org.apache.directory.api.ldap.model.cursor.Cursor<org.apache.directory.api.ldap.model.message.Response>org.apache.directory.api.ldap.model.exception.LdapExceptionorg.apache.directory.api.ldap.model.cursor.CursorExceptionpublic void afterLast()
throws org.apache.directory.api.ldap.model.exception.LdapException,
org.apache.directory.api.ldap.model.cursor.CursorException
afterLast in interface org.apache.directory.api.ldap.model.cursor.Cursor<org.apache.directory.api.ldap.model.message.Response>org.apache.directory.api.ldap.model.exception.LdapExceptionorg.apache.directory.api.ldap.model.cursor.CursorExceptionpublic boolean available()
available in interface org.apache.directory.api.ldap.model.cursor.Cursor<org.apache.directory.api.ldap.model.message.Response>public void before(org.apache.directory.api.ldap.model.message.Response resp)
throws org.apache.directory.api.ldap.model.exception.LdapException,
org.apache.directory.api.ldap.model.cursor.CursorException
before in interface org.apache.directory.api.ldap.model.cursor.Cursor<org.apache.directory.api.ldap.model.message.Response>org.apache.directory.api.ldap.model.exception.LdapExceptionorg.apache.directory.api.ldap.model.cursor.CursorExceptionpublic void beforeFirst()
throws org.apache.directory.api.ldap.model.exception.LdapException,
org.apache.directory.api.ldap.model.cursor.CursorException
beforeFirst in interface org.apache.directory.api.ldap.model.cursor.Cursor<org.apache.directory.api.ldap.model.message.Response>org.apache.directory.api.ldap.model.exception.LdapExceptionorg.apache.directory.api.ldap.model.cursor.CursorExceptionpublic void close()
close in interface org.apache.directory.api.ldap.model.cursor.Cursor<org.apache.directory.api.ldap.model.message.Response>close in class org.apache.directory.api.ldap.model.cursor.AbstractCursor<org.apache.directory.api.ldap.model.message.Response>public void close(java.lang.Exception e)
close in interface org.apache.directory.api.ldap.model.cursor.Cursor<org.apache.directory.api.ldap.model.message.Response>close in class org.apache.directory.api.ldap.model.cursor.AbstractCursor<org.apache.directory.api.ldap.model.message.Response>public boolean first()
throws org.apache.directory.api.ldap.model.exception.LdapException,
org.apache.directory.api.ldap.model.cursor.CursorException
first in interface org.apache.directory.api.ldap.model.cursor.Cursor<org.apache.directory.api.ldap.model.message.Response>org.apache.directory.api.ldap.model.exception.LdapExceptionorg.apache.directory.api.ldap.model.cursor.CursorExceptionpublic org.apache.directory.api.ldap.model.message.Response get()
throws org.apache.directory.api.ldap.model.cursor.CursorException
get in interface org.apache.directory.api.ldap.model.cursor.Cursor<org.apache.directory.api.ldap.model.message.Response>org.apache.directory.api.ldap.model.cursor.CursorExceptionpublic org.apache.directory.api.ldap.model.message.SearchResultDone getSearchResultDone()
getSearchResultDone in interface org.apache.directory.api.ldap.model.cursor.SearchCursorpublic boolean isClosed()
isClosed in interface org.apache.directory.api.ldap.model.cursor.Cursor<org.apache.directory.api.ldap.model.message.Response>isClosed in class org.apache.directory.api.ldap.model.cursor.AbstractCursor<org.apache.directory.api.ldap.model.message.Response>public boolean last()
throws org.apache.directory.api.ldap.model.exception.LdapException,
org.apache.directory.api.ldap.model.cursor.CursorException
last in interface org.apache.directory.api.ldap.model.cursor.Cursor<org.apache.directory.api.ldap.model.message.Response>org.apache.directory.api.ldap.model.exception.LdapExceptionorg.apache.directory.api.ldap.model.cursor.CursorExceptionpublic boolean next()
throws org.apache.directory.api.ldap.model.exception.LdapException,
org.apache.directory.api.ldap.model.cursor.CursorException
next in interface org.apache.directory.api.ldap.model.cursor.Cursor<org.apache.directory.api.ldap.model.message.Response>org.apache.directory.api.ldap.model.exception.LdapExceptionorg.apache.directory.api.ldap.model.cursor.CursorExceptionpublic boolean previous()
throws org.apache.directory.api.ldap.model.exception.LdapException,
org.apache.directory.api.ldap.model.cursor.CursorException
previous in interface org.apache.directory.api.ldap.model.cursor.Cursor<org.apache.directory.api.ldap.model.message.Response>org.apache.directory.api.ldap.model.exception.LdapExceptionorg.apache.directory.api.ldap.model.cursor.CursorExceptionpublic void setClosureMonitor(org.apache.directory.api.ldap.model.cursor.ClosureMonitor monitor)
setClosureMonitor in interface org.apache.directory.api.ldap.model.cursor.Cursor<org.apache.directory.api.ldap.model.message.Response>setClosureMonitor in class org.apache.directory.api.ldap.model.cursor.AbstractCursor<org.apache.directory.api.ldap.model.message.Response>public boolean isDone()
isDone in interface org.apache.directory.api.ldap.model.cursor.SearchCursorpublic boolean isReferral()
isReferral in interface org.apache.directory.api.ldap.model.cursor.SearchCursorpublic org.apache.directory.api.ldap.model.message.Referral getReferral()
throws org.apache.directory.api.ldap.model.exception.LdapException
getReferral in interface org.apache.directory.api.ldap.model.cursor.SearchCursororg.apache.directory.api.ldap.model.exception.LdapExceptionpublic boolean isEntry()
isEntry in interface org.apache.directory.api.ldap.model.cursor.SearchCursorpublic org.apache.directory.api.ldap.model.entry.Entry getEntry()
throws org.apache.directory.api.ldap.model.exception.LdapException
getEntry in interface org.apache.directory.api.ldap.model.cursor.SearchCursororg.apache.directory.api.ldap.model.exception.LdapExceptionpublic boolean isIntermediate()
isIntermediate in interface org.apache.directory.api.ldap.model.cursor.SearchCursorpublic org.apache.directory.api.ldap.model.message.IntermediateResponse getIntermediate()
throws org.apache.directory.api.ldap.model.exception.LdapException
getIntermediate in interface org.apache.directory.api.ldap.model.cursor.SearchCursororg.apache.directory.api.ldap.model.exception.LdapException