Class VirtualListViewResponseControl
- All Implemented Interfaces:
Control,ResponseControl,Freezable
VirtualListViewResponse ::= SEQUENCE {
targetPosition INTEGER (0 .. maxInt),
contentCount INTEGER (0 .. maxInt),
virtualListViewResult ENUMERATED {
success (0),
operationsError (1),
protocolError (2),
unwillingToPerform (53),
insufficientAccessRights (50),
timeLimitExceeded (3),
adminLimitExceeded (11),
innapropriateMatching (18),
sortControlMissing (60),
offsetRangeError (61),
other(80),
... },
contextID OCTET STRING OPTIONAL }
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static classParse handler implementation for the content count.private static classParse handler implementation for the context ID.private static classParse handler implementation for the target position.private static classParse handler implementation for the view result. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intserver's estimate of the current number of entries in the ordered search result set.private byte[]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 final inthash code seed.static final StringOID of this control.private intlist offset for the target entry.private ResultCodeResult of the vlv operation.Fields inherited from class org.ldaptive.control.AbstractControl
logger -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.VirtualListViewResponseControl(boolean critical) Creates a new virtual list view response control.VirtualListViewResponseControl(int position, int count, ResultCode code, byte[] context) Creates a new virtual list view response control.VirtualListViewResponseControl(int position, int count, ResultCode code, byte[] context, boolean critical) Creates a new virtual list view response control. -
Method Summary
Modifier and TypeMethodDescriptionvoidInitializes this response control with the supplied BER encoded data.booleanintReturns the content count.byte[]Returns the context id.intReturns the target position.Returns the result code of the virtual list view.inthashCode()Returns the hash code for this object.toString()Methods inherited from class org.ldaptive.control.AbstractResponseControl
assertMutable, freeze, freezeAndAssertMutable, isFrozenMethods inherited from class org.ldaptive.control.AbstractControl
getCriticality, getOIDMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.ldaptive.control.Control
getCriticality, getOID
-
Field Details
-
OID
OID of this control.- See Also:
-
HASH_CODE_SEED
private static final int HASH_CODE_SEEDhash code seed.- See Also:
-
targetPosition
private int targetPositionlist offset for the target entry. -
contentCount
private int contentCountserver's estimate of the current number of entries in the ordered search result set. -
viewResult
Result of the vlv operation. -
contextID
private byte[] contextIDvalue 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.
-
-
Constructor Details
-
VirtualListViewResponseControl
public VirtualListViewResponseControl()Default constructor. -
VirtualListViewResponseControl
public VirtualListViewResponseControl(boolean critical) Creates a new virtual list view response control.- Parameters:
critical- whether this control is critical
-
VirtualListViewResponseControl
Creates a new virtual list view response control.- Parameters:
position- offset for the target entrycount- server estimate of the number of entriescode- operation result codecontext- server context id
-
VirtualListViewResponseControl
public VirtualListViewResponseControl(int position, int count, ResultCode code, byte[] context, boolean critical) Creates a new virtual list view response control.- Parameters:
position- offset for the target entrycount- server estimate of the number of entriescode- operation result codecontext- server context idcritical- whether this control is critical
-
-
Method Details
-
getTargetPosition
public int getTargetPosition()Returns the target position. This indicates the list offset for the target entry.- Returns:
- target position
-
getContentCount
public int getContentCount()Returns the content count. From the RFC: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.
- Returns:
- content count
-
getViewResult
Returns the result code of the virtual list view.- Returns:
- result code
-
getContextID
public byte[] getContextID()Returns the context id. From the RFC: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.
- Returns:
- context id
-
equals
- Overrides:
equalsin classAbstractControl
-
hashCode
public int hashCode()Description copied from class:AbstractControlReturns the hash code for this object.- Specified by:
hashCodein classAbstractControl- Returns:
- hash code
-
toString
- Overrides:
toStringin classAbstractControl
-
decode
Description copied from interface:ResponseControlInitializes this response control with the supplied BER encoded data.- Parameters:
encoded- BER encoded response control
-