|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.directory.shared.ldap.model.cursor.AbstractCursor<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(Response element)
This operation is not supported in SearchCursor. |
void |
afterLast()
This operation is not supported in SearchCursor. |
boolean |
available()
|
void |
before(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. |
Response |
get()
|
Entry |
getEntry()
|
IntermediateResponse |
getIntermediate()
|
Referral |
getReferral()
|
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.shared.ldap.model.cursor.AbstractCursor |
|---|
checkNotClosed, isAfterLast, isBeforeFirst, isClosed, isFirst, isLast, iterator, setClosureMonitor |
| 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.shared.ldap.model.cursor.Cursor |
|---|
isAfterLast, isBeforeFirst, isClosed, isFirst, isLast, setClosureMonitor |
| 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 Exception
next in interface Cursor<Response>Exception
public Response get()
throws Exception
get in interface Cursor<Response>Exceptionpublic SearchResultDone getSearchResultDone()
getSearchResultDone in interface SearchCursorpublic boolean available()
available in interface Cursor<Response>
public void close()
throws Exception
close in interface Cursor<Response>close in class AbstractCursor<Response>Exception
public void close(Exception cause)
throws Exception
close in interface Cursor<Response>close in class AbstractCursor<Response>Exception
public void after(Response element)
throws Exception
after in interface Cursor<Response>Exception
public void afterLast()
throws Exception
afterLast in interface Cursor<Response>Exception
public void before(Response element)
throws Exception
before in interface Cursor<Response>Exception
public void beforeFirst()
throws Exception
beforeFirst in interface Cursor<Response>Exception
public boolean first()
throws Exception
first in interface Cursor<Response>Exception
public boolean last()
throws Exception
last in interface Cursor<Response>Exception
public boolean previous()
throws Exception
previous in interface Cursor<Response>Exceptionpublic boolean isDone()
isDone in interface SearchCursorpublic boolean isReferral()
isReferral in interface SearchCursor
public Referral getReferral()
throws LdapException
getReferral in interface SearchCursorLdapExceptionpublic boolean isEntry()
isEntry in interface SearchCursor
public Entry getEntry()
throws LdapException
getEntry in interface SearchCursorLdapExceptionpublic boolean isIntermediate()
isIntermediate in interface SearchCursor
public IntermediateResponse getIntermediate()
throws LdapException
getIntermediate in interface SearchCursorLdapException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||