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 int
afterCount
VLV after count.private String
assertionValue
VLV assertion value; mutually exclusive with the target offset.private int
beforeCount
VLV before count.private CookieManager
cookieManager
Cookie manager for VLV context ID.protected Logger
logger
Logger for this class.private int
targetOffset
VLV 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 VirtualListViewRequestControl
createRequestControl(boolean critical)
Creates a new virtual list view request control using the properties in this VLV params.VirtualListViewRequestControl
createRequestControl(boolean critical, CookieManager manager)
Creates a new virtual list view request control using the properties in this VLV params.VirtualListViewRequestControl
createRequestControl(SearchResponse result, boolean critical)
Creates a new virtual list view request control using the properties in this VLV params.int
getAfterCount()
Returns the after count.String
getAssertionValue()
Returns the assertion value.int
getBeforeCount()
Returns the before count.CookieManager
getCookieManager()
Returns the cookie manager.int
getTargetOffset()
Returns the target offset.String
toString()
-
-
-
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
-
-