Package org.opends.server.controls
Class VLVResponseControl
- java.lang.Object
-
- org.opends.server.types.Control
-
- org.opends.server.controls.VLVResponseControl
-
public class VLVResponseControl extends Control
This class implements the virtual list view response controls as defined in draft-ietf-ldapext-ldapv3-vlv. The ASN.1 description for the control value is:
VirtualListViewResponse ::= SEQUENCE { targetPosition INTEGER (0 .. maxInt), contentCount INTEGER (0 .. maxInt), virtualListViewResult ENUMERATED { success (0), operationsError (1), protocolError (3), unwillingToPerform (53), insufficientAccessRights (50), timeLimitExceeded (3), adminLimitExceeded (11), inappropriateMatching (18), sortControlMissing (60), offsetRangeError (61), other(80), ... }, contextID OCTET STRING OPTIONAL }
-
-
Field Summary
Fields Modifier and Type Field Description static ControlDecoder<VLVResponseControl>DECODERThe Control Decoder that can be used to decode this control.
-
Constructor Summary
Constructors Constructor Description VLVResponseControl(boolean isCritical, int targetPosition, int contentCount, int vlvResultCode, ByteString contextID)Creates a new VLV response control with the provided information.VLVResponseControl(int targetPosition, int contentCount, int vlvResultCode)Creates a new VLV response control with the provided information.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetContentCount()Retrieves the estimated total number of entries in the result set.ByteStringgetContextID()Retrieves a context ID value that should be included in the next request to retrieve a page of the same result set.intgetTargetPosition()Retrieves the position of the target entry in the result set.intgetVLVResultCode()Retrieves the result code for the VLV operation.voidtoString(StringBuilder buffer)Appends a string representation of this VLV request control to the provided buffer.protected voidwriteValue(ASN1Writer writer)Writes this control's value to an ASN.1 writer.-
Methods inherited from class org.opends.server.types.Control
getOID, isCritical, toString, write
-
-
-
-
Field Detail
-
DECODER
public static final ControlDecoder<VLVResponseControl> DECODER
The Control Decoder that can be used to decode this control.
-
-
Constructor Detail
-
VLVResponseControl
public VLVResponseControl(int targetPosition, int contentCount, int vlvResultCode)Creates a new VLV response control with the provided information.- Parameters:
targetPosition- The position of the target entry in the result set.contentCount- The content count estimating the total number of entries in the result set.vlvResultCode- The result code for the VLV operation.
-
VLVResponseControl
public VLVResponseControl(boolean isCritical, int targetPosition, int contentCount, int vlvResultCode, ByteString contextID)Creates a new VLV response control with the provided information.- Parameters:
isCritical- Indicates whether the control should be considered critical.targetPosition- The position of the target entry in the result set.contentCount- The content count estimating the total number of entries in the result set.vlvResultCode- The result code for the VLV operation.contextID- The context ID for this VLV response control.
-
-
Method Detail
-
getTargetPosition
public int getTargetPosition()
Retrieves the position of the target entry in the result set.- Returns:
- The position of the target entry in the result set.
-
getContentCount
public int getContentCount()
Retrieves the estimated total number of entries in the result set.- Returns:
- The estimated total number of entries in the result set.
-
getVLVResultCode
public int getVLVResultCode()
Retrieves the result code for the VLV operation.- Returns:
- The result code for the VLV operation.
-
getContextID
public ByteString getContextID()
Retrieves a context ID value that should be included in the next request to retrieve a page of the same result set.- Returns:
- A context ID value that should be included in the next request to
retrieve a page of the same result set, or
nullif there is no context ID.
-
writeValue
protected void writeValue(ASN1Writer writer) throws IOException
Writes this control's value to an ASN.1 writer. The value (if any) must be written as an ASN1OctetString.- Specified by:
writeValuein classControl- Parameters:
writer- The ASN.1 writer to use.- Throws:
IOException- If a problem occurs while writing to the stream.
-
toString
public void toString(StringBuilder buffer)
Appends a string representation of this VLV request control to the provided buffer.
-
-