Package org.springframework.ldap.control
Class VirtualListViewControlDirContextProcessor
java.lang.Object
org.springframework.ldap.control.AbstractRequestControlDirContextProcessor
org.springframework.ldap.control.AbstractFallbackRequestAndResponseControlDirContextProcessor
org.springframework.ldap.control.VirtualListViewControlDirContextProcessor
- All Implemented Interfaces:
DirContextProcessor
public class VirtualListViewControlDirContextProcessor
extends AbstractFallbackRequestAndResponseControlDirContextProcessor
DirContextProcessor implementation for managing a virtual list view.
This is the request control syntax:
VirtualListViewRequest ::= SEQUENCE { beforeCount INTEGER (0..maxInt), afterCount INTEGER (0..maxInt), target CHOICE { byOffset [0] SEQUENCE { offset INTEGER (1 .. maxInt), contentCount INTEGER (0 .. maxInt) }, greaterThanOrEqual [1] AssertionValue }, contextID OCTET STRING OPTIONAL }
This is the response control syntax:
VirtualListViewResponse ::= SEQUENCE { targetPosition INTEGER (0 .. maxInt), contentCount INTEGER (0 .. maxInt), virtualListViewResult ENUMERATED { success (0), operationsError (1), protocolError (3), unwillingToPerform (53), insufficientAccessRights (50), timeLimitExceeded (3), adminLimitExceeded (11), innapropriateMatching (18), sortControlMissing (60), offsetRangeError (61), other(80), ... }, contextID OCTET STRING OPTIONAL }
-
Field Summary
Fields inherited from class org.springframework.ldap.control.AbstractFallbackRequestAndResponseControlDirContextProcessor
critical, defaultRequestControl, defaultResponseControl, fallbackRequestControl, fallbackResponseControl, requestControlClass, responseControlClass
Fields inherited from class org.springframework.ldap.control.AbstractRequestControlDirContextProcessor
log
-
Constructor Summary
ConstructorDescriptionVirtualListViewControlDirContextProcessor
(int pageSize) VirtualListViewControlDirContextProcessor
(int pageSize, int targetOffset, int listSize, VirtualListViewResultsCookie cookie) -
Method Summary
Modifier and TypeMethodDescriptionCreate an instance of the appropriate RequestControl.int
int
int
protected void
handleResponse
(Object control) protected static Object
invokeMethod
(String methodName, Class clazz, Object control, Class[] paramTypes, Object[] paramValues) boolean
void
setOffsetPercentage
(boolean isPercentage) Set whether thetargetOffset
should be interpreted as percentage of the list or an offset into the list.Methods inherited from class org.springframework.ldap.control.AbstractFallbackRequestAndResponseControlDirContextProcessor
createRequestControl, invokeMethod, loadControlClasses, postProcess, setCritical, setRequestControlClass, setResponseControlClass
Methods inherited from class org.springframework.ldap.control.AbstractRequestControlDirContextProcessor
isReplaceSameControlEnabled, preProcess, setReplaceSameControlEnabled
-
Constructor Details
-
VirtualListViewControlDirContextProcessor
public VirtualListViewControlDirContextProcessor(int pageSize) -
VirtualListViewControlDirContextProcessor
public VirtualListViewControlDirContextProcessor(int pageSize, int targetOffset, int listSize, VirtualListViewResultsCookie cookie)
-
-
Method Details
-
getCookie
-
getPageSize
public int getPageSize() -
getListSize
public int getListSize() -
getException
-
getTargetOffset
public int getTargetOffset() -
setOffsetPercentage
public void setOffsetPercentage(boolean isPercentage) Set whether thetargetOffset
should be interpreted as percentage of the list or an offset into the list.- Parameters:
isPercentage
-true
if targetOffset is a percentage
-
isOffsetPercentage
public boolean isOffsetPercentage() -
createRequestControl
Description copied from class:AbstractRequestControlDirContextProcessor
Create an instance of the appropriate RequestControl.- Specified by:
createRequestControl
in classAbstractRequestControlDirContextProcessor
- Returns:
- the new instance.
-
handleResponse
- Specified by:
handleResponse
in classAbstractFallbackRequestAndResponseControlDirContextProcessor
-
invokeMethod
-