Class VirtualListViewResponseImpl
java.lang.Object
org.apache.directory.api.ldap.model.message.controls.AbstractControl
org.apache.directory.api.ldap.extras.controls.vlv.VirtualListViewResponseImpl
- All Implemented Interfaces:
VirtualListViewResponse, org.apache.directory.api.ldap.model.message.Control
public class VirtualListViewResponseImpl
extends org.apache.directory.api.ldap.model.message.controls.AbstractControl
implements VirtualListViewResponse
Virtual List View response control as specified in draft-ietf-ldapext-ldapv3-vlv-09.
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),
innapropriateMatching (18),
sortControlMissing (60),
offsetRangeError (61),
other(80),
... },
contextID OCTET STRING OPTIONAL }
- Author:
- Apache Directory Project
-
Field Summary
Fields inherited from interface VirtualListViewResponse
OID -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new VirtualListViewResponseImpl instance -
Method Summary
Modifier and TypeMethodDescriptionbooleanintGet the number of returned entriesbyte[]Get the context IDintGet the position in the list of entriesGet the VLV resultinthashCode()voidsetContentCount(int contentCount) Sets the number of returned entriesvoidsetContextId(byte[] contextId) Sets the context IDvoidsetTargetPosition(int targetPosition) Sets the position in the list of entriesvoidsetVirtualListViewResult(VirtualListViewResultCode virtualListViewResultCode) Store the VLV resulttoString()Return a String representing this VirtualListViewResponseImpl.Methods inherited from class org.apache.directory.api.ldap.model.message.controls.AbstractControl
getOid, isCritical, setCriticalMethods inherited from interface org.apache.directory.api.ldap.model.message.Control
getOid, isCritical, setCritical
-
Constructor Details
-
VirtualListViewResponseImpl
public VirtualListViewResponseImpl()Creates a new VirtualListViewResponseImpl instance
-
-
Method Details
-
getTargetPosition
public int getTargetPosition()Get the position in the list of entries- Specified by:
getTargetPositionin interfaceVirtualListViewResponse- Returns:
- the position in the list of entries
-
setTargetPosition
public void setTargetPosition(int targetPosition) Sets the position in the list of entries- Specified by:
setTargetPositionin interfaceVirtualListViewResponse- Parameters:
targetPosition- the position in the list of entries
-
getContentCount
public int getContentCount()Get the number of returned entries- Specified by:
getContentCountin interfaceVirtualListViewResponse- Returns:
- The number of returned entries
-
setContentCount
public void setContentCount(int contentCount) Sets the number of returned entries- Specified by:
setContentCountin interfaceVirtualListViewResponse- Parameters:
contentCount- The number of returned entries
-
getVirtualListViewResult
Get the VLV result- Specified by:
getVirtualListViewResultin interfaceVirtualListViewResponse- Returns:
- The VLV result
-
setVirtualListViewResult
Store the VLV result- Specified by:
setVirtualListViewResultin interfaceVirtualListViewResponse- Parameters:
virtualListViewResultCode- The result
-
getContextId
public byte[] getContextId()Get the context ID- Specified by:
getContextIdin interfaceVirtualListViewResponse- Returns:
- The context ID
-
setContextId
public void setContextId(byte[] contextId) Sets the context ID- Specified by:
setContextIdin interfaceVirtualListViewResponse- Parameters:
contextId- The context ID
-
hashCode
public int hashCode()- Overrides:
hashCodein classorg.apache.directory.api.ldap.model.message.controls.AbstractControl- See Also:
-
equals
- Overrides:
equalsin classorg.apache.directory.api.ldap.model.message.controls.AbstractControl- See Also:
-
toString
Return a String representing this VirtualListViewResponseImpl.- Overrides:
toStringin classorg.apache.directory.api.ldap.model.message.controls.AbstractControl
-