Package org.ldaptive.control.util
Class VirtualListViewParams
- java.lang.Object
-
- org.ldaptive.control.util.VirtualListViewParams
-
public class VirtualListViewParams extends Object
Contains data required by the virtual list view operation.
-
-
Field Summary
Fields Modifier and Type Field Description private intafterCountVLV after count.private StringassertionValueVLV assertion value; mutually exclusive with the target offset.private intbeforeCountVLV before count.private CookieManagercookieManagerCookie manager for VLV context ID.protected LoggerloggerLogger for this class.private inttargetOffsetVLV target offset; mutually exclusive with the assertion value.
-
Constructor Summary
Constructors Constructor Description VirtualListViewParams(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VirtualListViewRequestControlcreateRequestControl(boolean critical)Creates a new virtual list view request control using the properties in this VLV params.VirtualListViewRequestControlcreateRequestControl(boolean critical, CookieManager manager)Creates a new virtual list view request control using the properties in this VLV params.VirtualListViewRequestControlcreateRequestControl(SearchResponse result, boolean critical)Creates a new virtual list view request control using the properties in this VLV params.intgetAfterCount()Returns the after count.StringgetAssertionValue()Returns the assertion value.intgetBeforeCount()Returns the before count.CookieManagergetCookieManager()Returns the cookie manager.intgetTargetOffset()Returns the target offset.StringtoString()
-
-
-
Field Detail
-
logger
protected final Logger logger
Logger for this class.
-
beforeCount
private final int beforeCount
VLV before count.
-
afterCount
private final int afterCount
VLV after count.
-
targetOffset
private final int targetOffset
VLV target offset; mutually exclusive with the assertion value.
-
assertionValue
private final String assertionValue
VLV assertion value; mutually exclusive with the target offset.
-
cookieManager
private final CookieManager cookieManager
Cookie manager for VLV context ID.
-
-
Constructor Detail
-
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
public VirtualListViewParams(int offset, int before, int after, CookieManager manager)Creates a new virtual list view params.- Parameters:
offset- target offsetbefore- before countafter- after countmanager- cookie manager
-
VirtualListViewParams
public VirtualListViewParams(String assertion, int before, int after)
Creates a new virtual list view params.- Parameters:
assertion- assertion valuebefore- before countafter- after count
-
VirtualListViewParams
public VirtualListViewParams(String assertion, int before, int after, CookieManager manager)
Creates a new virtual list view params.- Parameters:
assertion- assertion valuebefore- before countafter- after countmanager- cookie manager
-
-
Method Detail
-
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
public String getAssertionValue()
Returns the assertion value.- Returns:
- assertion value
-
getCookieManager
public CookieManager getCookieManager()
Returns the cookie manager.- Returns:
- cookie manager
-
createRequestControl
public VirtualListViewRequestControl createRequestControl(boolean critical)
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
public VirtualListViewRequestControl createRequestControl(boolean critical, CookieManager manager)
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
public VirtualListViewRequestControl createRequestControl(SearchResponse result, boolean critical)
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
-
-