|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.directory.api.ldap.model.cursor.AbstractCursor<org.apache.directory.api.ldap.model.message.Response>
org.apache.directory.ldap.client.api.SearchCursorImpl
public class SearchCursorImpl
An implementation of Cursor based on the underlying SearchFuture instance. Note: This is a forward only cursor hence the only valid operations are next(), get() and close()
| Constructor Summary | |
|---|---|
SearchCursorImpl(SearchFuture future,
long timeout,
TimeUnit timeUnit)
Instantiates a new search cursor. |
|
| Method Summary | |
|---|---|
void |
after(org.apache.directory.api.ldap.model.message.Response element)
This operation is not supported in SearchCursor. |
void |
afterLast()
This operation is not supported in SearchCursor. |
boolean |
available()
|
void |
before(org.apache.directory.api.ldap.model.message.Response element)
This operation is not supported in SearchCursor. |
void |
beforeFirst()
This operation is not supported in SearchCursor. |
void |
close()
|
void |
close(Exception cause)
|
boolean |
first()
This operation is not supported in SearchCursor. |
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()
|
boolean |
isDone()
|
boolean |
isEntry()
|
boolean |
isIntermediate()
|
boolean |
isReferral()
|
boolean |
last()
This operation is not supported in SearchCursor. |
boolean |
next()
|
boolean |
previous()
This operation is not supported in SearchCursor. |
| Methods inherited from class org.apache.directory.api.ldap.model.cursor.AbstractCursor |
|---|
checkNotClosed, isAfterLast, isBeforeFirst, isClosed, isFirst, isLast, iterator, setClosureMonitor, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.directory.api.ldap.model.cursor.Cursor |
|---|
isAfterLast, isBeforeFirst, isClosed, isFirst, isLast, setClosureMonitor, toString |
| Methods inherited from interface java.lang.Iterable |
|---|
iterator |
| Constructor Detail |
|---|
public SearchCursorImpl(SearchFuture future,
long timeout,
TimeUnit timeUnit)
future - the futuretimeout - the timeouttimeUnit - the time unit| Method Detail |
|---|
public boolean next()
throws org.apache.directory.api.ldap.model.exception.LdapException,
org.apache.directory.api.ldap.model.cursor.CursorException,
IOException
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.LdapException
org.apache.directory.api.ldap.model.cursor.CursorException
IOException
public org.apache.directory.api.ldap.model.message.Response get()
throws org.apache.directory.api.ldap.model.cursor.InvalidCursorPositionException,
IOException
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.InvalidCursorPositionException
IOExceptionpublic org.apache.directory.api.ldap.model.message.SearchResultDone getSearchResultDone()
getSearchResultDone in interface org.apache.directory.api.ldap.model.cursor.SearchCursorpublic boolean available()
available in interface org.apache.directory.api.ldap.model.cursor.Cursor<org.apache.directory.api.ldap.model.message.Response>public 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(Exception cause)
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 after(org.apache.directory.api.ldap.model.message.Response element)
throws org.apache.directory.api.ldap.model.exception.LdapException,
org.apache.directory.api.ldap.model.cursor.CursorException,
IOException
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.LdapException
org.apache.directory.api.ldap.model.cursor.CursorException
IOException
public void afterLast()
throws org.apache.directory.api.ldap.model.exception.LdapException,
org.apache.directory.api.ldap.model.cursor.CursorException,
IOException
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.LdapException
org.apache.directory.api.ldap.model.cursor.CursorException
IOException
public void before(org.apache.directory.api.ldap.model.message.Response element)
throws org.apache.directory.api.ldap.model.exception.LdapException,
org.apache.directory.api.ldap.model.cursor.CursorException,
IOException
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.LdapException
org.apache.directory.api.ldap.model.cursor.CursorException
IOException
public void beforeFirst()
throws org.apache.directory.api.ldap.model.exception.LdapException,
org.apache.directory.api.ldap.model.cursor.CursorException,
IOException
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.LdapException
org.apache.directory.api.ldap.model.cursor.CursorException
IOException
public boolean first()
throws org.apache.directory.api.ldap.model.exception.LdapException,
org.apache.directory.api.ldap.model.cursor.CursorException,
IOException
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.LdapException
org.apache.directory.api.ldap.model.cursor.CursorException
IOException
public boolean last()
throws org.apache.directory.api.ldap.model.exception.LdapException,
org.apache.directory.api.ldap.model.cursor.CursorException,
IOException
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.LdapException
org.apache.directory.api.ldap.model.cursor.CursorException
IOException
public boolean previous()
throws org.apache.directory.api.ldap.model.exception.LdapException,
org.apache.directory.api.ldap.model.cursor.CursorException,
IOException
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.LdapException
org.apache.directory.api.ldap.model.cursor.CursorException
IOExceptionpublic 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.SearchCursor
public 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.SearchCursor
public 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.SearchCursor
public 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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||