|
||||||||||
| 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.api.ldap.model.message.SearchRequest 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()
|
org.apache.directory.server.core.api.filtering.EntryFilteringCursor |
getCursor()
|
byte[] |
getNewCookie()
Compute a new cookie, if the previous one already exists. |
org.apache.directory.api.ldap.model.message.SearchRequest |
getPreviousSearchRequest()
|
boolean |
hasSameRequest(org.apache.directory.api.ldap.model.message.SearchRequest 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(org.apache.directory.server.core.api.filtering.EntryFilteringCursor cursor)
Set the new cursor for this search request |
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.api.ldap.model.message.SearchRequest searchRequest)
| Method Detail |
|---|
public byte[] getCookie()
public int getCookieValue()
public byte[] getNewCookie()
public boolean hasSameRequest(org.apache.directory.api.ldap.model.message.SearchRequest request,
LdapSession session)
request - The new SearchRequest
public int getCurrentPosition()
public void incrementCurrentPosition(int returnedEntries)
returnedEntries - The number of returned entriespublic org.apache.directory.api.ldap.model.message.SearchRequest getPreviousSearchRequest()
public org.apache.directory.server.core.api.filtering.EntryFilteringCursor getCursor()
public void setCursor(org.apache.directory.server.core.api.filtering.EntryFilteringCursor cursor)
cursor - The associated cursorpublic String toString()
toString in class ObjectObject.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||