|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.directory.server.ldap.handlers.controls.PagedSearchContext
public class PagedSearchContext
The structure which stores the informations relative to the pagedSearch control. They are associated to a cookie, stored into the session and associated to an instance of this class.
Constructor Summary | |
---|---|
PagedSearchContext(org.apache.directory.shared.ldap.message.internal.InternalSearchRequest searchRequest)
Creates a new instance of this class, storing the Searchrequest into it. |
Method Summary | |
---|---|
byte[] |
getCookie()
Compute a new key for this cookie, based on the current searchRequest hashCode and the current position. |
int |
getCookieValue()
|
int |
getCurrentPosition()
|
EntryFilteringCursor |
getCursor()
|
byte[] |
getNewCookie()
Compute a new cookie, if the previous one already exists. |
org.apache.directory.shared.ldap.message.internal.InternalSearchRequest |
getPreviousSearchRequest()
|
boolean |
hasSameRequest(org.apache.directory.shared.ldap.message.internal.InternalSearchRequest request,
LdapSession session)
Compare the previous search request and the new one, and return true if they are equal. |
void |
incrementCurrentPosition(int returnedEntries)
Set the new current position, incrementing it with the number of returned entries. |
void |
setCursor(EntryFilteringCursor cursor)
Set the new cursor for this search request |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PagedSearchContext(org.apache.directory.shared.ldap.message.internal.InternalSearchRequest searchRequest)
Method Detail |
---|
public byte[] getCookie()
public int getCookieValue()
public byte[] getNewCookie()
public boolean hasSameRequest(org.apache.directory.shared.ldap.message.internal.InternalSearchRequest request, LdapSession session)
request
- The new SearchRequest
public int getCurrentPosition()
public void incrementCurrentPosition(int returnedEntries)
returnedEntries
- The number of returned entriespublic org.apache.directory.shared.ldap.message.internal.InternalSearchRequest getPreviousSearchRequest()
public EntryFilteringCursor getCursor()
public void setCursor(EntryFilteringCursor cursor)
cursor
- The associated cursorpublic java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |