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,Control
public class VirtualListViewResponseImpl extends 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 org.apache.directory.api.ldap.extras.controls.vlv.VirtualListViewResponse
OID
-
-
Constructor Summary
Constructors Constructor Description VirtualListViewResponseImpl()Creates a new VirtualListViewResponseImpl instance
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)intgetContentCount()byte[]getContextId()intgetTargetPosition()VirtualListViewResultCodegetVirtualListViewResult()inthashCode()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 resultStringtoString()Return a String representing this VirtualListViewResponseImpl.-
Methods inherited from class org.apache.directory.api.ldap.model.message.controls.AbstractControl
getOid, isCritical, setCritical
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.directory.api.ldap.model.message.Control
getOid, isCritical, setCritical
-
-
-
-
Method Detail
-
getTargetPosition
public int getTargetPosition()
- 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()
- 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
public VirtualListViewResultCode getVirtualListViewResult()
- Specified by:
getVirtualListViewResultin interfaceVirtualListViewResponse- Returns:
- The VLV result
-
setVirtualListViewResult
public void setVirtualListViewResult(VirtualListViewResultCode virtualListViewResultCode)
Store the VLV result- Specified by:
setVirtualListViewResultin interfaceVirtualListViewResponse- Parameters:
virtualListViewResultCode- The result
-
getContextId
public byte[] getContextId()
- 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 classAbstractControl- See Also:
Object.hashCode()
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classAbstractControl- See Also:
Object.equals(Object)
-
toString
public String toString()
Return a String representing this VirtualListViewResponseImpl.- Overrides:
toStringin classAbstractControl
-
-