Package org.ldaptive.control.util
Class VirtualListViewParams
java.lang.Object
org.ldaptive.control.util.VirtualListViewParams
Contains data required by the virtual list view operation.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intVLV after count.private final StringVLV assertion value; mutually exclusive with the target offset.private final intVLV before count.private final CookieManagerCookie manager for VLV context ID.protected final LoggerLogger for this class.private final intVLV target offset; mutually exclusive with the assertion value. -
Constructor Summary
ConstructorsConstructorDescriptionVirtualListViewParams(int offset, int before, int after) Creates a new virtual list view params.VirtualListViewParams(int offset, int before, int after, CookieManager manager) Creates a new virtual list view params.VirtualListViewParams(String assertion, int before, int after) Creates a new virtual list view params.VirtualListViewParams(String assertion, int before, int after, CookieManager manager) Creates a new virtual list view params. -
Method Summary
Modifier and TypeMethodDescriptioncreateRequestControl(boolean critical) Creates a new virtual list view request control using the properties in this VLV params.createRequestControl(boolean critical, CookieManager manager) Creates a new virtual list view request control using the properties in this VLV params.createRequestControl(SearchResponse result, boolean critical) Creates a new virtual list view request control using the properties in this VLV params.intReturns the after count.Returns the assertion value.intReturns the before count.Returns the cookie manager.intReturns the target offset.toString()
-
Field Details
-
logger
Logger for this class. -
beforeCount
private final int beforeCountVLV before count. -
afterCount
private final int afterCountVLV after count. -
targetOffset
private final int targetOffsetVLV target offset; mutually exclusive with the assertion value. -
assertionValue
VLV assertion value; mutually exclusive with the target offset. -
cookieManager
Cookie manager for VLV context ID.
-
-
Constructor Details
-
VirtualListViewParams
public VirtualListViewParams(int offset, int before, int after) Creates a new virtual list view params.- Parameters:
offset- target offsetbefore- before countafter- after count
-
VirtualListViewParams
Creates a new virtual list view params.- Parameters:
offset- target offsetbefore- before countafter- after countmanager- cookie manager
-
VirtualListViewParams
Creates a new virtual list view params.- Parameters:
assertion- assertion valuebefore- before countafter- after count
-
VirtualListViewParams
Creates a new virtual list view params.- Parameters:
assertion- assertion valuebefore- before countafter- after countmanager- cookie manager
-
-
Method Details
-
getBeforeCount
public int getBeforeCount()Returns the before count.- Returns:
- before count
-
getAfterCount
public int getAfterCount()Returns the after count.- Returns:
- after count
-
getTargetOffset
public int getTargetOffset()Returns the target offset.- Returns:
- target offset
-
getAssertionValue
Returns the assertion value.- Returns:
- assertion value
-
getCookieManager
Returns the cookie manager.- Returns:
- cookie manager
-
createRequestControl
Creates a new virtual list view request control using the properties in this VLV params.- Parameters:
critical- whether the returned control is critical- Returns:
- virtual list view request control
-
createRequestControl
Creates a new virtual list view request control using the properties in this VLV params.- Parameters:
critical- whether the returned control is criticalmanager- cookie manager- Returns:
- virtual list view request control
-
createRequestControl
Creates a new virtual list view request control using the properties in this VLV params. The supplied response is inspected and if it contains a VLV response control, its contextID and/or content count will be passed into the created request control.- Parameters:
result- of a previous VLV operationcritical- whether the returned control is critical- Returns:
- virtual list view request control
-
toString
-