Class SearchCursorImpl
java.lang.Object
org.apache.directory.api.ldap.model.cursor.AbstractCursor<org.apache.directory.api.ldap.model.message.Response>
org.apache.directory.ldap.client.api.SearchCursorImpl
- All Implemented Interfaces:
Closeable, AutoCloseable, Iterable<org.apache.directory.api.ldap.model.message.Response>, org.apache.directory.api.ldap.model.cursor.Cursor<org.apache.directory.api.ldap.model.message.Response>, org.apache.directory.api.ldap.model.cursor.SearchCursor
public class SearchCursorImpl
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
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()
- Author:
- Apache Directory Project
-
Constructor Summary
ConstructorsConstructorDescriptionSearchCursorImpl(SearchFuture future, long timeout, TimeUnit timeUnit) Instantiates a new search cursor. -
Method Summary
Modifier and TypeMethodDescriptionvoidafter(org.apache.directory.api.ldap.model.message.Response element) This operation is not supported in SearchCursor.voidThis operation is not supported in SearchCursor.booleanvoidbefore(org.apache.directory.api.ldap.model.message.Response element) This operation is not supported in SearchCursor.voidThis operation is not supported in SearchCursor.voidclose()voidbooleanfirst()This operation is not supported in SearchCursor.org.apache.directory.api.ldap.model.message.Responseget()org.apache.directory.api.ldap.model.entry.EntrygetEntry()org.apache.directory.api.ldap.model.message.IntermediateResponseorg.apache.directory.api.ldap.model.message.Referralorg.apache.directory.api.ldap.model.message.SearchResultDonebooleanisDone()booleanisEntry()booleanbooleanbooleanlast()This operation is not supported in SearchCursor.booleannext()booleanprevious()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, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.directory.api.ldap.model.cursor.Cursor
isAfterLast, isBeforeFirst, isClosed, isFirst, isLast, setClosureMonitor, toStringMethods inherited from interface Iterable
forEach, iterator, spliterator
-
Constructor Details
-
SearchCursorImpl
Instantiates a new search cursor.- Parameters:
future- the futuretimeout- the timeouttimeUnit- the time unit
-
-
Method Details
-
next
public boolean next() throws org.apache.directory.api.ldap.model.exception.LdapException, org.apache.directory.api.ldap.model.cursor.CursorException- Specified by:
nextin interfaceorg.apache.directory.api.ldap.model.cursor.Cursor<org.apache.directory.api.ldap.model.message.Response>- Throws:
org.apache.directory.api.ldap.model.exception.LdapExceptionorg.apache.directory.api.ldap.model.cursor.CursorException
-
get
public org.apache.directory.api.ldap.model.message.Response get() throws org.apache.directory.api.ldap.model.cursor.InvalidCursorPositionException- Specified by:
getin interfaceorg.apache.directory.api.ldap.model.cursor.Cursor<org.apache.directory.api.ldap.model.message.Response>- Throws:
org.apache.directory.api.ldap.model.cursor.InvalidCursorPositionException
-
getSearchResultDone
public org.apache.directory.api.ldap.model.message.SearchResultDone getSearchResultDone()- Specified by:
getSearchResultDonein interfaceorg.apache.directory.api.ldap.model.cursor.SearchCursor
-
available
public boolean available()- Specified by:
availablein interfaceorg.apache.directory.api.ldap.model.cursor.Cursor<org.apache.directory.api.ldap.model.message.Response>
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classorg.apache.directory.api.ldap.model.cursor.AbstractCursor<org.apache.directory.api.ldap.model.message.Response>- Throws:
IOException
-
close
- Specified by:
closein interfaceorg.apache.directory.api.ldap.model.cursor.Cursor<org.apache.directory.api.ldap.model.message.Response>- Overrides:
closein classorg.apache.directory.api.ldap.model.cursor.AbstractCursor<org.apache.directory.api.ldap.model.message.Response>- Throws:
IOException
-
after
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 This operation is not supported in SearchCursor.- Specified by:
afterin interfaceorg.apache.directory.api.ldap.model.cursor.Cursor<org.apache.directory.api.ldap.model.message.Response>- Throws:
org.apache.directory.api.ldap.model.exception.LdapExceptionorg.apache.directory.api.ldap.model.cursor.CursorException
-
afterLast
public void afterLast() throws org.apache.directory.api.ldap.model.exception.LdapException, org.apache.directory.api.ldap.model.cursor.CursorExceptionThis operation is not supported in SearchCursor.- Specified by:
afterLastin interfaceorg.apache.directory.api.ldap.model.cursor.Cursor<org.apache.directory.api.ldap.model.message.Response>- Throws:
org.apache.directory.api.ldap.model.exception.LdapExceptionorg.apache.directory.api.ldap.model.cursor.CursorException
-
before
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 This operation is not supported in SearchCursor.- Specified by:
beforein interfaceorg.apache.directory.api.ldap.model.cursor.Cursor<org.apache.directory.api.ldap.model.message.Response>- Throws:
org.apache.directory.api.ldap.model.exception.LdapExceptionorg.apache.directory.api.ldap.model.cursor.CursorException
-
beforeFirst
public void beforeFirst() throws org.apache.directory.api.ldap.model.exception.LdapException, org.apache.directory.api.ldap.model.cursor.CursorExceptionThis operation is not supported in SearchCursor.- Specified by:
beforeFirstin interfaceorg.apache.directory.api.ldap.model.cursor.Cursor<org.apache.directory.api.ldap.model.message.Response>- Throws:
org.apache.directory.api.ldap.model.exception.LdapExceptionorg.apache.directory.api.ldap.model.cursor.CursorException
-
first
public boolean first() throws org.apache.directory.api.ldap.model.exception.LdapException, org.apache.directory.api.ldap.model.cursor.CursorExceptionThis operation is not supported in SearchCursor.- Specified by:
firstin interfaceorg.apache.directory.api.ldap.model.cursor.Cursor<org.apache.directory.api.ldap.model.message.Response>- Throws:
org.apache.directory.api.ldap.model.exception.LdapExceptionorg.apache.directory.api.ldap.model.cursor.CursorException
-
last
public boolean last() throws org.apache.directory.api.ldap.model.exception.LdapException, org.apache.directory.api.ldap.model.cursor.CursorExceptionThis operation is not supported in SearchCursor.- Specified by:
lastin interfaceorg.apache.directory.api.ldap.model.cursor.Cursor<org.apache.directory.api.ldap.model.message.Response>- Throws:
org.apache.directory.api.ldap.model.exception.LdapExceptionorg.apache.directory.api.ldap.model.cursor.CursorException
-
previous
public boolean previous() throws org.apache.directory.api.ldap.model.exception.LdapException, org.apache.directory.api.ldap.model.cursor.CursorExceptionThis operation is not supported in SearchCursor.- Specified by:
previousin interfaceorg.apache.directory.api.ldap.model.cursor.Cursor<org.apache.directory.api.ldap.model.message.Response>- Throws:
org.apache.directory.api.ldap.model.exception.LdapExceptionorg.apache.directory.api.ldap.model.cursor.CursorException
-
isDone
public boolean isDone()- Specified by:
isDonein interfaceorg.apache.directory.api.ldap.model.cursor.SearchCursor
-
isReferral
public boolean isReferral()- Specified by:
isReferralin interfaceorg.apache.directory.api.ldap.model.cursor.SearchCursor
-
getReferral
public org.apache.directory.api.ldap.model.message.Referral getReferral() throws org.apache.directory.api.ldap.model.exception.LdapException- Specified by:
getReferralin interfaceorg.apache.directory.api.ldap.model.cursor.SearchCursor- Throws:
org.apache.directory.api.ldap.model.exception.LdapException
-
isEntry
public boolean isEntry()- Specified by:
isEntryin interfaceorg.apache.directory.api.ldap.model.cursor.SearchCursor
-
getEntry
public org.apache.directory.api.ldap.model.entry.Entry getEntry() throws org.apache.directory.api.ldap.model.exception.LdapException- Specified by:
getEntryin interfaceorg.apache.directory.api.ldap.model.cursor.SearchCursor- Throws:
org.apache.directory.api.ldap.model.exception.LdapException
-
isIntermediate
public boolean isIntermediate()- Specified by:
isIntermediatein interfaceorg.apache.directory.api.ldap.model.cursor.SearchCursor
-
getIntermediate
public org.apache.directory.api.ldap.model.message.IntermediateResponse getIntermediate() throws org.apache.directory.api.ldap.model.exception.LdapException- Specified by:
getIntermediatein interfaceorg.apache.directory.api.ldap.model.cursor.SearchCursor- Throws:
org.apache.directory.api.ldap.model.exception.LdapException
-