|
||||||||||
| 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<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()
Determines whether or not a call to get() will succeed. |
void |
before(Response element)
This operation is not supported in SearchCursor. |
void |
beforeFirst()
This operation is not supported in SearchCursor. |
void |
close()
Closes this Cursor and frees any resources it my have allocated. |
void |
close(Exception cause)
Closes this Cursor and frees any resources it my have allocated. |
boolean |
first()
This operation is not supported in SearchCursor. |
Response |
get()
Gets the object at the current position. |
Entry |
getEntry()
|
IntermediateResponse |
getIntermediate()
|
Referral |
getReferral()
|
SearchResultDone |
getSearchResultDone()
gives the SearchResultDone message received at the end of search results |
boolean |
isDone()
|
boolean |
isEntry()
|
boolean |
isIntermediate()
|
boolean |
isReferral()
|
boolean |
last()
This operation is not supported in SearchCursor. |
boolean |
next()
Advances this Cursor to the next position. |
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 LdapException,
CursorException,
IOException
next in interface Cursor<Response>LdapException - if we have get any LDAP exception while operating
the cursor
CursorException - if there are problems advancing to this Cursor to
the next position, or if this Cursor is closed
IOException - If we have had any IO Exception
public Response get()
throws InvalidCursorPositionException,
IOException
get in interface Cursor<Response>IOException - If we have had any IO Exception
InvalidCursorPositionExceptionpublic SearchResultDone getSearchResultDone()
getSearchResultDone in interface SearchCursorpublic boolean available()
available in interface Cursor<Response>public void close()
close in interface Cursor<Response>close in class AbstractCursor<Response>public void close(Exception cause)
close in interface Cursor<Response>close in class AbstractCursor<Response>cause - exception thrown when this Cursor is accessed after close
public void after(Response element)
throws LdapException,
CursorException,
IOException
after in interface Cursor<Response>element - the element to be positioned after
LdapException
CursorException
IOException
public void afterLast()
throws LdapException,
CursorException,
IOException
afterLast in interface Cursor<Response>LdapException
CursorException
IOException
public void before(Response element)
throws LdapException,
CursorException,
IOException
before in interface Cursor<Response>element - the element to be positioned before
LdapException
CursorException
IOException
public void beforeFirst()
throws LdapException,
CursorException,
IOException
beforeFirst in interface Cursor<Response>LdapException
CursorException
IOException
public boolean first()
throws LdapException,
CursorException,
IOException
first in interface Cursor<Response>LdapException
CursorException
IOException
public boolean last()
throws LdapException,
CursorException,
IOException
last in interface Cursor<Response>LdapException
CursorException
IOException
public boolean previous()
throws LdapException,
CursorException,
IOException
previous in interface Cursor<Response>LdapException
CursorException
IOExceptionpublic boolean isDone()
isDone in interface SearchCursorpublic boolean isReferral()
isReferral in interface SearchCursor
public Referral getReferral()
throws LdapException
getReferral in interface SearchCursorLdapException - If thepublic boolean isEntry()
isEntry in interface SearchCursor
public Entry getEntry()
throws LdapException
getEntry in interface SearchCursorLdapException - If thepublic boolean isIntermediate()
isIntermediate in interface SearchCursor
public IntermediateResponse getIntermediate()
throws LdapException
getIntermediate in interface SearchCursorLdapException - If the
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||