public class VirtualListViewRequestControl extends AbstractControl implements RequestControl
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 }
Modifier and Type | Field and Description |
---|---|
private int |
afterCount
number of entries after the target entry the server should send.
|
private String |
assertionValue
value to match against the ordering matching rule for the attributeDescription in the sort control.
|
private int |
beforeCount
number of entries before the target entry the server should send.
|
private int |
contentCount
server's estimate of the current number of entries in the ordered search result set.
|
private byte[] |
contextID
value that clients should send back to the server to indicate that the server is willing to return contiguous data
from a subsequent search request which uses the same search criteria.
|
private static int |
HASH_CODE_SEED
hash code seed.
|
static String |
OID
OID of this control.
|
private int |
targetOffset
target entry's offset within the ordered search result set.
|
logger
Constructor and Description |
---|
VirtualListViewRequestControl()
Default constructor.
|
VirtualListViewRequestControl(int offset,
int before,
int after)
Creates a new virtual list view request control.
|
VirtualListViewRequestControl(int offset,
int before,
int after,
boolean critical)
Creates a new virtual list view request control.
|
VirtualListViewRequestControl(int offset,
int before,
int after,
int count,
byte[] context)
Creates a new virtual list view request control.
|
VirtualListViewRequestControl(int offset,
int before,
int after,
int count,
byte[] context,
boolean critical)
Creates a new virtual list view request control.
|
VirtualListViewRequestControl(String assertion,
int before,
int after)
Creates a new virtual list view request control.
|
VirtualListViewRequestControl(String assertion,
int before,
int after,
boolean critical)
Creates a new virtual list view request control.
|
VirtualListViewRequestControl(String assertion,
int before,
int after,
byte[] context)
Creates a new virtual list view request control.
|
VirtualListViewRequestControl(String assertion,
int before,
int after,
byte[] context,
boolean critical)
Creates a new virtual list view request control.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
encode()
Provides the BER encoding of this control.
|
boolean |
equals(Object o) |
int |
getAfterCount()
Returns the after count.
|
String |
getAssertionValue()
Returns the assertion value.
|
int |
getBeforeCount()
Returns the before count.
|
int |
getContentCount()
Returns the content count.
|
byte[] |
getContextID()
Returns the context id.
|
int |
getTargetOffset()
Returns the target offset.
|
int |
hashCode()
Returns the hash code for this object.
|
void |
setAfterCount(int count)
Sets the after count.
|
void |
setAssertionValue(String value)
Sets the assertion value.
|
void |
setBeforeCount(int count)
Sets the before count.
|
void |
setContentCount(int count)
Sets the content count.
|
void |
setContextID(byte[] id)
Sets the context id.
|
void |
setTargetOffset(int offset)
Sets the target offset.
|
String |
toString() |
getCriticality, getOID
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getCriticality, getOID
public static final String OID
private static final int HASH_CODE_SEED
private int beforeCount
private int afterCount
private int targetOffset
private int contentCount
private String assertionValue
private byte[] contextID
public VirtualListViewRequestControl()
public VirtualListViewRequestControl(int offset, int before, int after)
offset
- target entry offsetbefore
- number of entries before the targetafter
- number of entries after the targetpublic VirtualListViewRequestControl(int offset, int before, int after, boolean critical)
offset
- target entry offsetbefore
- number of entries before the targetafter
- number of entries after the targetcritical
- whether this control is criticalpublic VirtualListViewRequestControl(int offset, int before, int after, int count, byte[] context)
offset
- target entry offsetbefore
- number of entries before the targetafter
- number of entries after the targetcount
- server estimate of the number of entriescontext
- server context idpublic VirtualListViewRequestControl(int offset, int before, int after, int count, byte[] context, boolean critical)
offset
- target entry offsetbefore
- number of entries before the targetafter
- number of entries after the targetcount
- server estimate of the number of entriescontext
- server context idcritical
- whether this control is criticalpublic VirtualListViewRequestControl(String assertion, int before, int after)
assertion
- value to match in the sort controlbefore
- number of entries before the targetafter
- number of entries after the targetpublic VirtualListViewRequestControl(String assertion, int before, int after, boolean critical)
assertion
- value to match in the sort controlbefore
- number of entries before the targetafter
- number of entries after the targetcritical
- whether this control is criticalpublic VirtualListViewRequestControl(String assertion, int before, int after, byte[] context)
assertion
- value to match in the sort controlbefore
- number of entries before the targetafter
- number of entries after the targetcontext
- server context idpublic VirtualListViewRequestControl(String assertion, int before, int after, byte[] context, boolean critical)
assertion
- value to match in the sort controlbefore
- number of entries before the targetafter
- number of entries after the targetcontext
- server context idcritical
- whether this control is criticalpublic int getBeforeCount()
public void setBeforeCount(int count)
count
- before countpublic int getAfterCount()
public void setAfterCount(int count)
count
- after countpublic int getTargetOffset()
public void setTargetOffset(int offset)
offset
- target offsetpublic int getContentCount()
contentCount gives the server's estimate of the current number of entries in the list. Together these give sufficient information for the client to update a list box slider position to match the newly retrieved entries and identify the target entry. The contentCount value returned SHOULD be used in a subsequent VirtualListViewRequest control.
public void setContentCount(int count)
count
- content countpublic String getAssertionValue()
The assertion value is encoded according to the ORDERING matching rule for the attributeDescription in the sort control [SSS]. If present, the value supplied in greaterThanOrEqual is used to determine the target entry by comparison with the values of the attribute specified as the primary sort key. The first list entry who's value is no less than (less than or equal to when the sort order is reversed) the supplied value is the target entry.
public void setAssertionValue(String value)
value
- assertion valuepublic byte[] getContextID()
The contextID is a server-defined octet string. If present, the contents of the contextID field SHOULD be returned to the server by a client in a subsequent virtual list request. The presence of a contextID here indicates that the server is willing to return contiguous data from a subsequent search request which uses the same search criteria, accompanied by a VirtualListViewRequest which indicates that the client wishes to receive an adjoining page of data.
public void setContextID(byte[] id)
id
- context idpublic boolean equals(Object o)
equals
in class AbstractControl
public int hashCode()
AbstractControl
hashCode
in class AbstractControl
public byte[] encode()
RequestControl
encode
in interface RequestControl
Copyright © 2003-2019 Virginia Tech. All Rights Reserved.